wCMF
3.6
|
Public Member Functions | |
hasView () | |
executeKernel () | |
getObjects ($type, $filter, $sortArray, &$pagingInfo) | |
getOIDs ($type, $filter, $sortArray, &$pagingInfo) | |
getSortingProperties () | |
modifyModel (&$nodes) | |
sortByRealSubject ($a, $b) | |
Public Member Functions inherited from Controller | |
Controller (&$delegate) | |
initialize (&$request, &$response) | |
validate () | |
hasView () | |
execute () | |
executeKernel () | |
getErrorMsg () | |
setErrorMsg ($msg) | |
appendErrorMsg ($msg) | |
& | getRequest () |
& | getResponse () |
& | getView () |
& | getDelegate () |
getViewTemplate ($controller, $context, $action) | |
getCacheId () | |
assignViewDefaults (&$view) | |
isLocalizedRequest () | |
Public Attributes | |
$_sortProperties = null | |
Public Attributes inherited from Controller | |
$_request = null | |
$_response = null | |
$_errorMsg = '' | |
$_view = null | |
$_delegate = null | |
AsyncPagingController is a controller that allows to navigate lists.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Input actions:
Output actions:
[in] | type | The entity type to list |
[in] | filter | A query passed to ObjectQuery::executeString() |
[in] | limit | The page size of the used PagingInfo |
[in] | start | The start index used to initialize the used PagingInfo |
[in] | sort | The attribute to order the entities by |
[in] | dir | The direction to use to order (ASC|DESC) |
[in] | poid | The parent object id of the entities if any (this is used to set relation information on the result) |
[in] | renderValues | True/False wether to render the values using NodeUtil::renderValues or not (optional, default: false) |
[in] | completeObjects | True/False wether to return all object attributes objects or only the display values using NodeUtil::removeNonDisplayValues (optional, default: false) |
[out] | totalCount | The total number of all entities that match the criteria |
[out] | objects | An array of entities of the specified type Additional properties are 'realSubject', 'realSubjectType' and 'composition' for many-to-many entities and 'clientOID' |
Definition at line 54 of file class.AsyncPagingController.php.
AsyncPagingController::hasView | ( | ) |
Definition at line 61 of file class.AsyncPagingController.php.
AsyncPagingController::executeKernel | ( | ) |
Do processing and assign Node data to View.
Definition at line 70 of file class.AsyncPagingController.php.
References ACTION_READ, RightsManager\getInstance(), Localization\getInstance(), getObjects(), getSortingProperties(), Controller\isLocalizedRequest(), modifyModel(), PagingInfo\setIndex(), and Obfuscator\unveil().
AsyncPagingController::getObjects | ( | $type, | |
$filter, | |||
$sortArray, | |||
& | $pagingInfo | ||
) |
Get the object to display. The default implementation uses ObjectQuery::executeString for the object retrieval. Subclasses may override this. If filter is an empty string, all nodes of the given type will be selected.
type | The object type |
filter | The filter query passed from the view (a serialized ObjectQuery). |
sortArray | An array of attributes to order by (with an optional ASC|DESC appended) |
pagingInfo | A reference to the current paging information (Paginginfo instance) |
Definition at line 146 of file class.AsyncPagingController.php.
References BUILDDEPTH_SINGLE, ObjectQuery\executeString(), NodeUtil\getNodeQuery(), getSortingProperties(), and PersistenceFacade\isKnownType().
Referenced by executeKernel().
AsyncPagingController::getOIDs | ( | $type, | |
$filter, | |||
$sortArray, | |||
& | $pagingInfo | ||
) |
Definition at line 167 of file class.AsyncPagingController.php.
References WCMFException\throwEx().
AsyncPagingController::getSortingProperties | ( | ) |
Get the sorting properties from the 'sort', 'dir' request parameters. The type is guessed from the sort parameter (if it has the form type.attribute or the attribute belongs to the type given in the 'type' request parameter)
Definition at line 177 of file class.AsyncPagingController.php.
References $_sortProperties, and PersistenceFacade\getInstance().
Referenced by executeKernel(), getObjects(), modifyModel(), and sortByRealSubject().
AsyncPagingController::modifyModel | ( | & | $nodes | ) |
Modify the model passed to the view.
nodes | A reference to the array of node references passed to the view |
Definition at line 210 of file class.AsyncPagingController.php.
References BUILDDEPTH_SINGLE, PersistenceFacade\getInstance(), PersistenceFacade\getOIDParameter(), NodeUtil\getRealSubjectType(), getSortingProperties(), PersistenceFacade\isValidOID(), NodeUtil\removeNonDisplayValues(), NodeUtil\renderValues(), NodeUtil\setSortProperties(), and Node\sort().
Referenced by executeKernel().
AsyncPagingController::sortByRealSubject | ( | $a, | |
$b | |||
) |
Definition at line 315 of file class.AsyncPagingController.php.
References DATATYPE_ATTRIBUTE, and getSortingProperties().
AsyncPagingController::$_sortProperties = null |
Definition at line 56 of file class.AsyncPagingController.php.
Referenced by getSortingProperties().