XOOPS RMCommon Utilities
2.1.8.91RC
|
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() |
Clase para la creación de campos TEXT o PASSWORD
Definition at line 14 of file text.class.php.
RMFormText::__construct | ( | $caption, | |
$name, | |||
$size = 50 , |
|||
$max = 255 , |
|||
$value = '' , |
|||
$password = false , |
|||
$enabled = true |
|||
) |
Constructor de la clase
sring | $caption | Texto de la etiqueta |
string | $name | Nombre del campo |
int | $size | Longitud del campo |
int | $max | Longitud m?xima de car?cteres del campo |
string | $value | Valor por defecto |
bol | $password | True muestra un campo password |
Definition at line 31 of file text.class.php.
References RMFormElement\setCaption(), and RMFormElement\setName().
RMFormText::getMax | ( | ) |
Recupera el n?mero de car?cteres
Definition at line 65 of file text.class.php.
References $_max.
Referenced by render().
RMFormText::getPassword | ( | ) |
Devuelve si el campo se muestra como password
Definition at line 93 of file text.class.php.
References $_password.
RMFormText::getSize | ( | ) |
Recupera la longitud del campo
Definition at line 51 of file text.class.php.
References $_size.
RMFormText::getValue | ( | ) |
Recupera el texto incial del campo
Definition at line 79 of file text.class.php.
References $_value.
Referenced by render().
RMFormText::render | ( | ) |
Devuelve el c?digo HTML para mostrar el campo.
Definition at line 100 of file text.class.php.
References $ret, RMFormElement\getClass(), RMFormElement\getExtra(), getMax(), RMFormElement\getName(), getValue(), and RMFormElement\id().
RMFormText::setMax | ( | $max | ) |
Establece el n?mero m?ximo de car?cteres en el campo
int | $max | N?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
bol | $value | true o false (Por defecto False) |
Definition at line 86 of file text.class.php.
RMFormText::setSize | ( | $size | ) |
Establece el tam?o del campo.
int | $size | Longitud del campo |
Definition at line 44 of file text.class.php.
RMFormText::setValue | ( | $value | ) |
Establece el texto inicial del campo
string | $value | Texto |
Definition at line 72 of file text.class.php.
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().