Detailed Description
BatchDisplayController is used to load a tree of Node instances recursivly and return them in lists of a given size.
The reconstruction of the tree must be handled by the client.
The controller supports the following actions:
Parameter | Description |
---|---|
in / out oid | The object id of the Node to start loading from |
in translateValues | Boolean whether list values should be translated to their display values (optional, default: true) |
in nodesPerCall | The number of Node instances to load in one call (default: 50) |
out list | Array of Node instances |
For additional actions and parameters see BatchController actions.
Definition at line 49 of file BatchDisplayController.php.
Public Member Functions | |
initialize (Request $request, Response $response) | |
Public Member Functions inherited from Controller | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration) | |
execute ($method=null) | |
getRequest () | |
getResponse () | |
Public Attributes | |
const | REGISTRY_VAR = 'registry' |
const | ITERATOR_ID_VAR = 'BatchDisplayController.iteratorid' |
const | NODES_PER_CALL = 50 |
Public Attributes inherited from BatchController | |
const | REQUEST_VAR = 'request' |
const | ONE_CALL_VAR = 'oneCall' |
const | STEP_VAR = 'step' |
const | NUM_STEPS_VAR = 'numSteps' |
const | DOWNLOAD_STEP_VAR = 'downloadStep' |
const | PACKAGES_VAR = 'packages' |
Public Attributes inherited from Controller | |
const | CSRF_TOKEN_PARAM = 'csrf_token' |
Member Function Documentation
◆ initialize()
- See also
- Controller::initialize()
Reimplemented from BatchController.
Definition at line 63 of file BatchDisplayController.php.
◆ validate()
|
protected |
- See also
- Controller::validate()
Reimplemented from Controller.
Definition at line 89 of file BatchDisplayController.php.
◆ getWorkPackage()
|
protected |
Reimplemented from BatchController.
Definition at line 110 of file BatchDisplayController.php.
◆ startProcess()
|
protected |
Initialize the iterator (object ids parameter will be ignored)
- Parameters
-
$oids The object ids to process
Definition at line 124 of file BatchDisplayController.php.
◆ loadNodes()
|
protected |
Load nodes provided by the persisted iterator (object ids parameter will be ignored)
- Parameters
-
$oids The object ids to process
Definition at line 158 of file BatchDisplayController.php.
◆ endProcess()
|
protected |
Finish the process and set the result.
Definition at line 200 of file BatchDisplayController.php.
◆ loadNode()
|
protected |
Load the node with the given object id and assign it to the response.
- Parameters
-
$oid The object id of the node to copy
Definition at line 208 of file BatchDisplayController.php.
◆ register()
|
protected |
Register an object id in the registry.
- Parameters
-
$oid The object id to register
Definition at line 260 of file BatchDisplayController.php.
◆ isRegistered()
|
protected |
Check if an object id is registered in the registry.
- Parameters
-
$oid The object id to check
- Returns
- Boolean whether the object id is registered or not
Definition at line 271 of file BatchDisplayController.php.
◆ addNodeToResponse()
|
protected |
Add a given node to the list variable of the response.
- Parameters
-
$node The Node instance to add
Definition at line 280 of file BatchDisplayController.php.
Member Data Documentation
◆ REGISTRY_VAR
const REGISTRY_VAR = 'registry' |
Definition at line 52 of file BatchDisplayController.php.
◆ ITERATOR_ID_VAR
const ITERATOR_ID_VAR = 'BatchDisplayController.iteratorid' |
Definition at line 55 of file BatchDisplayController.php.
◆ NODES_PER_CALL
const NODES_PER_CALL = 50 |
Definition at line 58 of file BatchDisplayController.php.