SortController.php
37 * | _in_ `referenceOid` | The object id of the object to insert the inserted object before. If the inserted object should be the last in the container order, the _referenceOid_ contains the special value `ORDER_BOTTOM`
51 * | _in_ `referenceOid` | The object id of the object to insert the inserted object before. If the inserted object should be the last in the container order, the _referenceOid_ contains the special value `ORDER_BOTTOM`
252 $tpl->setValue($sortkeyName, Criteria::asValue($sortDirection == 'ASC' ? '<' : '>', $sortkeyValue), true);
254 $objects = $query->execute(BuildDepth::SINGLE, [$sortkeyName." ".($sortDirection == 'ASC' ? 'DESC' : 'ASC')], $pagingInfo);
checkObjects($objectMap)
Check if all objects in the given array are not null and add an OID_INVALID error to the response,...
Definition: SortController.php:279
const ORDER_BOTTOM
Definition: SortController.php:62
loadPreviousObject($type, $sortkeyName, $sortkeyValue, $sortDirection)
Load the object which order position is before the given sort value.
Definition: SortController.php:249
isOrderBotton($request)
Check if the node should be moved to the bottom of the list.
Definition: SortController.php:300
loadLastObject($type, $sortkeyName, $sortDirection)
Load the last object regarding the given sort key.
Definition: SortController.php:264
SortController is used to change the order of nodes.
Definition: SortController.php:60
static asValue($operator, $value)
Factory method for constructing a Criteria that may be used as value on a PersistentObject's attribut...
Definition: Criteria.php:58
Criteria defines a condition on a PersistentObject's attribute used to select specific instances.
Definition: Criteria.php:21
getSortkeyValue($object, $valueName)
Get the sortkey value of an object.
Definition: SortController.php:311
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
requireTransaction()
Start or join a transaction that will be committed at the end of execution.
Definition: Controller.php:334
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
static parse($oid)
Parse a serialized object id string into an ObjectId instance.
Definition: ObjectId.php:135
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
NullNode is an implementation of the NullObject pattern, It inherits all functionality from Node (act...
Definition: NullNode.php:26
static filter(array $nodeList, ObjectId $oid=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get Nodes that match given conditions from a list.
Definition: Node.php:182
doExecute($method=null)
Definition: SortController.php:135
Controller is the base class of all controllers.
Definition: Controller.php:49
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
ObjectQuery implements a template based object query.
Definition: ObjectQuery.php:106