|
| & | getAll (CriteriaElement $criteria=null, $fields=null, $asObject=true, $id_as_key=true) |
| |
| & | getObjects (CriteriaElement $criteria=null, $id_as_key=false, $as_object=true) |
| |
| | getList (CriteriaElement $criteria=null, $limit=0, $start=0) |
| |
| & | getIds (CriteriaElement $criteria=null) |
| |
| & | getByLimit ($limit=0, $start=0, CriteriaElement $criteria=null, $fields=null, $asObject=true) |
| |
| | convertResultSet ($result, $id_as_key=false, $as_object=true) |
| |
| | __construct ($args=null, $handler=null) |
| |
| | setHandler ($handler) |
| |
| | setVars ($args) |
| |
◆ convertResultSet()
| convertResultSet |
( |
|
$result, |
|
|
|
$id_as_key = false, |
|
|
|
$as_object = true |
|
) |
| |
Convert a database resultset to a returnable array
- Parameters
-
| object | $result | database resultset |
| bool | $id_as_key | - should NOT be used with joint keys |
| bool | $as_object | |
- Returns
- array
◆ getAll()
get all objects matching a condition
- Parameters
-
- Returns
- array of objects/array
XoopsObject
◆ getByLimit()
| & getByLimit |
( |
|
$limit = 0, |
|
|
|
$start = 0, |
|
|
CriteriaElement |
$criteria = null, |
|
|
|
$fields = null, |
|
|
|
$asObject = true |
|
) |
| |
get a limited list of objects matching a condition
CriteriaCompo
- Parameters
-
| int | $limit | Max number of objects to fetch |
| int | $start | Which record to start at |
| CriteriaElement | $criteria | CriteriaElement to match |
| array | $fields | variables to fetch |
| bool | $asObject | flag indicating as object, otherwise as array |
- Returns
- array of objects
XoopsObject
◆ getIds()
get IDs of objects matching a condition
- Parameters
-
- Returns
- array of object IDs
◆ getList()
Retrieve a list of objects data
- Parameters
-
- Returns
- array
◆ getObjects()
retrieve objects from the database
For performance consideration, getAll() is recommended
- Parameters
-
- Returns
- array
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/model/read.php