Download
in package
Class handling the batch download endpoint
Tags
Table of Contents
Constants
- CONTENT_TYPE = 'application/zip'
- DEFAULT_COMPRESSION_LEVEL = 1
- DEFAULT_COMPRESSION_METHOD = \ZipStream\CompressionMethod::STORE
- DEFAULT_FILE_NAME = 'data.zip'
- DEFAULT_STRICT = false
- FORBIDDEN_FILENAME_CHARS_REGEX = '/[^-_[:alnum:] ]/u'
- FORBIDDEN_FILENAME_CHARS_REPLACE = '_'
Properties
- $parentQuery : PDOStatement
- $parentQueryParam : array<string|int, mixed>
- $parents : array<string, array<string, string>>
Methods
- get() : void
- options() : void
- checkAccessRights() : array<string|int, int>
- collectChildren() : array<string|int, string>
- fetchParentsMeta() : void
Constants
CONTENT_TYPE
public
mixed
CONTENT_TYPE
= 'application/zip'
DEFAULT_COMPRESSION_LEVEL
public
mixed
DEFAULT_COMPRESSION_LEVEL
= 1
DEFAULT_COMPRESSION_METHOD
public
mixed
DEFAULT_COMPRESSION_METHOD
= \ZipStream\CompressionMethod::STORE
DEFAULT_FILE_NAME
public
mixed
DEFAULT_FILE_NAME
= 'data.zip'
DEFAULT_STRICT
public
mixed
DEFAULT_STRICT
= false
FORBIDDEN_FILENAME_CHARS_REGEX
public
mixed
FORBIDDEN_FILENAME_CHARS_REGEX
= '/[^-_[:alnum:] ]/u'
FORBIDDEN_FILENAME_CHARS_REPLACE
public
mixed
FORBIDDEN_FILENAME_CHARS_REPLACE
= '_'
Properties
$parentQuery
private
PDOStatement
$parentQuery
$parentQueryParam
private
array<string|int, mixed>
$parentQueryParam
$parents
private
array<string, array<string, string>>
$parents
Methods
get()
public
get() : void
options()
public
options([int $code = 204 ]) : void
Parameters
- $code : int = 204
checkAccessRights()
private
checkAccessRights(array<string|int, string> $ids, bool $skipUnauthorized) : array<string|int, int>
Parameters
- $ids : array<string|int, string>
- $skipUnauthorized : bool
Return values
array<string|int, int>collectChildren()
private
collectChildren(array<string|int, string> $ids) : array<string|int, string>
Parameters
- $ids : array<string|int, string>
Return values
array<string|int, string>fetchParentsMeta()
private
fetchParentsMeta(int $id, object $meta) : void
Parameters
- $id : int
- $meta : object