|
& | 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
- Paramètres
-
object | $result | database resultset |
bool | $id_as_key | - should NOT be used with joint keys |
bool | $as_object | |
- Renvoie
- array
◆ getAll()
get all objects matching a condition
- Paramètres
-
- Renvoie
- array of objects/array XoopsObject
◆ getByLimit()
get a limited list of objects matching a condition
CriteriaCompo
- Paramètres
-
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 |
- Renvoie
- array of objects XoopsObject
◆ getIds()
get IDs of objects matching a condition
- Paramètres
-
- Renvoie
- array of object IDs
◆ getList()
Retrieve a list of objects data
- Paramètres
-
- Renvoie
- array
◆ getObjects()
retrieve objects from the database
For performance consideration, getAll() is recommended
- Paramètres
-
- Renvoie
- array
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/model/read.php