Source for file menu.php

Documentation is available at menu.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Libraries
  4.  * @subpackage  Form
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12.  
  13. // Import the com_menus helper.
  14. require_once realpath(JPATH_ADMINISTRATOR '/components/com_menus/helpers/menus.php');
  15.  
  16. /**
  17.  * Supports an HTML select list of menus
  18.  *
  19.  * @package     Joomla.Libraries
  20.  * @subpackage  Form
  21.  * @since       1.6
  22.  */
  23. {
  24.     /**
  25.      * The form field type.
  26.      *
  27.      * @var    string 
  28.      * @since  1.6
  29.      */
  30.     public $type = 'Menu';
  31.  
  32.     /**
  33.      * Method to get the list of menus for the field options.
  34.      *
  35.      * @return  array  The field option objects.
  36.      *
  37.      * @since   1.6
  38.      */
  39.     protected function getOptions()
  40.     {
  41.         // Merge any additional options in the XML definition.
  42.         $options array_merge(parent::getOptions()JHtml::_('menu.menus'));
  43.  
  44.         return $options;
  45.     }
  46. }

Documentation generated on Tue, 19 Nov 2013 15:07:51 +0100 by phpDocumentor 1.4.3