XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($caption=' ', $separator=' ') | |
addButton ($name, $value, $type= 'button', $extra='', $ok=false) | |
getButtons () | |
render () | |
setExtra ($name, $extra) | |
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 | |
$buttons = array() | |
$ok = '' | |
$sep = '' | |
Additional Inherited Members | |
Static Public Attributes inherited from RMFormElement | |
static | $elementsIds = array() |
Esta clase permite generar un grupo de botones en una misma celda de una tabla de formulario
Definition at line 86 of file button.class.php.
RMFormButtonGroup::__construct | ( | $caption = ' ' , |
|
$separator = ' ' |
|||
) |
string | $caption | Texto de la celda |
string | $separator | Separador de botones. Puede ser cualquier car?cter (HTML) |
Definition at line 96 of file button.class.php.
References RMFormElement\setCaption().
RMFormButtonGroup::addButton | ( | $name, | |
$value, | |||
$type = 'button' , |
|||
$extra = '' , |
|||
$ok = false |
|||
) |
Agrega botones al grupo basandose en EXMButton
string | $name | Nombre del Bot?n |
string | $value | Texto del bot?n |
string | $type | Tipo de bot?n. Ve?se EXMButton |
Si este boton se marca como "principal" ($ok=true) entonces tendr? una clase distinta
Definition at line 107 of file button.class.php.
RMFormButtonGroup::getButtons | ( | ) |
Obtiene el array con los botones del grupo
Definition at line 121 of file button.class.php.
References $buttons.
RMFormButtonGroup::render | ( | ) |
Genera el c?digo HTML para el grupo de botones. Lo que esta funci?n hace es llamar al m?todo render() de cada uno de los botones contenidos en el grupo
Definition at line 146 of file button.class.php.
References $ret.
RMFormButtonGroup::setExtra | ( | $name, | |
$extra | |||
) |
Establece el contenido extra para un determinado bot?n. El par?metro pasado a esta funci?n puede contener c?digo JavaScript o cualquier otro dato que se desee pasar a la etiqueta <input .. />
string | $name | Identificado del bot?n |
string | $extra | Contenido a insertar |
Definition at line 131 of file button.class.php.
|
private |
Definition at line 89 of file button.class.php.
Referenced by getButtons().
|
private |
Definition at line 90 of file button.class.php.
Referenced by addButton().
|
private |
Definition at line 88 of file button.class.php.