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

Public Member Functions

 __construct ($caption, $name, $multi=0, $type=0, $selected=null, $cols=2, $insert=null, $dirnames=true, $subpages=0)
 
 dirnames ()
 
 inserted ()
 
 multi ()
 
 render ()
 
 selected ()
 
 setDirNames ($value=true)
 
 setInserted ($value)
 
 setMulti ($value)
 
 setSelected ($value)
 
 setSizeOrCols ($value)
 
 setType ($value)
 
 sizeOrCols ()
 
 subpages ($subs)
 
 type ()
 
- 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
 
 $dirnames = true
 
 $inserted = array()
 
 $multi = 0
 
 $selected = null
 
 $selectedSubPages = array()
 
 $subpages = 0
 
 $type = 0
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file modules.class.php.

Constructor & Destructor Documentation

RMFormModules::__construct (   $caption,
  $name,
  $multi = 0,
  $type = 0,
  $selected = null,
  $cols = 2,
  $insert = null,
  $dirnames = true,
  $subpages = 0 
)

Constructor

Parameters
string$caption
string$nameNombre del campo
int$multiSelecciona multiple activada o desactivada
int$type0 = Select, 1 = Tabla
array$selectedValor seleccionado por defecto
array$selectedGrupo de vlores seleccionado por defecto
int$colsNumero de columnas para la tabla o filas para un campo select multi
array$insertArray con valores para agregar a la lista
bool$dirnamesDevolver nombres de directorios (true) o ids (false)
intMostrar Subpáginas

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

References $cols, $dirnames, $multi, $selected, $subpages, $type, dirnames(), inserted(), multi(), selected(), RMFormElement\setCaption(), RMFormElement\setName(), subpages(), and type().

Here is the call graph for this function:

Member Function Documentation

RMFormModules::dirnames ( )

Definition at line 87 of file modules.class.php.

References $dirnames.

Referenced by __construct(), and setDirNames().

Here is the caller graph for this function:

RMFormModules::inserted ( )

Definition at line 75 of file modules.class.php.

References $inserted.

Referenced by __construct(), render(), and setInserted().

Here is the caller graph for this function:

RMFormModules::multi ( )

Definition at line 48 of file modules.class.php.

References $multi.

Referenced by __construct(), render(), and setMulti().

Here is the caller graph for this function:

RMFormModules::render ( )

Mostramos las subpáginas

Definition at line 107 of file modules.class.php.

References $i, $inserted, $modules, $page, $rtn, $selected, $selectedSubPages, $subpages, __(), RMTemplate\get(), RMFormElement\getName(), RMFormElement\id(), inserted(), RMFunctions\load_module(), multi(), selected(), subpages(), and type().

Here is the call graph for this function:

RMFormModules::selected ( )

Definition at line 63 of file modules.class.php.

References $selected.

Referenced by __construct(), render(), and setSelected().

Here is the caller graph for this function:

RMFormModules::setDirNames (   $value = true)

Establece si se devuelven los valores con el nombre del directorio del módulo o con el identificador del módulo

Parameters
bool$value

Definition at line 96 of file modules.class.php.

References dirnames().

Here is the call graph for this function:

RMFormModules::setInserted (   $value)

Inserta nuevas opciones en el campo

Parameters
array$valueArray con valor=>caption para las opciones a insertar

Definition at line 82 of file modules.class.php.

References inserted().

Here is the call graph for this function:

RMFormModules::setMulti (   $value)

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

References multi().

Here is the call graph for this function:

RMFormModules::setSelected (   $value)

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

References selected().

Here is the call graph for this function:

RMFormModules::setSizeOrCols (   $value)

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

RMFormModules::setType (   $value)

Definition at line 60 of file modules.class.php.

References type().

Here is the call graph for this function:

RMFormModules::sizeOrCols ( )

Definition at line 69 of file modules.class.php.

References $cols.

RMFormModules::subpages (   $subs)

Establece las subpáginas seleccionadas por defecto

Parameters
arraySubpáginas seleccionadas

Definition at line 103 of file modules.class.php.

Referenced by __construct(), and render().

Here is the caller graph for this function:

RMFormModules::type ( )

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

References $type.

Referenced by __construct(), render(), and setType().

Here is the caller graph for this function:

Member Data Documentation

RMFormModules::$cols = 2
private

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

Referenced by __construct(), and sizeOrCols().

RMFormModules::$dirnames = true
private

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

Referenced by __construct(), and dirnames().

RMFormModules::$inserted = array()
private

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

Referenced by inserted(), and render().

RMFormModules::$multi = 0
private

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

Referenced by __construct(), and multi().

RMFormModules::$selected = null
private

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

Referenced by __construct(), render(), and selected().

RMFormModules::$selectedSubPages = array()
private

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

Referenced by render().

RMFormModules::$subpages = 0
private

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

Referenced by __construct(), and render().

RMFormModules::$type = 0
private

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

Referenced by __construct(), and type().


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