| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: menu.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Framework 5 * @subpackage Table 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license 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 // Check to ensure this file is within the rest of the framework 16 defined('JPATH_BASE') or die(); 17 18 /** 19 * Menu table 20 * 21 * @package Joomla.Framework 22 * @subpackage Table 23 * @since 1.0 24 */ 25 class JTableMenu extends JTable 26 { 27 /** @var int Primary key */ 28 var $id = null; 29 /** @var string */ 30 var $menutype = null; 31 /** @var string */ 32 var $name = null; 33 /** @var string */ 34 var $alias = null; 35 /** @var string */ 36 var $link = null; 37 /** @var int */ 38 var $type = null; 39 /** @var int */ 40 var $published = null; 41 /** @var int */ 42 var $componentid = null; 43 /** @var int */ 44 var $parent = null; 45 /** @var int */ 46 var $sublevel = null; 47 /** @var int */ 48 var $ordering = null; 49 /** @var boolean */ 50 var $checked_out = 0; 51 /** @var datetime */ 52 var $checked_out_time = 0; 53 /** @var boolean */ 54 var $pollid = null; 55 /** @var string */ 56 var $browserNav = null; 57 /** @var int */ 58 var $access = null; 59 /** @var int */ 60 var $utaccess = null; 61 /** @var string */ 62 var $params = null; 63 /** @var int Pre-order tree traversal - left value */ 64 var $lft = null; 65 /** @var int Pre-order tree traversal - right value */ 66 var $rgt = null; 67 /** @var int */ 68 var $home = null; 69 70 /** 71 * Constructor 72 * 73 * @access protected 74 * @param database A database connector object 75 */ 76 function __construct( &$db ) { 77 parent::__construct( '#__menu', 'id', $db ); 78 } 79 80 /** 81 * Overloaded check function 82 * 83 * @access public 84 * @return boolean 85 * @see JTable::check 86 * @since 1.5 87 */ 88 function check() 89 { 90 if(empty($this->alias)) { 91 $this->alias = $this->name; 92 } 93 $this->alias = JFilterOutput::stringURLSafe($this->alias); 94 if(trim(str_replace('-','',$this->alias)) == '') { 95 $datenow =& JFactory::getDate(); 96 $this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S"); 97 } 98 99 return true; 100 } 101 102 /** 103 * Overloaded bind function 104 * 105 * @access public 106 * @param array $hash named array 107 * @return null|string null is operation was satisfactory, otherwise returns an error 108 * @see JTable:bind 109 * @since 1.5 110 */ 111 112 function bind($array, $ignore = '') 113 { 114 if (is_array( $array['params'] )) 115 { 116 $registry = new JRegistry(); 117 $registry->loadArray($array['params']); 118 $array['params'] = $registry->toString(); 119 } 120 121 return parent::bind($array, $ignore); 122 } 123 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |