ListController.php
36 * | _in_ `limit` | The maximum number of instances to return. If omitted, all instances (beginning at the offset parameter) will be returned (optional)
37 * | _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)
38 * | _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)
39 * | _in_ `sortDirection` | The direction to sort the list. Must be either _asc_ for ascending or _desc_ for descending (optional, default: _asc_)
41 * | _in_ `translateValues` | Boolean whether list values should be translated to their display values (optional, default: _false_)
42 * | _in_ `completeObjects` | Boolean whether to return all object attributes or only the display values using NodeUtil::removeNonDisplayValues (optional, default: _true_)
130 $nodes[$i] = $localization->loadTranslation($nodes[$i], $this->_request->getValue('language'), true, true);
148 * object retrieval. Subclasses may override this. If filter is an empty string, all nodes of the given
151 * @param $queryCondition The query condition passed from the view (to be used with StringQuery).
164 throw new AuthorizationException($message->getText("Authorization failed for action '%0%' on '%1%'.",
StringQuery executes queries from a string representation.
Definition: StringQuery.php:40
getObjects($type, $queryCondition, $sortArray, $pagingInfo)
Get the object to display.
Definition: ListController.php:156
Controller is the base class of all controllers.
Definition: Controller.php:48
static translateValues(&$nodes, $language=null)
Translate all list values in a list of Nodes.
Definition: NodeUtil.php:253
AuthorizationException signals an exception in authorization.
Definition: AuthorizationException.php:18
UnknownFieldException signals an exception in a message.
Definition: UnknownFieldException.php:18
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
ListController is used to load Node lists.
Definition: ListController.php:52
checkLanguageParameter()
Checks the language request parameter and adds an response error, if it is not contained in the Local...
Definition: Controller.php:315
static removeNonDisplayValues(Node $node)
Remove all values from a Node that are not a display value.
Definition: NodeUtil.php:281
static get($code, $data=null)
Factory method for retrieving a predefind error instance.
Definition: ApplicationError.php:120