13 private $documentConfig = NULL;
40 if(!is_array($documentSrls) || count($documentSrls) == 0)
42 return new BaseObject(-1,
'msg_invalid_request');
45 $args =
new stdClass();
46 $args->document_srl = $documentSrls;
57 static $checked_documents = array();
58 $_document_list = &
$GLOBALS[
'XE_DOCUMENT_LIST'];
61 if(count($_document_list) <= 0)
return;
64 $document_srls = array();
65 foreach($_document_list as $key => $val)
67 if(!$val->document_srl || $checked_documents[$val->document_srl])
continue;
68 $checked_documents[$val->document_srl] =
true;
69 $document_srls[] = $val->document_srl;
72 if(!count($document_srls))
return;
78 foreach(
$output->data as $key => $val)
80 if(!isset($val->value))
continue;
81 if(!
$extra_vars[$val->module_srl][$val->document_srl][$val->var_idx][0])
$extra_vars[$val->module_srl][$val->document_srl][$val->var_idx][0] = trim($val->value);
82 $extra_vars[$val->document_srl][$val->var_idx][$val->lang_code] = trim($val->value);
87 for($i=0,$c=count($document_srls);$i<$c;$i++)
92 if(!$_document_list[
$document_srl] || !is_object($_document_list[
$document_srl]) || !$_document_list[$document_srl]->isExists())
continue;
96 $document_lang_code = $_document_list[
$document_srl]->get(
'lang_code');
98 if(count($extra_keys))
100 foreach($extra_keys as $idx => $key)
102 $extra_keys[$idx] = clone($key);
104 if(isset($val[$user_lang_code])) $v = $val[$user_lang_code];
105 else if(isset($val[$document_lang_code])) $v = $val[$document_lang_code];
106 else if(isset($val[0])) $v = $val[0];
108 $extra_keys[$idx]->value = $v;
114 $evars->setExtraVarKeys($extra_keys);
116 if($vars[-1][$user_lang_code]) $_document_list[
$document_srl]->add(
'title',$vars[-1][$user_lang_code]);
118 if($vars[-2][$user_lang_code]) $_document_list[
$document_srl]->add(
'content',$vars[-2][$user_lang_code]);
146 $oDocument =
new documentItem($document_srl, $load_extra_vars, $columnList);
147 if(!$oDocument->isExists())
167 function getDocuments($document_srls, $is_admin =
false, $load_extra_vars=
true, $columnList = array())
169 if(is_array($document_srls))
171 $list_count = count($document_srls);
172 $document_srls = implode(
',',$document_srls);
178 $args =
new stdClass();
179 $args->document_srls = $document_srls;
180 $args->list_count = $list_count;
181 $args->order_type =
'asc';
184 $document_list =
$output->data;
185 if(!$document_list)
return;
186 if(!is_array($document_list)) $document_list = array($document_list);
188 $document_count = count($document_list);
189 foreach($document_list as $key => $attribute)
198 $oDocument->setAttribute($attribute,
false);
199 if($is_admin) $oDocument->setGrant();
231 $obj->sort_index = $sort_check->sort_index;
232 $obj->isExtraVars = $sort_check->isExtraVars;
233 unset(
$obj->use_alternate_output);
234 $obj->columnList = $columnList;
244 $use_alternate_output = (isset(
$obj->use_alternate_output) &&
$obj->use_alternate_output instanceof
BaseObject);
245 if (!$use_alternate_output)
250 if ($use_alternate_output)
253 unset(
$obj->use_alternate_output);
255 elseif ($sort_check->isExtraVars && substr_count(
$obj->search_target,
'extra_vars'))
257 $query_id =
'document.getDocumentListWithinExtraVarsExtraSort';
258 $args->sort_index = str_replace(
'documents.',
'',
$args->sort_index);
261 elseif ($sort_check->isExtraVars)
269 $groupByQuery = array(
'document.getDocumentListWithinComment' => 1,
'document.getDocumentListWithinTag' => 1,
'document.getDocumentListWithinExtraVars' => 1);
270 if(isset($groupByQuery[$query_id]))
272 $group_args = clone(
$args);
273 $group_args->sort_index =
'documents.'.$args->sort_index;
277 foreach(
$output->data as $key => $val)
279 if($val->document_srl) $target_srls[] = $val->document_srl;
282 $page_navigation =
$output->page_navigation;
283 $keys = array_keys(
$output->data);
284 $virtual_number = $keys[0];
286 $target_args =
new stdClass();
287 $target_args->document_srls = implode(
',',$target_srls);
288 $target_args->list_order =
$args->sort_index;
289 $target_args->order_type =
$args->order_type;
290 $target_args->list_count =
$args->list_count;
291 $target_args->page = 1;
293 $output->page_navigation = $page_navigation;
294 $output->total_count = $page_navigation->total_count;
295 $output->total_page = $page_navigation->total_page;
296 $output->page = $page_navigation->cur_page;
309 if(!isset($virtual_number))
311 $keys = array_keys($data);
312 $virtual_number = $keys[0];
317 foreach($data as $key => $attribute)
319 if($attribute->is_notice ==
'Y') $virtual_number --;
323 foreach($data as $key => $attribute)
325 if($except_notice && $attribute->is_notice ==
'Y')
continue;
331 $oDocument->setAttribute($attribute,
false);
332 if($is_admin) $oDocument->setGrant();
344 foreach(
$output->data as $number => $document)
346 $output->data[$number] =
$GLOBALS[
'XE_DOCUMENT_LIST'][$document->document_srl];
364 $args =
new stdClass();
370 foreach(
$output->data as $key => $val)
379 $oDocument->setAttribute($val,
false);
406 if($oCacheHandler->isSupport())
408 $object_key =
'module_document_extra_keys:' .
$module_srl;
409 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
410 $keys = $oCacheHandler->get($cache_key);
417 $obj =
new stdClass();
419 $obj->sort_index =
'var_idx';
428 foreach(
$output->data as $no => $value)
431 if($prevIdx == 0 && $value->idx != 1)
433 $args =
new stdClass();
435 $args->var_idx = $value->idx;
445 if($prevIdx > 0 && $prevIdx + 1 != $value->idx)
447 $args =
new stdClass();
449 $args->var_idx = $value->idx;
450 $args->new_idx = $prevIdx + 1;
458 $prevIdx = $value->idx;
467 $oExtraVar->setExtraVarKeys(
$output->data);
468 $keys = $oExtraVar->getExtraVars();
469 if(!$keys) $keys = array();
471 if($oCacheHandler->isSupport())
473 $oCacheHandler->put($cache_key, $keys);
495 $oDocument = $this->
getDocument($document_srl,
false);
499 if(is_array(
$GLOBALS[
'XE_EXTRA_VARS'][$document_srl])) ksort(
$GLOBALS[
'XE_EXTRA_VARS'][$document_srl]);
516 $menu_list = array();
525 $columnList = array(
'document_srl',
'module_srl',
'member_srl',
'ipaddress');
528 $member_srl = $oDocument->get(
'member_srl');
533 if($document_config->use_vote_up!=
'N' && $member_srl!=
$logged_info->member_srl)
536 $url = sprintf(
"doCallModuleAction('document','procDocumentVoteUp','%s')",
$document_srl);
540 if($document_config->use_vote_down!=
'N' && $member_srl!=
$logged_info->member_srl)
543 $url= sprintf(
"doCallModuleAction('document','procDocumentVoteDown','%s')",
$document_srl);
548 $url = sprintf(
"doCallModuleAction('document','procDocumentDeclare','%s')",
$document_srl);
552 $url = sprintf(
"doCallModuleAction('member','procMemberScrapDocument','%s')",
$document_srl);
556 $url =
getUrl(
'',
'module',
'document',
'act',
'dispDocumentPrint',
'document_srl',
$document_srl);
560 if($this->grant->manager)
563 $url = sprintf(
"if(!confirm('%s')) return; var params = new Array(); params['document_srl']='%s'; params['mid']=current_mid;params['cur_url']=current_url; exec_xml('document', 'procDocumentAdminMoveToTrash', params)", $str_confirm,
$document_srl);
573 if($oDocument->isExists())
576 $url =
getUrl(
'',
'module',
'admin',
'act',
'dispDocumentAdminList',
'search_target',
'ipaddress',
'search_keyword',$oDocument->getIpAddress());
577 $oDocumentController->addDocumentPopupMenu($url,
'cmd_search_by_ipaddress',$icon_path,
'TraceByIpaddress');
579 $url = sprintf(
"var params = new Array(); params['ipaddress_list']='%s'; exec_xml('spamfilter', 'procSpamfilterAdminInsertDeniedIP', params, completeCallModuleAction)", $oDocument->getIpAddress());
585 $menus_count = count($menus);
586 for($i=0;$i<$menus_count;$i++)
591 $this->
add(
'menus', $menus);
602 if(is_null($search_obj)) $search_obj =
new stdClass();
607 $total_count =
$output->data->count;
608 return (
int)$total_count;
619 if(!
$output->toBool())
return array();
629 $args->category_srl = $search_obj->category_srl;
630 $args->var_idx = $search_obj->s_var_idx;
631 $args->var_eid = $search_obj->s_var_eid;
632 $args->var_value = $search_obj->s_var_value;
637 $total_count =
$output->data->count;
638 return (
int)$total_count;
650 $opt->sort_index = $sort_check->sort_index;
651 $opt->isExtraVars = $sort_check->isExtraVars;
655 if($sort_check->isExtraVars)
661 if($sort_check->sort_index ===
'list_order' || $sort_check->sort_index ===
'update_order')
663 if(
$args->order_type ===
'desc')
665 $args->{
'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
669 $args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
672 elseif($sort_check->sort_index ===
'regdate')
675 if(
$args->order_type ===
'asc')
677 $args->{
'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
681 $args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
694 $page = (int)(($count-1)/$opt->list_count)+1;
706 $args =
new stdClass();
707 $args->category_srl = $category_srl;
713 if($node->group_srls)
715 $group_srls = explode(
',',$node->group_srls);
716 unset($node->group_srls);
717 $node->group_srls = $group_srls;
721 unset($node->group_srls);
722 $node->group_srls = array();
734 $args =
new stdClass();
735 $args->category_srl = $category_srl;
737 if(
$output->data->count > 0)
return true;
755 if(!file_exists($filename))
764 $document_category = array();
765 $this->_arrangeCategory($document_category, $menu->list, 0);
766 return $document_category;
778 if(!count($list))
return;
780 $list_order = array();
781 foreach($list as $key => $val)
784 $obj->mid = $val[
'mid'];
785 $obj->module_srl = $val[
'module_srl'];
786 $obj->category_srl = $val[
'category_srl'];
787 $obj->parent_srl = $val[
'parent_srl'];
788 $obj->title =
$obj->text = $val[
'text'];
789 $obj->description = $val[
'description'];
790 $obj->expand = $val[
'expand']==
'Y'?
true:
false;
791 $obj->color = $val[
'color'];
792 $obj->document_count = $val[
'document_count'];
793 $obj->depth = $depth;
794 $obj->child_count = 0;
795 $obj->childs = array();
796 $obj->grant = $val[
'grant'];
799 else $selected =
false;
801 $obj->selected = $selected;
803 $list_order[$idx++] =
$obj->category_srl;
807 $parent_srl =
$obj->parent_srl;
808 $document_count =
$obj->document_count;
809 $expand =
$obj->expand;
810 if($selected) $expand =
true;
814 $document_category[$parent_srl]->document_count += $document_count;
815 $document_category[$parent_srl]->childs[] =
$obj->category_srl;
816 $document_category[$parent_srl]->child_count = count($document_category[$parent_srl]->childs);
817 if($expand) $document_category[$parent_srl]->expand = $expand;
819 $parent_srl = $document_category[$parent_srl]->parent_srl;
823 $document_category[$key] =
$obj;
825 if(count($val[
'list'])) $this->_arrangeCategory($document_category, $val[
'list'], $depth+1);
827 $document_category[$list_order[0]]->first =
true;
828 $document_category[$list_order[count($list_order)-1]]->last =
true;
839 $args =
new stdClass;
841 $args->category_srl = $category_srl;
843 return (
int)
$output->data->count;
853 $xml_file = sprintf(
'files/cache/document_category/%s.xml.php',
$module_srl);
854 if(!file_exists($xml_file))
869 $php_file = sprintf(
'files/cache/document_category/%s.php',
$module_srl);
870 if(!file_exists($php_file))
892 $args =
new stdClass;
893 if(is_array(
$obj->module_srl))
$args->module_srl = implode(
',',
$obj->module_srl);
894 else $args->module_srl =
$obj->module_srl;
918 $args =
new stdClass;
919 if(is_array(
$obj->module_srl))
$args->module_srl = implode(
',',
$obj->module_srl);
920 else $args->module_srl =
$obj->module_srl;
942 $output =
"0,0,{$lang->none_category}\n";
945 foreach($categories as $category_srl => $category)
947 $output .= sprintf(
"%d,%d,%s\n",$category_srl, $category->depth,$category->title);
950 $this->add(
'categories',
$output);
959 if($this->documentConfig === NULL)
966 $config =
new stdClass();
968 $this->documentConfig = $config;
970 return $this->documentConfig;
985 $security->encodeHTML(
'extra_keys..',
'selected_var_idx');
989 return $oTemplate->compile($this->module_path.
'tpl',
'extra_keys');
999 $category_xml_file = $this->getCategoryXmlFile(
$module_srl);
1006 $oMemberModel =
getModel(
'member');
1007 $group_list = $oMemberModel->getGroups(
$module_info->site_srl);
1011 $security->encodeHTML(
'group_list..title');
1015 return $oTemplate->compile($this->module_path.
'tpl',
'category_list');
1026 $oMemberModel =
getModel(
'member');
1032 if(!$grant->manager)
return new BaseObject(-1,
'msg_not_permitted');
1035 $category_info = $this->getCategory($category_srl);
1038 return new BaseObject(-1,
'msg_invalid_request');
1041 $this->add(
'category_info', $category_info);
1052 if(!$mid || !$alias)
return null;
1054 $args =
new stdClass;
1056 $args->alias_title = $alias;
1057 $args->site_srl = $site_module_info->site_srl;
1059 if(!
$output->data)
return null;
1060 else return $output->data->document_srl;
1072 $args =
new stdClass;
1074 $args->title = $title;
1076 if(!
$output->data)
return null;
1079 if(is_array(
$output->data))
return $output->data[0]->document_srl;
1080 return $output->data->document_srl;
1092 $args =
new stdClass;
1096 if(!
$output->data)
return null;
1097 else return $output->data[0]->alias_title;
1109 $args =
new stdClass;
1110 $args->list_count = $list_count;
1111 $args->page = $page;
1124 $args =
new stdClass;
1125 $args->history_srl = $history_srl;
1138 $args =
new stdClass;
1139 $args->category_srl =
$obj->category_srl?
$obj->category_srl:null;
1141 $args->order_type =
$obj->order_type?
$obj->order_type:
'desc';
1146 $search_target =
$obj->search_target;
1147 $search_keyword =
$obj->search_keyword;
1148 if($search_target && $search_keyword)
1150 switch($search_target)
1154 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1155 $args->{
"s_".$search_target} = $search_keyword;
1156 $use_division =
true;
1158 case 'title_content' :
1159 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1160 $args->s_title = $search_keyword;
1161 $args->s_content = $search_keyword;
1164 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1165 $args->s_user_id = $search_keyword;
1166 $args->sort_index =
'documents.'.$args->sort_index;
1170 case 'email_address' :
1172 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1173 $args->{
"s_".$search_target} = $search_keyword;
1177 if($search_keyword==
'N')
$args->statusList = array($this->getConfigStatus(
'public'));
1178 elseif($search_keyword==
'Y')
$args->statusList = array($this->getConfigStatus(
'secret'));
1181 case 'readed_count' :
1182 case 'voted_count' :
1183 case 'blamed_count' :
1184 case 'comment_count' :
1185 case 'trackback_count' :
1186 case 'uploaded_count' :
1187 $args->{
"s_".$search_target} = (int)$search_keyword;
1190 case 'last_update' :
1193 $args->{
"s_".$search_target} = $search_keyword;
1201 foreach(
$output->data as $key => $attribute)
1205 $oDocument->setAttribute($attribute,
false);
1206 $attribute = $oDocument;
1218 $args =
new stdClass;
1223 if($point != -1) $point = 1;
1226 $columnList = array(
'document_srl',
'module_srl');
1235 if($document_config->use_vote_down!=
'S')
return new BaseObject(-1,
'msg_invalid_request');
1236 $args->below_point = 0;
1240 if($document_config->use_vote_up!=
'S')
return new BaseObject(-1,
'msg_invalid_request');
1241 $args->more_point = 0;
1249 $oMemberModel =
getModel(
'member');
1252 foreach(
$output->data as $k => $d)
1254 $profile_image = $oMemberModel->getProfileImage($d->member_srl);
1255 $output->data[$k]->src = $profile_image->src;
1259 $this->add(
'voted_member_list',
$output->data);
1269 if(!isset($lang->status_name_list))
1270 return array_flip($this->getStatusList());
1271 else return $lang->status_name_list;
1282 $sortIndex =
$obj->sort_index;
1283 $isExtraVars =
false;
1284 if(!in_array($sortIndex, array(
'list_order',
'regdate',
'last_update',
'update_order',
'readed_count',
'voted_count',
'blamed_count',
'comment_count',
'trackback_count',
'uploaded_count',
'title',
'category_srl')))
1287 if ($load_extra_vars)
1289 $extra_args =
new stdClass();
1290 $extra_args->module_srl =
$obj->module_srl;
1292 if (!$extra_output->data || !$extra_output->toBool())
1294 $sortIndex =
'list_order';
1298 $check_array = array();
1299 foreach($extra_output->data as $val)
1301 $check_array[] = $val->eid;
1303 if(!in_array($sortIndex, $check_array)) $sortIndex =
'list_order';
1304 else $isExtraVars =
true;
1308 $sortIndex =
'list_order';
1310 $returnObj =
new stdClass();
1311 $returnObj->sort_index = $sortIndex;
1312 $returnObj->isExtraVars = $isExtraVars;
1330 $args =
new stdClass();
1331 $args->category_srl = $searchOpt->category_srl?$searchOpt->category_srl:null;
1332 $args->order_type = $searchOpt->order_type;
1333 $args->page = $searchOpt->page?$searchOpt->page:1;
1334 $args->list_count = $searchOpt->list_count?$searchOpt->list_count:20;
1335 $args->page_count = $searchOpt->page_count?$searchOpt->page_count:10;
1336 $args->start_date = $searchOpt->start_date?$searchOpt->start_date:null;
1337 $args->end_date = $searchOpt->end_date?$searchOpt->end_date:null;
1338 $args->member_srl = $searchOpt->member_srl;
1339 $args->member_srls = $searchOpt->member_srls;
1343 $args->sort_index = $searchOpt->sort_index;
1346 $orderType = array(
'desc' => 1,
'asc' => 1);
1347 if(!isset($orderType[
$args->order_type]))
$args->order_type =
'asc';
1354 unset($searchOpt->mid);
1358 if(is_array($searchOpt->module_srl))
$args->module_srl = implode(
',', $searchOpt->module_srl);
1359 else $args->module_srl = $searchOpt->module_srl;
1362 if(is_array($searchOpt->exclude_module_srl))
$args->exclude_module_srl = implode(
',', $searchOpt->exclude_module_srl);
1363 else $args->exclude_module_srl = $searchOpt->exclude_module_srl;
1366 if($searchOpt->statusList)
$args->statusList = $searchOpt->statusList;
1369 if(
$logged_info->is_admin ==
'Y' && !$searchOpt->module_srl)
1370 $args->statusList = array($this->getConfigStatus(
'secret'), $this->getConfigStatus(
'public'), $this->getConfigStatus(
'temp'));
1372 $args->statusList = array($this->getConfigStatus(
'secret'), $this->getConfigStatus(
'public'));
1376 if(
$args->category_srl)
1378 $category_list = $this->getCategoryList(
$args->module_srl);
1379 $category_info = $category_list[
$args->category_srl];
1380 $category_info->childs[] =
$args->category_srl;
1381 $args->category_srl = implode(
',',$category_info->childs);
1385 $query_id =
'document.getDocumentList';
1388 $use_division =
false;
1391 $search_target = $searchOpt->search_target;
1392 $search_keyword = $searchOpt->search_keyword;
1394 if($search_target && $search_keyword)
1396 switch($search_target)
1400 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1401 $args->{
"s_".$search_target} = $search_keyword;
1402 $use_division =
true;
1404 case 'title_content' :
1405 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1406 $args->s_title = $search_keyword;
1407 $args->s_content = $search_keyword;
1408 $use_division =
true;
1411 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1412 $args->s_user_id = $search_keyword;
1413 $args->sort_index =
'documents.'.$args->sort_index;
1417 case 'email_address' :
1419 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
1420 $args->{
"s_".$search_target} = $search_keyword;
1423 if($search_keyword==
'N')
$args->{
"s_".$search_target} =
'N';
1424 elseif($search_keyword==
'Y')
$args->{
"s_".$search_target} =
'Y';
1425 else $args->{
"s_".$search_target} =
'';
1428 if($search_keyword==
'N')
$args->statusList = array($this->getConfigStatus(
'public'));
1429 elseif($search_keyword==
'Y')
$args->statusList = array($this->getConfigStatus('secret'));
1430 elseif($search_keyword=='temp')
$args->statusList = array($this->getConfigStatus('temp'));
1433 case 'readed_count' :
1434 case 'voted_count' :
1435 case 'comment_count' :
1436 case 'trackback_count' :
1437 case 'uploaded_count' :
1438 $args->{
"s_".$search_target} = (int)$search_keyword;
1440 case 'member_srls' :
1441 $args->{
"s_".$search_target} = (int)$search_keyword;
1445 $srls = explode(
',', $search_keyword);
1446 foreach($srls as $srl)
1453 $args->{
"s_".$search_target} = $search_keyword;
1458 case 'blamed_count' :
1459 $args->{
"s_".$search_target} = (int)$search_keyword * -1;
1462 case 'last_update' :
1464 $args->{
"s_".$search_target} = $search_keyword;
1467 $args->s_comment = $search_keyword;
1468 $query_id =
'document.getDocumentListWithinComment';
1469 $use_division =
true;
1472 $args->s_tags = str_replace(
' ',
'%',$search_keyword);
1473 $query_id =
'document.getDocumentListWithinTag';
1476 $args->var_value = str_replace(
' ',
'%', $search_keyword);
1477 $query_id =
'document.getDocumentListWithinExtraVars';
1480 if(strpos($search_target,
'extra_vars')!==
false) {
1481 $args->var_idx = substr($search_target, strlen(
'extra_vars'));
1482 $args->var_value = str_replace(
' ',
'%',$search_keyword);
1483 $args->sort_index =
'documents.'.$args->sort_index;
1484 $query_id =
'document.getDocumentListWithExtraVars';
1490 if ($searchOpt->isExtraVars)
1492 $query_id =
'document.getDocumentListExtraSort';
1499 if(
$args->sort_index !=
'list_order' ||
$args->order_type !=
'asc') $use_division =
false;
1510 if(
$args->sort_index ==
'list_order' && (
$args->exclude_module_srl ===
'0' || count(explode(
',',
$args->module_srl)) > 5))
1512 $listSqlID =
'document.getDocumentListUseIndex';
1513 $divisionSqlID =
'document.getDocumentDivisionUseIndex';
1517 $listSqlID =
'document.getDocumentList';
1518 $divisionSqlID =
'document.getDocumentDivision';
1524 $division_args =
new stdClass();
1525 $division_args->module_srl =
$args->module_srl;
1526 $division_args->exclude_module_srl =
$args->exclude_module_srl;
1527 $division_args->list_count = 1;
1528 $division_args->sort_index =
$args->sort_index;
1529 $division_args->order_type =
$args->order_type;
1530 $division_args->statusList =
$args->statusList;
1535 $item = array_pop(
$output->data);
1536 $division = $item->list_order;
1538 $division_args = null;
1547 $last_division_args =
new stdClass();
1548 $last_division_args->module_srl =
$args->module_srl;
1549 $last_division_args->exclude_module_srl =
$args->exclude_module_srl;
1550 $last_division_args->list_count = 1;
1551 $last_division_args->sort_index =
$args->sort_index;
1552 $last_division_args->order_type =
$args->order_type;
1553 $last_division_args->list_order = $division;
1554 $last_division_args->page = 5001;
1559 $item = array_pop(
$output->data);
1560 $last_division = $item->list_order;
1567 $last_division_args =
new stdClass();
1568 $last_division_args->module_srl =
$args->module_srl;
1569 $last_division_args->exclude_module_srl =
$args->exclude_module_srl;
1570 $last_division_args->list_order = $last_division;
1572 if(
$output->data->count<1) $last_division = null;
1575 $args->division = $division;
1576 $args->last_division = $last_division;
1590 $args =
new stdClass();
1591 $args->member_srl = $member_srl;
1593 return (
int)
$output->data->count;
1607 $args =
new stdClass();
1608 $args->member_srl = $member_srl;
1609 $args->list_count = $count;
1611 $document_list =
$output->data;
1613 if(!$document_list)
return array();
1614 if(!is_array($document_list)) $document_list = array($document_list);
1616 return $document_list;
1625 $documentConfig =
getModel(
'document')->getDocumentConfig();
1628 $iconSkin = $documentConfig->micons;
1632 $iconSkin = $documentConfig->icons;
1634 $path = sprintf(
'%s%s',
getUrl(),
"modules/document/tpl/icons/$iconSkin/");
getCategoryDocumentCount($module_srl, $category_srl)
getDocumentPage($oDocument, $opt)
getController($module_name)
getDocumentCountByMemberSrl($member_srl)
if(file_exists(_XE_PATH_. 'config/config.user.inc.php')) if(!defined('__DEBUG__')) if(!defined('__DEBUG_OUTPUT__')) if(!defined('__DEBUG_PROTECT__')) if(!defined('__DEBUG_PROTECT_IP__')) if(!defined('__DEBUG_DB_OUTPUT__')) if(!defined('__LOG_SLOW_QUERY__')) if(!defined('__LOG_SLOW_TRIGGER__')) if(!defined('__LOG_SLOW_ADDON__')) if(!defined('__LOG_SLOW_WIDGET__')) if(!defined('__DEBUG_QUERY__')) if(!defined('__OB_GZHANDLER_ENABLE__')) if(!defined('__ENABLE_PHPUNIT_TEST__')) if(!defined('__PROXY_SERVER__')) if(!defined('__ERROR_LOG__')) if(!defined('__DISABLE_DEFAULT_CSS__')) if(!defined('__AUTO_OPCACHE_INVALIDATE__')) if((__DEBUG_OUTPUT__==2)&&version_compare(PHP_VERSION, '6.0.0')===-1) if(version_compare(PHP_VERSION, '5.3.0') >=0) $GLOBALS['__xe_autoload_file_map']
getCategoryChlidCount($category_srl)
getDocumentSrlByTitle($module_srl, $title)
& getInstance($target= 'object', $info=null, $always_use_file=false)
getHistories($document_srl, $list_count, $page)
$act
a string value to contain the action name
foreach($sitemap as $id=> &$val) $extra_vars
getDocument($document_srl=0, $is_admin=false, $load_extra_vars=true, $columnList=array())
set($key, $val, $set_to_get_vars=0)
getDailyArchivedList($obj)
getDocumentVotedMemberList()
loadJavascriptPlugin($plugin_name)
$module_srl
integer value to represent a run-time instance of Module (XE Module)
getDocumentCountByGroupStatus($search_obj=NULL)
_setSortIndex($obj, $load_extra_vars)
$mid
string to represent run-time instance of Module (XE Module)
getExtraVarsHTML($module_srl)
getCategoryList($module_srl, $columnList=array())
getDocumentExtraImagePath()
getDocumentExtraVarsFromDB($documentSrls)
getCategory($category_srl, $columnList=array())
getDocumentCategoryTplInfo()
getDocuments($document_srls, $is_admin=false, $load_extra_vars=true, $columnList=array())
document the module's high class {
_setSearchOption($searchOpt, &$args, &$query_id, &$use_division)
getDocumentExtraVarsCount($module_srl, $search_obj=NULL)
getExtraKeys($module_srl)
getMonthlyArchivedList($obj)
getCategoryHTML($module_srl)
setToAllDocumentExtraVars()
getCategoryXmlFile($module_srl)
getExtraVars($module_srl, $document_srl)
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
getDocumentCount($module_srl, $search_obj=NULL)
getDocumentList($obj, $except_notice=false, $load_extra_vars=true, $columnList=array())
getDocumentListByMemberSrl($member_srl, $columnList=array(), $page=0, $is_admin=FALSE, $count=0)
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
getNoticeList($obj, $columnList=array())
triggerCall($trigger_name, $called_position, &$obj)
getCategoryPhpFile($module_srl)
_arrangeCategory(&$document_category, $list, $depth)
if(isset($_REQUEST['encode'])) if(isset($_REQUEST['decode'])) $lang
getDocumentSrlByAlias($mid, $alias)