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

Public Member Functions

 __construct ($id=null)
 
 adminGroups ($object=false)
 
 buildBlock ()
 
 buildContent ($position, $content="", $contentdb="")
 
 buildTitle ($originaltitle, $newtitle="")
 
 checkRights ($gid=0, $level=0)
 
 delete ()
 
 getContent ($format= 'S')
 
 getOptions ()
 
 id ()
 
 isCustom ()
 
 readGroups ()
 
 save ()
 
 sections ()
 
 setAdminGroups ($groups)
 
 setReadGroups ($groups)
 
 subpages ()
 
- Public Member Functions inherited from RMObject
 _loadFilters ()
 
 assignVar ($key, $value)
 
 assignVars ($var_arr)
 
 cleanVars ()
 
 errors ($html=true)
 
 getErrors ()
 
 getHtmlErrors ()
 
 getLogger ($ashtml=true)
 
 getValues ($keys=null, $format= 's', $maxDepth=1)
 
 getVar ($key, $format= 's')
 
 getVars ($formated=false, $format= 's')
 
 id ()
 
 initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')
 
 isDirty ()
 
 isNew ()
 
 registerFilter ($filtername)
 
 rmClone ()
 
 setDirty ()
 
 setErrors ($err_str)
 
 setFormVars ($var_arr=null, $pref='xo_', $not_gpc=false)
 
 setNew ()
 
 setVar ($key, $value, $not_gpc=false)
 
 setVarLen ($var, $len=null)
 
 setVarRequired ($var, $required)
 
 setVars ($var_arr, $not_gpc=false)
 
 setVarType ($var, $type)
 
 unsetDirty ()
 
 unsetNew ()
 

Private Attributes

 $rgroups = array()
 
 $sections = array()
 
 $wgroups = array()
 

Additional Inherited Members

- Public Attributes inherited from RMObject
 $cleanVars = array()
 
- Protected Member Functions inherited from RMObject
 addError ($text)
 
 clear_vars ()
 
 clearLogger ()
 
 deleteFromTable ()
 
 getColumns ()
 
 initVarsFromTable ()
 
 loadValues ($id)
 
 loadValuesArray ($values)
 
 loadValuesFiltered ($filter='')
 
 logger ($event, $style='')
 
 saveToTable ()
 
 updateTable ()
 
 varIsset ($var)
 
- Protected Attributes inherited from RMObject
 $_dbtable = ''
 
 $_log = array()
 
 $db = null
 
 $primary = 'id'
 
 $vars = array()
 

Detailed Description

Clase para el manejo de bloques en Common Utilities

Definition at line 17 of file internalblock.php.

Constructor & Destructor Documentation

RMInternalBlock::__construct (   $id = null)

Carga un nuevo objecto EXMBlock

Parameters
$id= Identificador del Bloque existente en la base de datos

Definition at line 36 of file internalblock.php.

References $id, RMObject\initVarsFromTable(), RMObject\loadValues(), RMObject\setNew(), RMObject\setVarType(), and RMObject\unsetNew().

Here is the call graph for this function:

Member Function Documentation

RMInternalBlock::adminGroups (   $object = false)

Obtiene un array con los identificadores de los grupos con permiso de administrador

Definition at line 89 of file internalblock.php.

References $result, $ret, $sql, $wgroups, and id().

Here is the call graph for this function:

RMInternalBlock::buildBlock ( )

Genera el bloque a partir de su función

Definition at line 221 of file internalblock.php.

References $file, $options, $xoopsConfig, $xoopsOption, elseif(), getContent(), RMObject\getVar(), load_mod_locale(), and load_plugin_locale().

Here is the call graph for this function:

RMInternalBlock::buildContent (   $position,
  $content = "",
  $contentdb = "" 
)

Definition at line 277 of file internalblock.php.

References $content, $ret, and elseif().

Here is the call graph for this function:

RMInternalBlock::buildTitle (   $originaltitle,
  $newtitle = "" 
)

Definition at line 287 of file internalblock.php.

References $ret.

RMInternalBlock::checkRights (   $gid = 0,
  $level = 0 
)

Comprueba si un grupo especifico cuenta con permisos de admnistración/lectura para un bloque específico

Parameters
int$gidIdentificador del grupo
int$levelNivel de Acceso
Returns
bool

Definition at line 171 of file internalblock.php.

References $xoopsUser.

RMInternalBlock::delete ( )

Elimina todos los datos del bloque

Definition at line 400 of file internalblock.php.

References RMObject\addError(), RMObject\deleteFromTable(), RMObject\errors(), and id().

Here is the call graph for this function:

RMInternalBlock::getContent (   $format = 'S')

Devuelve el contenido de un bloque

Parameters
string$formatUso: 'S' para mostrar y 'E' para editar
$c_typeTipo de Contenido
Returns
string

Definition at line 187 of file internalblock.php.

References $content, elseif(), TextCleaner\getInstance(), and RMObject\getVar().

Referenced by buildBlock().

Here is the call graph for this function:

Here is the caller graph for this function:

RMInternalBlock::getOptions ( )

Obtiene el código HTML desde la función de edición del bloque siempre y cuando esta exista

Definition at line 309 of file internalblock.php.

References $file, $lang, $xoopsConfig, __(), and RMObject\getVar().

Here is the call graph for this function:

RMInternalBlock::id ( )

Definition at line 55 of file internalblock.php.

References RMObject\getVar().

Referenced by adminGroups(), delete(), readGroups(), save(), sections(), and subpages().

Here is the call graph for this function:

Here is the caller graph for this function:

RMInternalBlock::isCustom ( )

Definition at line 297 of file internalblock.php.

References RMObject\getVar().

Here is the call graph for this function:

RMInternalBlock::readGroups ( )

Obtiene un array con los identificadores de los grupos con permiso de lectura

Definition at line 63 of file internalblock.php.

References $result, $ret, $rgroups, $sql, and id().

Here is the call graph for this function:

RMInternalBlock::save ( )

Almacenamos los valores del bloque en la base de datos

Definition at line 350 of file internalblock.php.

References $id, $sql, RMObject\addError(), RMObject\errors(), id(), RMObject\isNew(), RMObject\saveToTable(), sections(), and RMObject\updateTable().

Here is the call graph for this function:

RMInternalBlock::sections ( )

Gets or sets the sections for this widget

Parameters
arraySections with subpages
Returns
nothing|array

Definition at line 126 of file internalblock.php.

References $result, $ret, $sections, $sql, and id().

Referenced by save().

Here is the call graph for this function:

Here is the caller graph for this function:

RMInternalBlock::setAdminGroups (   $groups)

Establece los grupos con permiso de acceso al bloque

Definition at line 118 of file internalblock.php.

RMInternalBlock::setReadGroups (   $groups)

Establece los grupos con permiso de acceso al bloque

Definition at line 82 of file internalblock.php.

RMInternalBlock::subpages ( )

Devuelve las subpáginas seleccionadas para una determinada sección

Definition at line 153 of file internalblock.php.

References $result, $ret, $sql, and id().

Here is the call graph for this function:

Member Data Documentation

RMInternalBlock::$rgroups = array()
private

Grupos con permiso de lectura

Definition at line 22 of file internalblock.php.

Referenced by readGroups().

RMInternalBlock::$sections = array()
private

Secciones en las que se muestra el bloque

Definition at line 30 of file internalblock.php.

Referenced by sections().

RMInternalBlock::$wgroups = array()
private

Grupos con permiso de escritura

Definition at line 26 of file internalblock.php.

Referenced by adminGroups().


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