extends |
XoopsModelAbstract |
---|
Object render handler class.
Methods | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public
&
|
getAll(
CriteriaElement|CriteriaCompo $criteria = null,
array $fields = null,
bool $asObject = true,
bool $id_as_key = true,
): array
get all objects matching a condition
get all objects matching a condition Parameters
Returnsof objects/array {@link XoopsObject} |
# | ||||||||||
public
&
|
getObjects(CriteriaElement $criteria = null, bool $id_as_key = false, bool $as_object = true): array
retrieve objects from the database
retrieve objects from the database For performance consideration, getAll() is recommended Parameters
|
# | ||||||||||
public
|
getList(CriteriaElement $criteria = null, int $limit = 0, int $start = 0): array
Retrieve a list of objects data
Retrieve a list of objects data Parameters
|
# | ||||||||||
public
&
|
getIds(CriteriaElement|CriteriaCompo $criteria = null): array
get IDs of objects matching a condition
get IDs of objects matching a condition Parameters
Returnsof object IDs |
# | ||||||||||
public
&
|
getByLimit(
int $limit = 0,
int $start = 0,
CriteriaElement $criteria = null,
array $fields = null,
bool $asObject = true,
): array
get a limited list of objects matching a condition
get a limited list of objects matching a condition {@link CriteriaCompo} Parameters
Returnsof objects {@link XoopsObject} |
# | ||||||||||
public
|
convertResultSet(object $result, bool $id_as_key = false, bool $as_object = true): array
Convert a database resultset to a returnable array
Convert a database resultset to a returnable array Parameters
|
# |
Methods inherited from XoopsModelAbstract |
---|
__construct(), setHandler(), setVars() |
Properties inherited from XoopsModelAbstract |
---|
$handler |