|
XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
| __construct ($caption, $name, $multi=0, $type=0, $cols=2, $select=array(), $user=0) | |
| getCols () | |
| getMulti () | |
| getSelect () | |
| getShowType () | |
| render () | |
| setCols ($value) | |
| setMulti ($value) | |
| setSelect ($value) | |
| setShowType ($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 | |
| $_cols = 2 | |
| $_multi = 0 | |
| $_onlyuser = 0 | |
| $_select = array() | |
| $_showdesc = 0 | |
| $_showtype = 0 | |
| $_size = 5 | |
Additional Inherited Members | |
Static Public Attributes inherited from RMFormElement | |
| static | $elementsIds = array() |
Clase para la generación de campos SELECT
Definition at line 32 of file avatar.class.php.
| RMFormAvatarField::__construct | ( | $caption, | |
| $name, | |||
$multi = 0, |
|||
$type = 0, |
|||
$cols = 2, |
|||
$select = array(), |
|||
$user = 0 |
|||
| ) |
Constructor de la clase
| string | $caption | Texto de la etiqueta |
| string | $name | Nombre del elemento |
| int | $multi | Seleccion múltiple (0 = Inactivo, 1 = Activo) |
Definition at line 51 of file avatar.class.php.
References $cols, $type, RMFormElement\getName(), RMFormElement\setCaption(), and RMFormElement\setName().
| RMFormAvatarField::getCols | ( | ) |
Devuelve el número de columnas del menú.
Definition at line 134 of file avatar.class.php.
References $_cols.
| RMFormAvatarField::getMulti | ( | ) |
| RMFormAvatarField::getSelect | ( | ) |
Devuelve el array con los identificadores de los avatares seleccionado por defecto.
Definition at line 103 of file avatar.class.php.
References $_select.
| RMFormAvatarField::getShowType | ( | ) |
Devuelve el identificador de la forma en que se muestran los elementos
Definition at line 118 of file avatar.class.php.
References $_showtype.
| RMFormAvatarField::render | ( | ) |
Genera el código HTML para este elemento.
Definition at line 141 of file avatar.class.php.
References $db, $result, $rtn, $sql, and RMFormElement\getName().
| RMFormAvatarField::setCols | ( | $value | ) |
Establece el número de columnas para el menu. Cuando los grupos se mostrarán en forma de menú esta opción permite especificar el número de columnas en las que se ordenarán.
| int | $value | Número de columnas |
Definition at line 127 of file avatar.class.php.
| RMFormAvatarField::setMulti | ( | $value | ) |
Establece el comportamiento de seleccion del campo avatares. Si $_multi = 0 entonces olo se puede seleccionar un avatar a la vez. En caso contrario el campo permite la selección de múltiples avatares
| int | $value | 1 o 2 |
Definition at line 72 of file avatar.class.php.
| RMFormAvatarField::setSelect | ( | $value | ) |
Indica los elementos seleccionados por defecto. Este valor debe ser pasado como un array conteniendo los ideneitificadores de los avatares (ej. array(0,1,2,3)) o bien como una lista delimitada por comas conteniendo tambien los identificadores de avatares (ej, 1,2,3,4)
| array | $value | Identificadores de los avatares |
| string | $value | Lista delimitada por comas con identificadores de los avatares |
Definition at line 91 of file avatar.class.php.
| RMFormAvatarField::setShowType | ( | $value | ) |
Establece la forma en que se mostrarán los avatares. Esto puede ser en forma de lista o en forma de menu
| int | $value | 0 ó 1 |
Definition at line 111 of file avatar.class.php.
|
private |
Definition at line 39 of file avatar.class.php.
Referenced by getCols().
|
private |
Definition at line 34 of file avatar.class.php.
Referenced by getMulti().
|
private |
Esta variable es utilizada para indicar si se deben cargar solo los avatares cargados por el usuario
Definition at line 44 of file avatar.class.php.
|
private |
Definition at line 36 of file avatar.class.php.
Referenced by getSelect().
|
private |
Definition at line 38 of file avatar.class.php.
|
private |
Definition at line 37 of file avatar.class.php.
Referenced by getShowType().
|
private |
Definition at line 35 of file avatar.class.php.