mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 70 site map admin developement
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9055 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b909a11c5e
commit
fc3a39b65a
8 changed files with 131 additions and 46 deletions
|
|
@ -334,13 +334,23 @@
|
|||
/**
|
||||
* @brief Get admin favorite list
|
||||
**/
|
||||
function getFavoriteList($siteSrl)
|
||||
function getFavoriteList($siteSrl = 0, $isGetModuleInfo = false)
|
||||
{
|
||||
$args->site_srl = $siteSrl;
|
||||
$output = executeQueryArray('admin.getFavoriteList', $args);
|
||||
if (!$output->toBool()) return $output;
|
||||
if (!$output->data) return new Object();
|
||||
|
||||
if($isGetModuleInfo && is_array($output->data))
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
foreach($output->data AS $key=>$value)
|
||||
{
|
||||
$moduleInfo = $oModuleModel->getModuleInfoXml($value->module);
|
||||
$value->admin_index_act = $moduleInfo->admin_index_act;
|
||||
}
|
||||
}
|
||||
|
||||
$returnObject = new Object();
|
||||
$returnObject->add('favoriteList', $output->data);
|
||||
return $returnObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue