Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /joomla/database/table/menu.php

Documentation is available at menu.php

  1. <?php
  2. /**
  3. @version        $Id: menu.php 6508 2007-02-05 04:29:26Z Jinx $
  4. @package        Joomla.Framework
  5. @subpackage    Table
  6. @copyright    Copyright (C) 2005 - 2007 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 $link                = null;
  35.     /** @var int */
  36.     var $type                = null;
  37.     /** @var int */
  38.     var $published            = null;
  39.     /** @var int */
  40.     var $componentid        = null;
  41.     /** @var int */
  42.     var $parent                = null;
  43.     /** @var int */
  44.     var $sublevel            = null;
  45.     /** @var int */
  46.     var $ordering            = null;
  47.     /** @var boolean */
  48.     var $checked_out        = 0;
  49.     /** @var datetime */
  50.     var $checked_out_time    = 0;
  51.     /** @var boolean */
  52.     var $pollid                = null;
  53.     /** @var string */
  54.     var $browserNav            = null;
  55.     /** @var int */
  56.     var $access                = null;
  57.     /** @var int */
  58.     var $utaccess            = null;
  59.     /** @var string */
  60.     var $params                = null;
  61.     /** @var int Pre-order tree traversal - left value */
  62.     var $lft                = null;
  63.     /** @var int Pre-order tree traversal - right value */
  64.     var $rgt                = null;
  65.     /** @var int */
  66.     var $home                = null;
  67.  
  68.     /**
  69.      * Constructor
  70.      *
  71.      * @access protected
  72.      * @param database A database connector object
  73.      */
  74.     function __construct&$db {
  75.         parent::__construct'#__menu''id'$db );
  76.     }
  77.  
  78.     /**
  79.     * Overloaded bind function
  80.     *
  81.     * @access public
  82.     * @param array $hash named array
  83.     * @return null|string   null is operation was satisfactory, otherwise returns an error
  84.     * @see JTable:bind
  85.     * @since 1.5
  86.     */
  87.  
  88.     function bind($array$ignore '')
  89.     {
  90.         if (is_array$array['params')) {
  91.             $registry new JRegistry();
  92.             $registry->loadArray($array['params']);
  93.             $array['params'$registry->toString();
  94.         }
  95.  
  96.         return parent::bind($array$ignore);
  97.     }
  98. }
  99. ?>

Documentation generated on Mon, 05 Mar 2007 21:10:25 +0000 by phpDocumentor 1.3.1