mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12260 201d5d3c-b55e-5fd7-737f-ddc643e51545
54 lines
1.5 KiB
PHP
54 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* trashAdminView class
|
|
* Admin view class of the trash module
|
|
*
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @package /modules/trash
|
|
* @version 0.1
|
|
*/
|
|
class trashAdminView extends trash
|
|
{
|
|
/**
|
|
* Initialization
|
|
* @return void
|
|
*/
|
|
function init()
|
|
{
|
|
// 템플릿 경로 지정 (board의 경우 tpl에 관리자용 템플릿 모아놓음)
|
|
$template_path = sprintf("%stpl/",$this->module_path);
|
|
$this->setTemplatePath($template_path);
|
|
}
|
|
|
|
/**
|
|
* Trash list
|
|
* @return void
|
|
*/
|
|
function dispTrashAdminList()
|
|
{
|
|
$args->page = Context::get('page'); // /< Page
|
|
$args->list_count = 30; // /< the number of posts to display on a single page
|
|
$args->page_count = 5; // /< the number of pages that appear in the page navigation
|
|
|
|
$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
|
|
$args->search_keyword = Context::get('search_keyword'); // /< keyword to search
|
|
|
|
$oTrashModel = getModel('trash');
|
|
$output = $oTrashModel->getTrashList($args);
|
|
|
|
// for no text comment language and for document manange language
|
|
$oCommentModel = &getModel('comment');
|
|
$oDocumentModel = &getModel('document');
|
|
|
|
Context::set('trash_list', $output->data);
|
|
Context::set('total_count', $output->total_count);
|
|
Context::set('total_page', $output->total_page);
|
|
Context::set('page', $output->page);
|
|
Context::set('page_navigation', $output->page_navigation);
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('trash_list');
|
|
}
|
|
}
|
|
/* End of file trash.admin.view.php */
|
|
/* Location: ./modules/trash/trash.admin.view.php */
|