mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 13:52:24 +09:00
changed make admin menu logic, added reset admin menu function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9071 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e4d9b43320
commit
986053ac4d
6 changed files with 40 additions and 20 deletions
|
|
@ -2,14 +2,12 @@
|
|||
/**
|
||||
* @class admin
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief base class of admin module
|
||||
* @brief base class of admin module
|
||||
**/
|
||||
|
||||
class admin extends ModuleObject {
|
||||
var $xeMenuTitle;
|
||||
|
||||
/**
|
||||
* @brief install admin module
|
||||
* @brief install admin module
|
||||
* @return new Object
|
||||
**/
|
||||
function moduleInstall() {
|
||||
|
|
@ -20,20 +18,11 @@
|
|||
* @brief if update is necessary it returns true
|
||||
**/
|
||||
function checkUpdate() {
|
||||
$this->xeMenuTitle = '__XE_ADMIN__';
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$output = $oMenuAdminModel->getMenuByTitle($this->xeMenuTitle);
|
||||
|
||||
if(!$output->menu_srl)
|
||||
{
|
||||
$this->_createXeAdminMenu();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief update module
|
||||
* @brief update module
|
||||
* @return new Object
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue