extends |
XoopsObjectHandler |
---|
XOOPS configuration handler class.
This class is responsible for providing data access mechanisms to the data source of XOOPS configuration class objects.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
create(bool $isNew = true): XoopsConfigItem
Create a new {@link XoopsConfigItem}
Create a new {@link XoopsConfigItem} Parameters
Returnsreference to the new config Overrides |
# | ||||
public
|
get(int $id): XoopsConfigItem|false
Load a config from the database
Load a config from the database Parameters
Returnsreference to the config, false on fail Overrides |
# | ||||
public
|
insert(XoopsObject|XoopsConfigItem $config): bool
Write a config to the database
Write a config to the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
delete(XoopsObject|XoopsConfigItem $config): bool
Delete a config from the database
Delete a config from the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
getObjects(CriteriaElement|CriteriaCompo $criteria = null, bool $id_as_key = false): array
Get configs from the database
Get configs from the database Parameters
ReturnsArray of {@link XoopsConfigItem} objects |
# | ||||
public
|
getCount(CriteriaElement|CriteriaCompo $criteria = null): int
Count configs
Count configs Parameters
ReturnsCount of configs matching $criteria |
# |
Methods inherited from XoopsObjectHandler |
---|
__construct(), XoopsObjectHandler(), |
Properties inherited from XoopsObjectHandler |
---|
$db |