ListController.php
34 * | _in_ `limit` | The maximum number of instances to return. If omitted, all instances (beginning at the offset parameter) will be returned (optional)
35 * | _in_ `offset` | The index of the first instance to return, based on the current sorting. The index is 0-based. If omitted, 0 is assumed (optional)
36 * | _in_ `sortFieldName` | The field name to sort the list by. Must be one of the fields of the type selected by the className parameter. If omitted, the sorting is undefined (optional)
37 * | _in_ `sortDirection` | The direction to sort the list. Must be either _asc_ for ascending or _desc_ for descending (optional, default: _asc_)
38 * | _in_ `query` | A query condition encoded in RQL to be used with StringQuery::setRQLConditionString()
39 * | _in_ `translateValues` | Boolean whether list values should be translated to their display values (optional, default: _false_)
40 * | _in_ `completeObjects` | Boolean whether to return all object attributes or only the display values using NodeUtil::removeNonDisplayValues (optional, default: _false_)
41 * | _in_ `values` | Comma separated list of node values to return, if `completeObjects` is set to false (optional, default: display values)
67 if (!$this->getPermissionManager()->authorize($request->getValue('className'), '', PersistenceAction::READ)) {
134 $nodes[$i] = $localization->loadTranslation($nodes[$i], $request->getValue('language'), true, true);
152 * object retrieval. Subclasses may override this. If filter is an empty string, all nodes of the given
155 * @param $queryCondition The query condition passed from the view (to be used with StringQuery).
getObjects($type, $queryCondition, $sortArray, $pagingInfo)
Get the object to display.
Definition: ListController.php:160
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
StringQuery executes queries from a string representation.
Definition: StringQuery.php:53
ListController is used to load Node lists.
Definition: ListController.php:51
static translateValues(&$nodes, $language=null, $itemDelim=", ")
Translate all list values in a list of Nodes.
Definition: NodeUtil.php:249
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
doExecute($method=null)
Definition: ListController.php:94
UnknownFieldException signals an unknown field.
Definition: UnknownFieldException.php:18
Controller is the base class of all controllers.
Definition: Controller.php:49
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
PersistenceAction values are used to define actions on PersistentObject instances.
Definition: PersistenceAction.php:19
checkLanguageParameter()
Checks the language request parameter and adds an response error, if it is not contained in the Local...
Definition: Controller.php:381