XOOPS
2.6.0
|
Public Member Functions | |
getAll (CriteriaElement $criteria=null, $fields=null, $asObject=true, $id_as_key=true) | |
getIds (CriteriaElement $criteria=null) | |
getList (CriteriaElement $criteria=null, $limit=0, $start=0) | |
getObjects (CriteriaElement $criteria=null, $id_as_key=false, $as_object=true) | |
Public Member Functions inherited from Xoops\Core\Kernel\XoopsModelAbstract | |
setHandler (XoopsPersistableObjectHandler $handler) | |
setVars ($args) | |
Additional Inherited Members | |
Protected Attributes inherited from Xoops\Core\Kernel\XoopsModelAbstract | |
$handler | |
Xoops\Core\Kernel\Model\Read::getAll | ( | CriteriaElement | $criteria = null , |
$fields = null , |
|||
$asObject = true , |
|||
$id_as_key = true |
|||
) |
get all objects matching a condition
CriteriaElement | null | $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 40 of file Read.php.
References $criteria, and $result.
Referenced by Xoops\Core\Kernel\Model\Read\getObjects().
Xoops\Core\Kernel\Model\Read::getIds | ( | CriteriaElement | $criteria = null | ) |
get IDs of objects matching a condition
CriteriaElement | null | $criteria | CriteriaElement to match |
Xoops\Core\Kernel\Model\Read::getList | ( | CriteriaElement | $criteria = null , |
$limit = 0 , |
|||
$start = 0 |
|||
) |
Retrieve a list of objects data
CriteriaElement | null | $criteria | CriteriaElement conditions to be met |
int | $limit | Max number of objects to fetch |
int | $start | Which record to start at |
Definition at line 124 of file Read.php.
References $criteria, $myts, $result, and MyTextSanitizer\getInstance().
Xoops\Core\Kernel\Model\Read::getObjects | ( | CriteriaElement | $criteria = null , |
$id_as_key = false , |
|||
$as_object = true |
|||
) |
retrieve objects from the database
For performance consideration, getAll() is recommended
CriteriaElement | null | $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 109 of file Read.php.
References $criteria, and Xoops\Core\Kernel\Model\Read\getAll().