mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 06:39:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1346 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6bb48002d7
commit
60113ffbc1
6 changed files with 64 additions and 30 deletions
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* @class tag_list
|
||||
* @class archive_list
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 태그 목록 출력
|
||||
* @brief 보관현황 목록 출력
|
||||
* @version 0.1
|
||||
**/
|
||||
|
||||
class tag_list extends PluginHandler {
|
||||
class archive_list extends PluginHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
|
|
@ -17,23 +17,20 @@
|
|||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$list_count = (int)$args->list_count;
|
||||
if(!$list_count) $list_count = 20;
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
|
||||
// TagModel::getTagList()를 이용하기 위한 변수 정리
|
||||
// DocumentModel::getMonthlyArchivedList()를 이용하기 위한 변수 정리
|
||||
$obj->mid = $mid_list;
|
||||
$obj->list_count = $list_count;
|
||||
|
||||
// tag 모듈의 model 객체를 받아서 getTagList() method를 실행
|
||||
$oTagModel = &getModel('tag');
|
||||
$output = $oTagModel->getTagList($obj);
|
||||
// document 모듈의 model 객체를 받아서 getMonthlyArchivedList() method를 실행
|
||||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getgetMonthlyArchivedList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->tag_list = $output->data;
|
||||
$plugin_info->archive_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue