Source for file moduletag.php

Documentation is available at moduletag.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.txt
  8.  */
  9.  
  10. defined('JPATH_BASE'or die;
  11.  
  12.  
  13. /**
  14.  * Form Field class for the Joomla! CMS.
  15.  *
  16.  * @package     Joomla.Libraries
  17.  * @subpackage  Form
  18.  * @since       3.0
  19.  */
  20. {
  21.     /**
  22.      * The form field type.
  23.      *
  24.      * @var    string 
  25.      * @since  3.0
  26.      */
  27.     protected $type = 'ModuleTag';
  28.  
  29.     /**
  30.      * Method to get the field options.
  31.      *
  32.      * @return  array  The field option objects.
  33.      *
  34.      * @since   3.0
  35.      */
  36.     protected function getOptions()
  37.     {
  38.         $options array();
  39.         $tags array('div''section''aside''nav''address''article');
  40.  
  41.         // Create one new option object for each tag
  42.         foreach ($tags as $tag)
  43.         {
  44.             $tmp JHtml::_('select.option'$tag$tag);
  45.             $options[$tmp;
  46.         }
  47.  
  48.         reset($options);
  49.  
  50.         return $options;
  51.     }
  52. }

Documentation generated on Tue, 19 Nov 2013 15:08:55 +0100 by phpDocumentor 1.4.3