[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: url.class.php 4544 2006-08-15 13:49:12Z predator $ 4 * @package Joomla 5 * @subpackage Menus 6 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 7 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // no direct access 16 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 17 18 /** 19 * @package Joomla 20 * @subpackage Menus 21 */ 22 class url_menu { 23 24 /** 25 * @param database A database connector object 26 * @param integer The unique id of the category to edit (0 if new) 27 */ 28 function edit( &$uid, $menutype, $option ) { 29 global $database, $my, $mainframe; 30 global $mosConfig_absolute_path; 31 32 $menu = new mosMenu( $database ); 33 $menu->load( (int)$uid ); 34 35 // fail if checked out not by 'me' 36 if ($menu->checked_out && $menu->checked_out != $my->id) { 37 mosErrorAlert( "The module ".$menu->title." is currently being edited by another administrator" ); 38 } 39 40 if ($uid) { 41 $menu->checkout( $my->id ); 42 } else { 43 $menu->type = 'url'; 44 $menu->menutype = $menutype; 45 $menu->browserNav = 0; 46 $menu->ordering = 9999; 47 $menu->parent = intval( mosGetParam( $_POST, 'parent', 0 ) ); 48 $menu->published = 1; 49 } 50 51 // build html select list for target window 52 $lists['target'] = mosAdminMenus::Target( $menu ); 53 54 // build the html select list for ordering 55 $lists['ordering'] = mosAdminMenus::Ordering( $menu, $uid ); 56 // build the html select list for the group access 57 $lists['access'] = mosAdminMenus::Access( $menu ); 58 // build the html select list for paraent item 59 $lists['parent'] = mosAdminMenus::Parent( $menu ); 60 // build published button option 61 $lists['published'] = mosAdminMenus::Published( $menu ); 62 // build the url link output 63 $lists['link'] = mosAdminMenus::Link( $menu, $uid ); 64 65 // get params definitions 66 $params = new mosParameters( $menu->params, $mainframe->getPath( 'menu_xml', $menu->type ), 'menu' ); 67 68 url_menu_html::edit( $menu, $lists, $params, $option ); 69 } 70 } 71 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |