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

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

Detailed Description

Clase para la creacin y manejo de campos CHECKBOX

Definition at line 14 of file checks.class.php.

Constructor & Destructor Documentation

RMFormCheck::__construct (   $caption)
Parameters
string$captionTexto de la etiqueta

Definition at line 22 of file checks.class.php.

References RMFormElement\setCaption().

Here is the call graph for this function:

Member Function Documentation

RMFormCheck::addOption (   $caption,
  $name,
  $value,
  $state = 0 
)

Agrega una nueva casilla (checkbox) al elemento.

Parameters
string$captionTexto de la casilla
string$nameNombre de la casilla
mixed$valueValor de la casilla
int$stateActivada, 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().

Here is the caller graph for this function:

RMFormCheck::getOptions ( )

Devuelve un array con las casilla del elemento.

Returns
array

Definition at line 44 of file checks.class.php.

References $_options.

RMFormCheck::render ( )

Genera el cdigo HTML necesario para mostrar el campo.

Returns
string

Definition at line 51 of file checks.class.php.

References $cols, $rtn, and asTable().

Here is the call graph for this function:

Member Data Documentation

RMFormCheck::$_options = array()
private

Definition at line 18 of file checks.class.php.

Referenced by getOptions().

RMFormCheck::$asTable = false
private

Definition at line 16 of file checks.class.php.

RMFormCheck::$tableCols = 3
private

Definition at line 17 of file checks.class.php.


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