XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($caption, $name, $multi=0, $selected=null) | |
addOption ($value, $caption, $select=0, $disabled=false, $style='') | |
addOptionsArray ($options) | |
getOptions () | |
getRows () | |
render () | |
setRows ($value) | |
setSelected ($index) | |
Public Member Functions inherited from RMFormElement | |
addClass ($class) | |
getCaption () | |
getClass () | |
getDescription () | |
getExtra () | |
getForm () | |
getName () | |
id () | |
render () | |
setCaption ($caption) | |
setClass ($class) | |
setDescription ($desc) | |
setExtra ($extra) | |
setForm ($name) | |
setId ($id) | |
setName ($name) | |
Private Attributes | |
$_multi = 0 | |
$_options = array() | |
$_rows = 5 | |
$_selected = null | |
Additional Inherited Members | |
Static Public Attributes inherited from RMFormElement | |
static | $elementsIds = array() |
Clase para la generación de campos SELECT
Definition at line 14 of file select.class.php.
RMFormSelect::__construct | ( | $caption, | |
$name, | |||
$multi = 0 , |
|||
$selected = null |
|||
) |
Constructor de la clase
string | $caption | Texto de la etiqueta |
string | $name | Nombre del elemento |
int | $multi | Seleccion múltiple (0 = Inactivo, 1 = Activo) |
Definition at line 27 of file select.class.php.
References RMFormElement\setCaption(), and RMFormElement\setName().
RMFormSelect::addOption | ( | $value, | |
$caption, | |||
$select = 0 , |
|||
$disabled = false , |
|||
$style = '' |
|||
) |
Agrega una nueva opción al menú select. Una nueva opción equivale a <option ...>...</option>.
mixed | $value | Valor de la opción |
string | $text | Texto que mostrará la opción |
int | $select | 1 selecciona por defecto la opción. |
bol | $disabled | Mustra como inactiva esta opción. |
Definition at line 56 of file select.class.php.
References $rtn, and RMFormElement\getName().
RMFormSelect::addOptionsArray | ( | $options | ) |
Agrega multiples elementos al campo select
array | $options | array de opciones |
Definition at line 69 of file select.class.php.
References $options, $rtn, and RMFormElement\getName().
RMFormSelect::getOptions | ( | ) |
Devuelve el array de opciones del elemento.
Definition at line 95 of file select.class.php.
References $_options.
RMFormSelect::getRows | ( | ) |
Devuelve el número de filas del elemento
Definition at line 45 of file select.class.php.
References $_rows.
RMFormSelect::render | ( | ) |
Genera el código HTML para este elemento.
Definition at line 102 of file select.class.php.
References $rtn, RMFormElement\getClass(), RMFormElement\getExtra(), and RMFormElement\id().
RMFormSelect::setRows | ( | $value | ) |
Establece el número de filas del elemento. Este valor es utilizado cuando $_multi esta establecido a 1
int | $value | Número de filas. |
Definition at line 38 of file select.class.php.
RMFormSelect::setSelected | ( | $index | ) |
Establece una opción como seleccionada
Definition at line 83 of file select.class.php.
|
private |
Definition at line 17 of file select.class.php.
|
private |
Definition at line 18 of file select.class.php.
Referenced by getOptions().
|
private |
Definition at line 16 of file select.class.php.
Referenced by getRows().
|
private |
Definition at line 19 of file select.class.php.