Actions

API17

JHtmlSelect::option

From Joomla! Documentation

Revision as of 18:44, 20 April 2011 by Doxiki2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JHtmlSelect::option

Description

Create an object that represents an option in an option list.

Description:JHtmlSelect::option [Edit Descripton]

Synopsis

public static JHtmlSelect::option ($value, $text= '', $optKey= 'value', $optText= 'text', $disable=false)
Parameter Type Default Description
$value string The value of the option
$text string The text for the option
$optKey array 'value' If a string, the returned object property name for the value. If an array, options. Valid options are:
$optText string 'text' The property that will hold the the displayed text. This parameter is ignored if an options array is passed.
$disable false

Returns

object

Defined in

libraries/joomla/html/html/select.php

Referenced by

See also

[Edit See Also]

SeeAlso:JHtmlSelect::option

Examples

<CodeExamplesForm />