本文整理汇总了PHP中mosAdminMenus::menuItem方法的典型用法代码示例。如果您正苦于以下问题:PHP mosAdminMenus::menuItem方法的具体用法?PHP mosAdminMenus::menuItem怎么用?PHP mosAdminMenus::menuItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mosAdminMenus
的用法示例。
在下文中一共展示了mosAdminMenus::menuItem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @package Mambo
* @subpackage Menus
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license GNU/GPL Version 2, see LICENSE.php
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the License.
*/
/** ensure this file is being included by a parent file */
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
mosAdminMenus::menuItem($type);
switch ($task) {
case 'content_blog_section':
// this is the new item, ie, the same name as the menu `type`
content_blog_section::edit(0, $menutype, $option);
break;
case 'edit':
content_blog_section::edit($cid[0], $menutype, $option);
break;
case 'save':
case 'apply':
content_blog_section::saveMenu($option, $task);
break;
}