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

Public Member Functions

 __construct ($caption, $name, $salto=0, $type=0, $cols=3)
 
 addOption ($caption, $value, $state=0, $extra= '')
 
 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

 $_break
 
 $_cols = 3
 
 $_options = array()
 
 $_type = 0
 

Additional Inherited Members

- Static Public Attributes inherited from RMFormElement
static $elementsIds = array()
 

Detailed Description

Clase para la creacin y manejo de campos RADIO

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

Constructor & Destructor Documentation

RMFormRadio::__construct (   $caption,
  $name,
  $salto = 0,
  $type = 0,
  $cols = 3 
)
Parameters
string$captionTexto de la etiqueta.
string$nameNombre del campo.
string$saltoSeparador de elementos ( ,
, u otro caracter HTML)
int$type1 = Tabla, 0 = Lista
int$colsNumero de columnas de la tabla

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

References $cols, $type, RMFormElement\setCaption(), and RMFormElement\setName().

Here is the call graph for this function:

Member Function Documentation

RMFormRadio::addOption (   $caption,
  $value,
  $state = 0,
  $extra = '' 
)

Agrega una nueva opcion (radio) al elemento

Parameters
string$captionTexto de la etiqueta
mixed$valuevalor del elemento
int$state0 Desactivado, 1 Activado

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

References $rtn.

RMFormRadio::getOptions ( )

Devuelve el array con las opciones (radios) del elemento.

Returns
array

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

References $_options.

RMFormRadio::render ( )

Genera el cdigo HTML para mostrar el elemento

Returns
string

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

References $i, $rtn, RMFormElement\getName(), and RMFormElement\id().

Here is the call graph for this function:

Member Data Documentation

RMFormRadio::$_break
private

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

RMFormRadio::$_cols = 3
private

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

RMFormRadio::$_options = array()
private

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

Referenced by getOptions().

RMFormRadio::$_type = 0
private

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


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