extends |
XoopsObjectHandler |
---|
XOOPS block handler class. (Singelton)
This class is responsible for providing data access mechanisms to the data source of XOOPS block class objects.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
create(bool $isNew = true): XoopsBlock
create a new block
create a new block Parameters
ReturnsXoopsBlock reference to the new block Overrides |
# | ||||
public
|
get(int $id): XoopsBlock
retrieve a specific {@link XoopsBlock}
retrieve a specific {@link XoopsBlock} Parameters
Returnsreference to the block Overrides |
# | ||||
public
|
insert(XoopsObject|XoopsBlock $block): bool
write a new block into the database
write a new block into the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
delete(XoopsObject|XoopsBlock $block): bool
delete a block from the database
delete a block from the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
getObjects(CriteriaElement|CriteriaCompo $criteria = null, bool $id_as_key = false): array
retrieve array of {@link XoopsBlock}s meeting certain conditions
retrieve array of {@link XoopsBlock}s meeting certain conditions Parameters
Returns{@link XoopsBlock}s matching the conditions |
# | ||||
public
|
getList(CriteriaElement $criteria = null): array
get a list of blocks matchich certain conditions
get a list of blocks matchich certain conditions Parameters
Returnsarray of blocks matching the conditions |
# | ||||
public
|
getByModule($moduleid, bool $asobject = true, bool $id_as_key = false): bool
|
# | ||||
public
|
getAllByGroupModule(
$groupid,
int $module_id = 0,
bool $toponlyblock = false,
null $visible = null,
string $orderby = 'i.weight,i.instanceid',
int $isactive = 1,
): bool
|
# | ||||
public
|
getAdminBlocks($groupid, string $orderby = 'i.weight,i.instanceid'): bool
|
# | ||||
public
|
assignBlocks(): bool
|
# |
Methods inherited from XoopsObjectHandler |
---|
__construct(), XoopsObjectHandler(), |
Properties inherited from XoopsObjectHandler |
---|
$db |