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

Public Member Functions

 addClass ($class)
 
 getCaption ()
 
 getClass ()
 
 getDescription ()
 
 getExtra ()
 
 getForm ()
 
 getName ()
 
 id ()
 
 render ()
 
 setCaption ($caption)
 
 setClass ($class)
 
 setDescription ($desc)
 
 setExtra ($extra)
 
 setForm ($name)
 
 setId ($id)
 
 setName ($name)
 

Static Public Attributes

static $elementsIds = array()
 

Private Attributes

 $_caption = ''
 
 $_class = ''
 
 $_description = ''
 
 $_extra = ''
 
 $_formname = ''
 
 $_id = ''
 
 $_name = ''
 
 $_required = ''
 

Detailed Description

Clase abstracta para derivar todos los elementos del formulario Esta clase no puede ser instanciada directamente

Definition at line 15 of file formelement.class.php.

Member Function Documentation

RMFormElement::addClass (   $class)

Definition at line 81 of file formelement.class.php.

RMFormElement::getCaption ( )

Recuepera el texto de la etiqueta de un elemento espec?fico

Returns
string Texto de la etiqueta

Definition at line 105 of file formelement.class.php.

References $_caption.

Referenced by RMFormSubTitle\render().

Here is the caller graph for this function:

RMFormElement::getClass ( )

Recupera el nombre de clase de un elemento espe?fico del formulario

Returns
string Nombre de la clase

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

References $_class.

Referenced by RMFormFile\render(), RMFormButton\render(), RMFormText\render(), RMFormSelect\render(), RMFormTextArea\render(), RMFormEditor\renderExmCode(), RMFormEditor\renderHTML(), and RMFormEditor\renderTiny().

Here is the caller graph for this function:

RMFormElement::getDescription ( )

Recupera el texto descriptivo del elemento del formulario

Returns
string Descripci?n

Definition at line 123 of file formelement.class.php.

References $_description.

RMFormElement::getExtra ( )

Recuepera la informaci?n extra del elemento

Returns
string Texto extra

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

References $_extra.

Referenced by RMFormFile\render(), RMFormUser\render(), RMFormButton\render(), RMFormText\render(), RMFormSelect\render(), RMFormTextArea\render(), and RMFormLabel\render().

Here is the caller graph for this function:

RMFormElement::getForm ( )

Definition at line 151 of file formelement.class.php.

References $_formname.

RMFormElement::render ( )
abstract

Obtenemos la tabla html formateada Este m?todo es abstracto y solo puede ser llamado desde la clase heredada

RMFormElement::setClass (   $class)

Establece el nombre de la clase CSS que se usará en un elemento específico del formulario

Parameters
string$classNombre de la clase (eg. "even")

Definition at line 77 of file formelement.class.php.

References $class.

Referenced by RMFormSubTitle\__construct().

Here is the caller graph for this function:

RMFormElement::setDescription (   $desc)

Establece el texto descriptivo de un elemento espec?fico en el formulario. Este texto se presenta por debajo del texto de la etiqueta (setCaption()) en letra peque?a.

Parameters
string$descDescripci?n del elemento

Definition at line 115 of file formelement.class.php.

Referenced by RMFormSubTitle\__construct(), and configure_rm_plugin().

Here is the caller graph for this function:

RMFormElement::setExtra (   $extra)

Establece texto adicional para el elemento del formulario. Este texto se insertar? dentro de la etiqueta <input ... /> o la que corresponda. Puede insertarse c?digo para funciones JavaScript (onclick, onfocus, etc) o cualquier otro dato v?lido para el elemento

Parameters
string$extraTexto a insertar

Definition at line 133 of file formelement.class.php.

Referenced by RMFormLabel\__construct().

Here is the caller graph for this function:

RMFormElement::setForm (   $name)

Asigna el formulario (nombre) al elemento actual

Definition at line 147 of file formelement.class.php.

RMFormElement::setId (   $id)

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

References $id.

Member Data Documentation

RMFormElement::$_caption = ''
private

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

Referenced by getCaption().

RMFormElement::$_class = ''
private

Definition at line 19 of file formelement.class.php.

Referenced by getClass().

RMFormElement::$_description = ''
private

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

Referenced by getDescription().

RMFormElement::$_extra = ''
private

Definition at line 20 of file formelement.class.php.

Referenced by getExtra().

RMFormElement::$_formname = ''
private

Definition at line 23 of file formelement.class.php.

Referenced by getForm().

RMFormElement::$_id = ''
private

Definition at line 24 of file formelement.class.php.

Referenced by id().

RMFormElement::$_name = ''
private

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

Referenced by getName(), and id().

RMFormElement::$_required = ''
private

Definition at line 21 of file formelement.class.php.

RMFormElement::$elementsIds = array()
static

Definition at line 25 of file formelement.class.php.


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