mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Add favorite in module page
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9039 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
183f0d6031
commit
5278bb135c
5 changed files with 36 additions and 6 deletions
|
|
@ -27,7 +27,8 @@
|
|||
**/
|
||||
function dispModuleAdminList() {
|
||||
// Obtain a list of modules
|
||||
$oModuleModel = &getModel('module');
|
||||
$oAdminModel = &getAdminModel('admin');
|
||||
$oModuleModel = &getModel('module');
|
||||
$oAutoinstallModel = &getModel('autoinstall');
|
||||
|
||||
$module_list = $oModuleModel->getModuleList();
|
||||
|
|
@ -35,7 +36,17 @@
|
|||
$val->delete_url = $oAutoinstallModel->getRemoveUrlByPath($val->path);
|
||||
}
|
||||
|
||||
Context::set('module_list', $module_list);
|
||||
$output = $oAdminModel->getFavoriteList('0');
|
||||
if($output->toBool()) debugPrint('ok');
|
||||
|
||||
$favoriteList = $output->variables['favoriteList'];
|
||||
$favoriteModuleList = array();
|
||||
foreach($favoriteList as $favorite => $favorite_info){
|
||||
$favoriteModuleList[] = $favorite_info->module;
|
||||
}
|
||||
|
||||
Context::set('favoriteModuleList', $favoriteModuleList);
|
||||
Context::set('module_list', $module_list);
|
||||
// Set a template file
|
||||
$this->setTemplateFile('spInstalledModule');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue