XOOPS RMCommon Utilities
2.1.8.91RC
|
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() | |
Clase para el manejo de bloques en Common Utilities
Definition at line 17 of file internalblock.php.
RMInternalBlock::__construct | ( | $id = null | ) |
Carga un nuevo objecto EXMBlock
$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().
RMInternalBlock::adminGroups | ( | $object = false | ) |
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().
RMInternalBlock::buildContent | ( | $position, | |
$content = "" , |
|||
$contentdb = "" |
|||
) |
Definition at line 277 of file internalblock.php.
References $content, $ret, and elseif().
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
int | $gid | Identificador del grupo |
int | $level | Nivel de Acceso |
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().
RMInternalBlock::getContent | ( | $format = 'S' | ) |
Devuelve el contenido de un bloque
string | $format | Uso: 'S' para mostrar y 'E' para editar |
$c_type | Tipo de Contenido |
Definition at line 187 of file internalblock.php.
References $content, elseif(), TextCleaner\getInstance(), and RMObject\getVar().
Referenced by buildBlock().
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().
RMInternalBlock::id | ( | ) |
Definition at line 55 of file internalblock.php.
References RMObject\getVar().
Referenced by adminGroups(), delete(), readGroups(), save(), sections(), and subpages().
RMInternalBlock::isCustom | ( | ) |
Definition at line 297 of file internalblock.php.
References RMObject\getVar().
RMInternalBlock::readGroups | ( | ) |
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().
RMInternalBlock::sections | ( | ) |
Gets or sets the sections for this widget
array | Sections with subpages |
Definition at line 126 of file internalblock.php.
References $result, $ret, $sections, $sql, and id().
Referenced by save().
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 | ( | ) |
|
private |
Grupos con permiso de lectura
Definition at line 22 of file internalblock.php.
Referenced by readGroups().
|
private |
Secciones en las que se muestra el bloque
Definition at line 30 of file internalblock.php.
Referenced by sections().
|
private |
Grupos con permiso de escritura
Definition at line 26 of file internalblock.php.
Referenced by adminGroups().