XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
RMFormButtonGroup Class Reference
Inheritance diagram for RMFormButtonGroup:
Inheritance graph

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()
 

Detailed Description

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.

Constructor & Destructor Documentation

RMFormButtonGroup::__construct (   $caption = ' ',
  $separator = ' ' 
)
Parameters
string$captionTexto de la celda
string$separatorSeparador de botones. Puede ser cualquier car?cter (HTML)

Definition at line 96 of file button.class.php.

References RMFormElement\setCaption().

Here is the call graph for this function:

Member Function Documentation

RMFormButtonGroup::addButton (   $name,
  $value,
  $type = 'button',
  $extra = '',
  $ok = false 
)

Agrega botones al grupo basandose en EXMButton

Parameters
string$nameNombre del Bot?n
string$valueTexto del bot?n
string$typeTipo 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.

References $ok, and $type.

RMFormButtonGroup::getButtons ( )

Obtiene el array con los botones del grupo

Returns
arrar Array de elementos EXMButton

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

Returns
string C?digo HTML

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 .. />

Parameters
string$nameIdentificado del bot?n
string$extraContenido a insertar

Definition at line 131 of file button.class.php.

Member Data Documentation

RMFormButtonGroup::$buttons = array()
private

Definition at line 89 of file button.class.php.

Referenced by getButtons().

RMFormButtonGroup::$ok = ''
private

Definition at line 90 of file button.class.php.

Referenced by addButton().

RMFormButtonGroup::$sep = ''
private

Definition at line 88 of file button.class.php.


The documentation for this class was generated from the following file: