XOOPS 2.5.6
Final
|
Public Member Functions | |
& | create ($isNew=true) |
delete (&$module) | |
& | get ($id) |
& | getByDirname ($dirname) |
getCount ($criteria=null) | |
getList ($criteria=null, $dirname_as_key=false) | |
getObjects ($criteria=null, $id_as_key=false) | |
insert (&$module) | |
Public Member Functions inherited from XoopsObjectHandler | |
& | create () |
delete (&$object) | |
& | get ($int_id) |
insert (&$object) | |
XoopsObjectHandler (&$db) | |
Public Attributes | |
$_cachedModule_dirname = array() | |
$_cachedModule_mid = array() | |
Public Attributes inherited from XoopsObjectHandler | |
$db | |
Definition at line 505 of file module.php.
& XoopsModuleHandler::create | ( | $isNew = true | ) |
Create a new XoopsModule object
boolean | $isNew | Flag the new object as "new" |
Definition at line 529 of file module.php.
References $module.
XoopsModuleHandler::delete | ( | & | $module | ) |
& XoopsModuleHandler::get | ( | $id | ) |
Load a module from the database
int | $id | ID of the module |
Definition at line 544 of file module.php.
References $_cachedModule_dirname, $_cachedModule_mid, $module, $result, and $sql.
& XoopsModuleHandler::getByDirname | ( | $dirname | ) |
Load a module by its dirname
string | $dirname |
Definition at line 578 of file module.php.
References $_cachedModule_dirname, $_cachedModule_mid, $dirname, $module, $result, and $sql.
XoopsModuleHandler::getCount | ( | $criteria = null | ) |
Count some modules
object | $criteria | CriteriaElement |
Definition at line 756 of file module.php.
XoopsModuleHandler::getList | ( | $criteria = null , |
|
$dirname_as_key = false |
|||
) |
returns an array of module names
bool | $criteria | |
boolean | $dirname_as_key | if true, array keys will be module directory names if false, array keys will be module id |
Definition at line 777 of file module.php.
References $criteria, $i, $ret, and getObjects().
XoopsModuleHandler::getObjects | ( | $criteria = null , |
|
$id_as_key = false |
|||
) |
Load some modules
object | $criteria | CriteriaElement |
boolean | $id_as_key | Use the ID as key into the array |
Definition at line 722 of file module.php.
References $criteria, $limit, $module, $result, $ret, $sql, and $start.
Referenced by getList().
XoopsModuleHandler::insert | ( | & | $module | ) |
Write a module to the database
object | $ &$module reference to a XoopsModule |
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 613 of file module.php.
XoopsModuleHandler::$_cachedModule_dirname = array() |
Definition at line 521 of file module.php.
Referenced by get(), and getByDirname().
XoopsModuleHandler::$_cachedModule_mid = array() |
Definition at line 513 of file module.php.
Referenced by get(), and getByDirname().