XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($name, $value, $type= 'submit') | |
getType ($type) | |
getValue () | |
render () | |
setType ($type) | |
setValue ($value) | |
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 | |
$_type = 'submit' | |
$_value = '' | |
Additional Inherited Members | |
Static Public Attributes inherited from RMFormElement | |
static | $elementsIds = array() |
Clase para crear botones de formlarios EXMFormElement
Definition at line 15 of file button.class.php.
RMFormButton::__construct | ( | $name, | |
$value, | |||
$type = 'submit' |
|||
) |
string | $name | Nombre del elemento de formulario |
string | $value | Texto del Bot?n (Ej. Enviar, Cancelar) |
string | $type | Tipo de bot?n (Ej. submit, button). Por defecto el valor es 'submit' |
Eliminamos la etiqueta para este campo de manera que solo sean visibles los botones
Definition at line 24 of file button.class.php.
References $type, RMFormElement\setCaption(), and RMFormElement\setName().
RMFormButton::getType | ( | $type | ) |
Recupera el tipo de bot?n
Definition at line 45 of file button.class.php.
References $_type.
RMFormButton::getValue | ( | ) |
Recupera el texto del bot?n
Definition at line 59 of file button.class.php.
References $_value.
RMFormButton::render | ( | ) |
Genera el c?digo HTML para mostrar el bot?n
Definition at line 66 of file button.class.php.
References $ret, RMFormElement\getClass(), RMFormElement\getExtra(), RMFormElement\getName(), and RMFormElement\id().
RMFormButton::setType | ( | $type | ) |
Establece o modifica el tipo del bot?n
string | $type | Submit o Button |
Definition at line 38 of file button.class.php.
References $type.
RMFormButton::setValue | ( | $value | ) |
Establece o modifica el texto del bot?n
string | $value | Texto del bot?n |
Definition at line 52 of file button.class.php.
|
private |
Definition at line 17 of file button.class.php.
Referenced by getType().
|
private |
Definition at line 18 of file button.class.php.
Referenced by getValue().