mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
issue 2119. supporting php 5.4. modules and widgets.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12706 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ff75082eee
commit
8a7c28babc
90 changed files with 572 additions and 83 deletions
|
|
@ -39,6 +39,7 @@ class documentModel extends document
|
|||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $documentSrls;
|
||||
$output = executeQueryArray('document.getDocumentExtraVars', $args);
|
||||
return $output;
|
||||
|
|
@ -163,6 +164,7 @@ class documentModel extends document
|
|||
{
|
||||
$list_count = 1;
|
||||
}
|
||||
$args = new stdClass();
|
||||
$args->document_srls = $document_srls;
|
||||
$args->list_count = $list_count;
|
||||
$args->order_type = 'asc';
|
||||
|
|
@ -333,6 +335,7 @@ class documentModel extends document
|
|||
*/
|
||||
function getNoticeList($obj, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $obj->module_srl;
|
||||
$args->category_srl= $obj->category_srl;
|
||||
$output = executeQueryArray('document.getNoticeList', $args, $columnList);
|
||||
|
|
@ -373,6 +376,7 @@ class documentModel extends document
|
|||
if(is_null($GLOBALS['XE_EXTRA_KEYS'][$module_srl]))
|
||||
{
|
||||
$oExtraVar = &ExtraVar::getInstance($module_srl);
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->sort_index = 'var_idx';
|
||||
$obj->order = 'asc';
|
||||
|
|
@ -543,6 +547,7 @@ class documentModel extends document
|
|||
function getDocumentCount($module_srl, $search_obj = NULL)
|
||||
{
|
||||
// Additional search options
|
||||
$args =new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->s_title = $search_obj->s_title;
|
||||
$args->s_content = $search_obj->s_content;
|
||||
|
|
@ -646,6 +651,7 @@ class documentModel extends document
|
|||
*/
|
||||
function getCategory($category_srl, $columnList = array())
|
||||
{
|
||||
$args =new stdClass();
|
||||
$args->category_srl = $category_srl;
|
||||
$output = executeQuery('document.getCategory', $args, $columnList);
|
||||
|
||||
|
|
@ -673,6 +679,7 @@ class documentModel extends document
|
|||
*/
|
||||
function getCategoryChlidCount($category_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $category_srl;
|
||||
$output = executeQuery('document.getChildCategoryCount',$args);
|
||||
if($output->data->count > 0) return true;
|
||||
|
|
@ -1210,6 +1217,7 @@ class documentModel extends document
|
|||
// get module_srl extra_vars list
|
||||
if ($load_extra_vars)
|
||||
{
|
||||
$extra_args = new stdClass();
|
||||
$extra_args->module_srl = $obj->module_srl;
|
||||
$extra_output = executeQueryArray('document.getGroupsExtraVars', $extra_args);
|
||||
if (!$extra_output->data || !$extra_output->toBool())
|
||||
|
|
@ -1230,6 +1238,7 @@ class documentModel extends document
|
|||
else
|
||||
$sortIndex = 'list_order';
|
||||
}
|
||||
$returnObj = new stdClass();
|
||||
$returnObj->sort_index = $sortIndex;
|
||||
$returnObj->isExtraVars = $isExtraVars;
|
||||
|
||||
|
|
@ -1249,6 +1258,7 @@ class documentModel extends document
|
|||
function _setSearchOption($searchOpt, &$args, &$query_id, &$use_division)
|
||||
{
|
||||
// Variable check
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $searchOpt->category_srl?$searchOpt->category_srl:null;
|
||||
$args->order_type = $searchOpt->order_type;
|
||||
$args->page = $searchOpt->page?$searchOpt->page:1;
|
||||
|
|
@ -1416,6 +1426,7 @@ class documentModel extends document
|
|||
// If you do not value the best division top
|
||||
if(!$division)
|
||||
{
|
||||
$division_args = new stdClass();
|
||||
$division_args->module_srl = $args->module_srl;
|
||||
$division_args->exclude_module_srl = $args->exclude_module_srl;
|
||||
$division_args->list_count = 1;
|
||||
|
|
@ -1438,6 +1449,7 @@ class documentModel extends document
|
|||
// Division after division from the 5000 value of the specified Wanted
|
||||
if(!$last_division)
|
||||
{
|
||||
$last_division_args = new stdClass();
|
||||
$last_division_args->module_srl = $args->module_srl;
|
||||
$last_division_args->exclude_module_srl = $args->exclude_module_srl;
|
||||
$last_division_args->list_count = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue