Back to SessionhandlerField class

Method getOptions

protected array
getOptions
()
Method to get the session handler field options.
Returns
  • array The field option objects.
Since
  • 1.7.0

Method getOptions - Source code

/**
 * Method to get the session handler field options.
 *
 * @return  array  The field option objects.
 *
 * @since   1.7.0
 */
protected function getOptions()
{
    $options = array();
    // Get the options from the session object.
    foreach (Session::getHandlers() as $store) {
        $options[] = HTMLHelper::_('select.option', strtolower($store), Text::_('JLIB_FORM_VALUE_SESSION_' . $store), 'value', 'text');
    }
    // Merge any additional options in the XML definition.
    $options = array_merge(parent::getOptions(), $options);
    return $options;
}