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

Public Member Functions

 __construct ($name, $value, $type= 'submit')
 
 getType ($type)
 
 getValue ()
 
 render ()
 
 setType ($type)
 
 setValue ($value)
 
- 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

 $_type = 'submit'
 
 $_value = ''
 

Additional Inherited Members

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

Detailed Description

Clase para crear botones de formlarios EXMFormElement

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

Constructor & Destructor Documentation

RMFormButton::__construct (   $name,
  $value,
  $type = 'submit' 
)
Parameters
string$nameNombre del elemento de formulario
string$valueTexto del Bot?n (Ej. Enviar, Cancelar)
string$typeTipo de bot?n (Ej. submit, button). Por defecto el valor es 'submit'

Eliminamos la etiqueta para este campo de manera que solo sean visibles los botones

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

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

Here is the call graph for this function:

Member Function Documentation

RMFormButton::getType (   $type)

Recupera el tipo de bot?n

Returns
string

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

References $_type.

RMFormButton::getValue ( )

Recupera el texto del bot?n

Returns
string

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

References $_value.

RMFormButton::render ( )

Genera el c?digo HTML para mostrar el bot?n

Returns
string C?digo HTML del Bot?n

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

References $ret, RMFormElement\getClass(), RMFormElement\getExtra(), RMFormElement\getName(), and RMFormElement\id().

Here is the call graph for this function:

RMFormButton::setType (   $type)

Establece o modifica el tipo del bot?n

Parameters
string$typeSubmit o Button

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

References $type.

RMFormButton::setValue (   $value)

Establece o modifica el texto del bot?n

Parameters
string$valueTexto del bot?n

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

Member Data Documentation

RMFormButton::$_type = 'submit'
private

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

Referenced by getType().

RMFormButton::$_value = ''
private

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

Referenced by getValue().


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