CSVExportController.php
39 * | _in_ `docFile` | The name of the file to write to (path relative to script main location) (default: 'export.csv')
40 * | _in_ `className` | The entity type to export instances of or the source type, when exporting a relation (see sourceId, relation)
41 * | _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)
42 * | _in_ `sortDirection` | The direction to sort the list. Must be either _asc_ for ascending or _desc_ for descending (optional, default: _asc_)
43 * | _in_ `query` | A query condition encoded in RQL to be used with StringQuery::setRQLConditionString()
44 * | _in_ `translateValues` | Boolean whether list values should be translated to their display values (optional, default: _true_)
45 * | _in_ `sourceId` | When exporting a relation: Id of the object to which the exported objects are related (determines the object id together with _className_)
46 * | _in_ `relation` | When exporting a relation: Name of the relation to the object defined by _sourceId_ (determines the type of the returned objects)
107 if (!$permissionManager->authorize($request->getValue('className'), '', PersistenceAction::READ)) {
134 !$this->getPersistenceFacade()->getMapper($request->getValue('className'))->hasAttribute($request->hasValue('sortFieldName'))) {
170 * @note This is a callback method called on a matching work package, see BatchController::addWorkPackage()
212 $query->setConditionString((strlen($existingQuery) > 0 ? $existingQuery.' AND ' : '').NodeUtil::getRelationQueryCondition($sourceNode, $relation));
const NODES_PER_CALL
Definition: CSVExportController.php:59
const DOCFILE
Definition: CSVExportController.php:58
Response holds the response values that are used as output from Controller instances.
Definition: Response.php:20
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:18
initialize(Request $request, Response $response)
Definition: CSVExportController.php:64
CSVExportController exports instances of one type into a CSV file.
Definition: CSVExportController.php:55
initExport($oids)
Initialize the CSV export (object ids parameter will be ignored)
Definition: CSVExportController.php:172
StringUtil provides support for string manipulation.
Definition: StringUtil.php:18
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
validate()
Definition: CSVExportController.php:94
StringQuery executes queries from a string representation.
Definition: StringQuery.php:53
ValueListProvider provides lists of key/values to be used with list input controls.
Definition: ValueListProvider.php:23
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
getDownloadFile()
Definition: CSVExportController.php:163
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
cleanup()
Definition: CSVExportController.php:280
FileUtil provides basic support for file functionality like HTTP file upload.
Definition: FileUtil.php:22
getWorkPackage($number)
Definition: CSVExportController.php:153
BatchController is used to process complex, longer running actions, that need to be divided into seve...
Definition: BatchController.php:73
addWorkPackage($name, $size, array $oids, $callback, $args=null)
Add a work package to session.
Definition: BatchController.php:210
Controller is the base class of all controllers.
Definition: Controller.php:49
PersistenceAction values are used to define actions on PersistentObject instances.
Definition: PersistenceAction.php:19
exportNodes($oids)
Serialize all Nodes with given object ids to CSV.
Definition: CSVExportController.php:241
static translateValue($value, $inputType, $language=null, $itemDelim=", ")
Translate a value with use of it's assoziated input type e.g.
Definition: ValueListProvider.php:84