|
XOOPS 2.5.6
Final
|

Public Member Functions | |
| convertResultSet ($result, $id_as_key=false, $as_object=true) | |
| & | getAll ($criteria=null, $fields=null, $asObject=true, $id_as_key=true) |
| & | getByLimit ($limit=0, $start=0, $criteria=null, $fields=null, $asObject=true) |
| & | getIds ($criteria=null) |
| getList ($criteria=null, $limit=0, $start=0) | |
| & | getObjects ($criteria=null, $id_as_key=false, $as_object=true) |
Public Member Functions inherited from XoopsModelAbstract | |
| __construct ($args=null, $handler=null) | |
| setHandler ($handler) | |
| setVars ($args) | |
| XoopsObjectAbstract ($args=null, $handler=null) | |
Additional Inherited Members | |
Public Attributes inherited from XoopsModelAbstract | |
| $handler | |
get all objects matching a condition
| object | $criteria | CriteriaElement to match |
| array | $fields | variables to fetch |
| bool | $asObject | flag indicating as object, otherwise as array |
| bool | $id_as_key | use the ID as key for the array |
Definition at line 41 of file read.php.
References $criteria, $fields, $limit, $result, $ret, $sql, and $start.
| & XoopsModelRead::getByLimit | ( | $limit = 0, |
|
$start = 0, |
|||
$criteria = null, |
|||
$fields = null, |
|||
$asObject = true |
|||
| ) |
get a limited list of objects matching a condition
| int | $limit | Max number of objects to fetch |
| int | $start | Which record to start at |
| object | $criteria | CriteriaElement to match |
| array | $fields | variables to fetch |
| bool | $asObject | flag indicating as object, otherwise as array |
Definition at line 191 of file read.php.
References $criteria, $fields, $GLOBALS, $limit, $ret, and $start.
| & XoopsModelRead::getIds | ( | $criteria = null | ) |
| XoopsModelRead::getList | ( | $criteria = null, |
|
$limit = 0, |
|||
$start = 0 |
|||
| ) |
Retrieve a list of objects data
| object | $criteria | CriteriaElement conditions to be met |
| int | $limit | Max number of objects to fetch |
| int | $start | Which record to start at |
Definition at line 121 of file read.php.
References $criteria, $limit, $myts, $result, $ret, $sql, $start, and MyTextSanitizer\getInstance().

retrieve objects from the database
For performance consideration, getAll() is recommended
| object | $criteria | CriteriaElement conditions to be met |
| bool | $id_as_key | use the ID as key for the array |
| bool | $as_object | return an array of objects? |
Definition at line 107 of file read.php.
References $criteria.