XOOPS RMCommon Utilities
 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)
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,
  $state = 0 

Agrega una nueva casilla (checkbox) al elemento.

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.


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

Here is the call graph for this function:

Member Data Documentation

RMFormCheck::$_options = array()

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

Referenced by getOptions().

RMFormCheck::$asTable = false

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

RMFormCheck::$tableCols = 3

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

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