extends |
XoopsPersistableObjectHandler |
---|
System block handler class.
This class is responsible for providing data access mechanisms to the data source of XOOPS block class objects.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(null|XoopsDatabase $db)
Constructor
Constructor Parameters
Overrides |
# | ||||||
public
|
insert(XoopsObject|SystemBlock $obj, $force = true): int|bool
insert an object into the database
insert an object into the database Parameters
Returnsobject id on success, otherwise false Overrides |
# | ||||||
public
&
|
getObjects(CriteriaElement|CriteriaCompo $criteria = null, bool $id_as_key = false, bool $as_object = true): 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 Overrides |
# | ||||||
public
|
getAllBlocksByGroup(
int|int[] $groupid,
bool $asobject = true,
int|string $side = null,
$visible = null,
string $orderby = 'b.weight,b.bid',
int $isactive = 1,
): array
get all the blocks that match the supplied parameters
get all the blocks that match the supplied parameters Parameters
Returnsof block objects |
# | ||||||
public
|
getBlockByPerm($groupid): array
|
# | ||||||
public
|
getAllByGroupModule(
$groupid,
int $module_id = 0,
bool $toponlyblock = false,
null $visible = null,
string $orderby = 'b.weight, m.block_id',
int $isactive = 1,
): array
|
# | ||||||
public
|
getNonGroupedBlocks(
int $module_id = 0,
bool $toponlyblock = false,
null $visible = null,
string $orderby = 'b.weight, m.block_id',
int $isactive = 1,
): array
|
# | ||||||
public
|
countSimilarBlocks(mixed $moduleId, mixed $funcNum, mixed $showFunc = null): int
XoopsBlock::countSimilarBlocks()
XoopsBlock::countSimilarBlocks() |
# |
Methods inherited from XoopsObjectHandler |
---|
XoopsObjectHandler(), |
Properties inherited from XoopsPersistableObjectHandler |
---|
$table_link, $handler, $handlers, $table, $keyName, $className, $identifierName, $field_link, $field_object |
Properties inherited from XoopsObjectHandler |
---|
$db |