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

Public Member Functions

 __construct ($caption, $name, $size=50, $max=255, $value='', $password=false, $enabled=true)
 
 getMax ()
 
 getPassword ()
 
 getSize ()
 
 getValue ()
 
 render ()
 
 setMax ($max)
 
 setPassword ($value=false)
 
 setSize ($size)
 
 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)
 

Public Attributes

 $_enabled = true
 
 $_max
 
 $_password = false
 
 $_size = 30
 
 $_value = ''
 

Additional Inherited Members

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

Detailed Description

Clase para la creación de campos TEXT o PASSWORD

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

Constructor & Destructor Documentation

RMFormText::__construct (   $caption,
  $name,
  $size = 50,
  $max = 255,
  $value = '',
  $password = false,
  $enabled = true 
)

Constructor de la clase

Parameters
sring$captionTexto de la etiqueta
string$nameNombre del campo
int$sizeLongitud del campo
int$maxLongitud m?xima de car?cteres del campo
string$valueValor por defecto
bol$passwordTrue muestra un campo password

Definition at line 31 of file text.class.php.

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

Here is the call graph for this function:

Member Function Documentation

RMFormText::getMax ( )

Recupera el n?mero de car?cteres

Returns
int

Definition at line 65 of file text.class.php.

References $_max.

Referenced by render().

Here is the caller graph for this function:

RMFormText::getPassword ( )

Devuelve si el campo se muestra como password

Returns
bol

Definition at line 93 of file text.class.php.

References $_password.

RMFormText::getSize ( )

Recupera la longitud del campo

Returns
int

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

References $_size.

RMFormText::getValue ( )

Recupera el texto incial del campo

Returns
string

Definition at line 79 of file text.class.php.

References $_value.

Referenced by render().

Here is the caller graph for this function:

RMFormText::render ( )

Devuelve el c?digo HTML para mostrar el campo.

Returns
string

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

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

Here is the call graph for this function:

RMFormText::setMax (   $max)

Establece el n?mero m?ximo de car?cteres en el campo

Parameters
int$maxN?mero de car?cteres

Definition at line 58 of file text.class.php.

RMFormText::setPassword (   $value = false)

Establece si el campo se muestra como un campo password

Parameters
bol$valuetrue o false (Por defecto False)

Definition at line 86 of file text.class.php.

RMFormText::setSize (   $size)

Establece el tam?o del campo.

Parameters
int$sizeLongitud del campo

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

RMFormText::setValue (   $value)

Establece el texto inicial del campo

Parameters
string$valueTexto

Definition at line 72 of file text.class.php.

Member Data Documentation

RMFormText::$_enabled = true

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

RMFormText::$_max

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

Referenced by getMax().

RMFormText::$_password = false

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

Referenced by getPassword().

RMFormText::$_size = 30

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

Referenced by getSize().

RMFormText::$_value = ''

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

Referenced by getValue().


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