Source for file predefinedlist.php
Documentation is available at predefinedlist.php
* @package Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Form Field to load a list of predefined values
* @package Joomla.Libraries
protected $type =
'PredefinedList';
* Cached array of the category items.
protected static $options =
array();
* Available predefined options
* Translate options labels ?
* Method to get the options to populate list
* @return array The field option objects.
if (!isset
(static::$options[$type][$hash]) &&
!empty($this->predefinedOptions))
static::$options[$type][$hash] =
parent::getOptions();
// Allow to only use specific values of the predefined list
$filter = isset
($this->element['filter']) ?
explode(',', $this->element['filter']) :
array();
if (empty($filter) ||
in_array($value, $filter))
$options[] = (object)
array(
static::$options[$type][$hash] =
array_merge(static::$options[$type][$hash], $options);
return static::$options[$type][$hash];
Documentation generated on Tue, 19 Nov 2013 15:11:12 +0100 by phpDocumentor 1.4.3