XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($caption) | |
addOption ($caption, $name, $value, $state=0) | |
asTable ($cols=3) | |
getOptions () | |
render () | |
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 | |
$_options = array() | |
$asTable = false | |
$tableCols = 3 | |
Additional Inherited Members | |
Static Public Attributes inherited from RMFormElement | |
static | $elementsIds = array() |
Clase para la creacin y manejo de campos CHECKBOX
Definition at line 14 of file checks.class.php.
RMFormCheck::__construct | ( | $caption | ) |
string | $caption | Texto de la etiqueta |
Definition at line 22 of file checks.class.php.
References RMFormElement\setCaption().
RMFormCheck::addOption | ( | $caption, | |
$name, | |||
$value, | |||
$state = 0 |
|||
) |
Agrega una nueva casilla (checkbox) al elemento.
string | $caption | Texto de la casilla |
string | $name | Nombre de la casilla |
mixed | $value | Valor de la casilla |
int | $state | Activada, descativada (1, 0) |
Definition at line 32 of file checks.class.php.
References $rtn.
RMFormCheck::asTable | ( | $cols = 3 | ) |
Formatea la lista de checkboxes mediante una table
Definition at line 84 of file checks.class.php.
References $cols.
Referenced by render().
RMFormCheck::getOptions | ( | ) |
Devuelve un array con las casilla del elemento.
Definition at line 44 of file checks.class.php.
References $_options.
RMFormCheck::render | ( | ) |
Genera el cdigo HTML necesario para mostrar el campo.
Definition at line 51 of file checks.class.php.
References $cols, $rtn, and asTable().
|
private |
Definition at line 18 of file checks.class.php.
Referenced by getOptions().
|
private |
Definition at line 16 of file checks.class.php.
|
private |
Definition at line 17 of file checks.class.php.