english comments added

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-04-06 16:48:06 +00:00
parent 693e215bc1
commit 4d272994dd
219 changed files with 6407 additions and 8705 deletions

View file

@ -3,51 +3,45 @@
* @class documentAdminModel
* @author NHN (developers@xpressengine.com)
* @version 0.1
* @brief document 모듈의 admin model class
* @brief document the module's admin model class
**/
class documentAdminModel extends document {
/**
* @brief 초기화
* @brief Initialization
**/
function init() {
}
/**
* @brief 휴지통에 존재하는 문서 목록을 가져옴
* @brief get a document list from the trash
**/
function getDocumentTrashList($obj) {
// 정렬 대상과 순서 체크
// check a list and its order
if (!in_array($obj->sort_index, array('list_order','delete_date','title'))) $obj->sort_index = 'list_order';
if (!in_array($obj->order_type, array('desc','asc'))) $obj->order_type = 'asc';
// module_srl 대신 mid가 넘어왔을 경우는 직접 module_srl을 구해줌
// get a module_srl if mid is returned instead of modul_srl
if ($obj->mid) {
$oModuleModel = &getModel('module');
$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid);
unset($obj->mid);
}
// 넘어온 module_srl은 array일 수도 있기에 array인지를 체크
// check if the module_srl is an array
if (is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl);
else $args->module_srl = $obj->module_srl;
// 변수 체크
// Variable check
$args->sort_index = $obj->sort_index;
$args->order_type = $obj->order_type;
$args->page = $obj->page?$obj->page:1;
$args->list_count = $obj->list_count?$obj->list_count:20;
$args->page_count = $obj->page_count?$obj->page_count:10;
$args->member_srl = $obj->member_srl;
// query_id 지정
// Specify query_id
$query_id = 'document.getTrashList';
// query 실행
// Execute a query
$output = executeQueryArray($query_id, $args);
// 결과가 없거나 오류 발생시 그냥 return
// Return if no result or an error occurs
if (!$output->toBool() || !count($output->data)) return $output;
$idx = 0;
@ -71,7 +65,7 @@
}
/**
* @brief trash_srl값을 가지는 휴지통 문서를 가져옴
* @brief get the doc which has trash_srl from the trash can
**/
function getDocumentTrash($trash_srl) {
$args->trash_srl = $trash_srl;