DataService::loadObjects
A reimplementation of DataObject::instance_get
Signature
public function loadObjects(
$type,
[string
$filter = "",
[string
$sort = "",
[string
$join = "",
[string
$limit = "",
[string
$requiredPerm = 'View']]]]] )
Parameters
$type
—
$filter
—
string
- A filter to be inserted into the WHERE clause.
$sort
—
string
- A sort expression to be inserted into the ORDER BY clause. If omitted, self::$default_sort will be used.
$join
—
string
- A single join clause. This can be used for filtering, only 1 instance of each DataObject will be returned.
$limit
—
string
- A limit expression to be inserted into the LIMIT clause.
$requiredPerm
—
string
Returns
- mixed
- The objects matching the filter, in the class specified by $containerClass