extends |
XoopsObjectHandler |
---|
XOOPS module handler class.
This class is responsible for providing data access mechanisms to the data source of XOOPS module class objects.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
create(boolean $isNew = true): XoopsModule
Create a new {@link XoopsModule} object
Create a new {@link XoopsModule} object Parameters
Overrides |
# | ||||
public
|
get(int $id): XoopsObject|false
Load a module from the database
Load a module from the database Parameters
Returnsfalse on fail Overrides |
# | ||||
public
|
getByDirname(string $dirname): XoopsModule|FALSE
Load a module by its dirname
Load a module by its dirname Returnson fail |
# | ||||
public
|
insert(XoopsObject|XoopsModule $module): bool
Write a module to the database
Write a module to the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
delete(XoopsObject|XoopsModule $module): bool
Delete a module from the database
Delete a module from the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
getObjects(CriteriaElement|CriteriaCompo $criteria = null, boolean $id_as_key = false): array
Load some modules
Load some modules Parameters
|
# | ||||
public
|
getCount(CriteriaElement|CriteriaCompo $criteria = null): int
Count some modules
Count some modules Parameters
|
# | ||||
public
|
getList(CriteriaElement $criteria = null, boolean $dirname_as_key = false): array
returns an array of module names
returns an array of module names Parameters
|
# |
Methods inherited from XoopsObjectHandler |
---|
__construct(), XoopsObjectHandler(), |
Properties | |||
---|---|---|---|
public
|
array
|
$_cachedModule_mid = []
|
# |
public
|
array
|
$_cachedModule_dirname = []
|
# |
Properties inherited from XoopsObjectHandler |
---|
$db |