mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 70 favorite interface developement
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9030 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
425b02531f
commit
249ba8c7f5
5 changed files with 8 additions and 106 deletions
|
|
@ -341,17 +341,6 @@
|
|||
if (!$output->toBool()) return $output;
|
||||
if (!$output->data) return new Object();
|
||||
|
||||
foreach($output->data as $row)
|
||||
{
|
||||
$targetModule = $row->module;
|
||||
$oTargetModuleAdminModel = &getAdminModel($targetModule);
|
||||
if (!$oTargetModuleAdminModel) continue;
|
||||
if (!method_exists($oTargetModuleAdminModel, 'getFavoriteInfo')) continue;
|
||||
|
||||
$favoriteInfo = $oTargetModuleAdminModel->getFavoriteInfo($row->key);
|
||||
$favoriteList[] = $favoriteInfo;
|
||||
}
|
||||
|
||||
$returnObject = new Object();
|
||||
$returnObject->add('favoriteList', $favoriteList);
|
||||
return $returnObject;
|
||||
|
|
@ -360,11 +349,10 @@
|
|||
/**
|
||||
* @brief Check available insert favorite
|
||||
**/
|
||||
function isExistsFavorite($siteSrl, $module, $key)
|
||||
function isExistsFavorite($siteSrl, $module)
|
||||
{
|
||||
$args->site_srl = $siteSrl;
|
||||
$args->module = $module;
|
||||
$args->key = $key;
|
||||
$output = executeQuery('admin.getFavorite', $args);
|
||||
if (!$output->toBool()) return $output;
|
||||
|
||||
|
|
@ -382,29 +370,6 @@
|
|||
return $returnObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get favorite by module, site
|
||||
**/
|
||||
function getFavoriteListByModule($siteSrl, $module)
|
||||
{
|
||||
$args->site_srl = $siteSrl;
|
||||
$args->module = $module;
|
||||
$columnList = array('key');
|
||||
$output = executeQueryArray('admin.getFavoriteList', $args, $columnList);
|
||||
if (!$output->toBool()) return $output;
|
||||
if (!$output->data) $output->data = array();
|
||||
|
||||
$list = array();
|
||||
foreach($output->data as $row)
|
||||
{
|
||||
$list[$row->key] = $row->key;
|
||||
}
|
||||
|
||||
$returnObject = new Object();
|
||||
$returnObject->add('list', $list);
|
||||
return $returnObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return site list
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue