Wiki에 계층보기 기능 추가 (글쓰기 권한이 있는 사용자가 문서들을 tree구조로 바꿀 수 있도록 함)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6637 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-06-22 09:16:53 +00:00
parent c40d10f686
commit 461144c955
22 changed files with 431 additions and 4 deletions

View file

@ -6,6 +6,7 @@
**/
class wikiView extends wiki {
var $search_option = array('title','content','title_content','comment','user_name','nick_name','user_id','tag');
/**
* @brief 초기화
@ -106,6 +107,9 @@
$obj->sort_index = "title";
$obj->page = $page;
$obj->list_count = 50;
$obj->search_keyword = Context::get('search_keyword');
$obj->search_target = Context::get('search_target');
$output = $oDocumentModel->getDocumentList($obj);
Context::set('document_list', $output->data);
@ -113,9 +117,19 @@
Context::set('total_page', $output->total_page);
Context::set('page', $output->page);
Context::set('page_navigation', $output->page_navigation);
// 검색 옵션 세팅
foreach($this->search_option as $opt) $search_option[$opt] = Context::getLang($opt);
Context::set('search_option', $search_option);
$this->setTemplateFile('title_index');
}
function dispWikiTreeIndex() {
Context::set('isManageGranted', $this->grant->write_document?'true':'false');
$this->setTemplateFile('tree_list');
}
function dispWikiContentView() {
// 요청된 변수 값들을 정리
$document_srl = Context::get('document_srl');