[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_menus/content_typed/ -> content_typed.menu.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Menus
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  mosAdminMenus::menuItem( $type );
  21  
  22  $scid     = mosGetParam( $_POST, 'scid', '' );
  23  
  24  switch ($task) {
  25      case 'content_typed':
  26          // this is the new item, ie, the same name as the menu `type`
  27          content_typed_menu::edit( 0, $menutype, $option );
  28          break;
  29          
  30      case 'edit':
  31          content_typed_menu::edit( $cid[0], $menutype, $option );
  32          break;
  33          
  34      case 'save':
  35      case 'apply':
  36          saveMenu( $option, $task );
  37          break;
  38          
  39      case 'redirect':
  40          content_typed_menu::redirect( $scid );
  41          break;        
  42  }
  43  ?>