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

Public Member Functions

 __construct ($caption, $name, $multi=false, $select=array(), $limit=36, $width=600, $height=300, $showall=0, $enable=true)
 
 button ($enable)
 
 onChange ($action)
 
 render ()
 
- 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

 $_onchange = ''
 
 $can_change = true
 
 $height = 500
 
 $limit = 100
 
 $multi = false
 
 $selected = array()
 
 $showall = 0
 
 $width = 600
 

Additional Inherited Members

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

Detailed Description

Clase para el manejo de campos de formulario de tipo usuarios

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

Constructor & Destructor Documentation

RMFormUser::__construct (   $caption,
  $name,
  $multi = false,
  $select = array(),
  $limit = 36,
  $width = 600,
  $height = 300,
  $showall = 0,
  $enable = true 
)
Parameters
stringTexto del campo
stringNombre del Campo
boolSeleccion múltiple
arrayValores seleccionados por defecto
intLimite de resultados por página de usuarios
intAncho de la ventana
intAlto de la ventana

Definition at line 36 of file formuser.class.php.

References $height, $limit, $multi, $showall, $width, height, RMFormElement\setCaption(), and RMFormElement\setName().

Here is the call graph for this function:

Member Function Documentation

RMFormUser::button (   $enable)

Definition at line 50 of file formuser.class.php.

RMFormUser::onChange (   $action)

Crea un manejador para el evento onchange

Definition at line 57 of file formuser.class.php.

References $action.

RMFormUser::render ( )

Show the Users field This field needs that form.css, jquery.css and forms.js would be included.

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

References $db, $id, $result, $rtn, $selected, $sql, __(), RMTemplate\get(), RMFormElement\getExtra(), RMFormElement\getName(), height, RMFormElement\id(), and RMCURL.

Here is the call graph for this function:

Member Data Documentation

RMFormUser::$_onchange = ''
private

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

RMFormUser::$can_change = true
private

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

RMFormUser::$height = 500
private

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

Referenced by __construct().

RMFormUser::$limit = 100
private

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

Referenced by __construct().

RMFormUser::$multi = false
private

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

Referenced by __construct().

RMFormUser::$selected = array()
private

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

Referenced by render().

RMFormUser::$showall = 0
private

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

Referenced by __construct().

RMFormUser::$width = 600
private

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

Referenced by __construct().


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