Table of Contents
-
VALUES_LIMIT
= 10000
-
XLSX_ROW_LIMIT
= 50000
-
$categoriesCache
: array<string|int, mixed>
-
$customersCache
: array<string|int, mixed>
-
$dataSetIds
: array<string|int, mixed>
-
$fieldForZip
: string|null
-
$filter
: string|null
-
$image
: string|null
-
$templateFileName
: string
-
$timezone
: DateTimeZone|null
-
$values
: array<string|int, mixed>|null
-
$groupField
: string|null
-
$translator
: ErrorTranslator
-
__construct()
: mixed
-
factory()
: array<string|int, mixed>
-
findErrors()
: array<string|int, mixed>
-
getObjects()
: array<string|int, mixed>
-
setTimezone()
: self
-
getCategory()
: string
-
getCustomer()
: array<string|int, mixed>
-
getDataFromDB()
: array<string|int, mixed>
-
getFormat()
: string
-
getUserInfo()
: array<string|int, mixed>
-
render()
: mixed
-
saveXlsx()
: string
-
convertErrorsDataToRows()
: array<string|int, mixed>
-
getCollection()
: FeaturesCollection|RelationsCollection
-
getCount()
: int
-
getErrorMessage()
: string
-
getErrors()
: array<string|int, mixed>
-
getErrorsCount()
: int
-
getFilter()
: array<string|int, mixed>
-
getGroupObjects()
: array<string|int, mixed>
VALUES_LIMIT
protected
mixed
VALUES_LIMIT
= 10000
XLSX_ROW_LIMIT
protected
mixed
XLSX_ROW_LIMIT
= 50000
$categoriesCache
protected
array<string|int, mixed>
$categoriesCache
= []
$customersCache
protected
array<string|int, mixed>
$customersCache
= []
$dataSetIds
protected
array<string|int, mixed>
$dataSetIds
$fieldForZip
protected
string|null
$fieldForZip
= null
$filter
protected
string|null
$filter
= null
$image
protected
string|null
$image
= null
$templateFileName
protected
string
$templateFileName
$timezone
protected
DateTimeZone|null
$timezone
= null
$values
protected
array<string|int, mixed>|null
$values
= null
$groupField
private
string|null
$groupField
$translator
private
ErrorTranslator
$translator
__construct()
public
__construct(string $templateFileName, array<string|int, mixed> $dataSetIds, string $language[, string|null $filter = null ][, array<string|int, mixed>|null $values = null ][, string|null $groupField = null ]) : mixed
Parameters
-
$templateFileName
: string
-
-
$dataSetIds
: array<string|int, mixed>
-
-
$language
: string
-
-
$filter
: string|null
= null
-
-
$values
: array<string|int, mixed>|null
= null
-
-
$groupField
: string|null
= null
-
Return values
mixed
—
factory()
public
factory() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
findErrors()
public
findErrors(FeaturesCollection|RelationsCollection $collection, DatasetEntity $dataSet, int $limit[, array<string|int, mixed> $filter = [] ]) : array<string|int, mixed>
Parameters
-
$collection
: FeaturesCollection|RelationsCollection
-
-
$dataSet
: DatasetEntity
-
-
$limit
: int
-
-
$filter
: array<string|int, mixed>
= []
-
Return values
array<string|int, mixed>
—
getObjects()
public
getObjects() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
setTimezone()
public
setTimezone(DateTimeZone $timezone) : self
Parameters
-
$timezone
: DateTimeZone
-
Return values
self
—
getCategory()
protected
getCategory(array<string|int, mixed> $log) : string
Parameters
-
$log
: array<string|int, mixed>
-
Return values
string
—
getCustomer()
protected
getCustomer(array<string|int, mixed> $log) : array<string|int, mixed>
Parameters
-
$log
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
getDataFromDB()
protected
getDataFromDB(DatasetEntity $dataSet) : array<string|int, mixed>
Parameters
-
$dataSet
: DatasetEntity
-
Return values
array<string|int, mixed>
—
protected
getFormat() : string
Return values
string
—
getUserInfo()
protected
getUserInfo(UserEntity $user) : array<string|int, mixed>
Parameters
-
$user
: UserEntity
-
Return values
array<string|int, mixed>
—
render()
protected
render(Data $data) : mixed
Parameters
-
$data
: Data
-
Return values
mixed
—
saveXlsx()
protected
saveXlsx(Spreadsheet $content, string $filename) : string
Parameters
-
$content
: Spreadsheet
-
-
$filename
: string
-
Return values
string
—
convertErrorsDataToRows()
private
convertErrorsDataToRows(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
-
$data
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
getCollection()
private
getCollection(DatasetEntity $dataSet) : FeaturesCollection|RelationsCollection
Parameters
-
$dataSet
: DatasetEntity
-
Return values
FeaturesCollection|RelationsCollection
—
getCount()
private
getCount(array<string|int, mixed> $userFilter, mixed $groupField, RelationsCollection|FeaturesCollection $collection) : int
Parameters
-
$userFilter
: array<string|int, mixed>
-
-
$groupField
: mixed
-
-
$collection
: RelationsCollection|FeaturesCollection
-
Return values
int
—
getErrorMessage()
private
getErrorMessage(ErrorInterface $error) : string
Parameters
-
$error
: ErrorInterface
-
Return values
string
—
getErrors()
private
getErrors(DatasetEntity $dataSet) : array<string|int, mixed>
Parameters
-
$dataSet
: DatasetEntity
-
Return values
array<string|int, mixed>
—
getErrorsCount()
private
getErrorsCount(array<string|int, mixed> $userFilter, mixed $groupField, RelationsCollection|FeaturesCollection $collection) : int
Parameters
-
$userFilter
: array<string|int, mixed>
-
-
$groupField
: mixed
-
-
$collection
: RelationsCollection|FeaturesCollection
-
Return values
int
—
getFilter()
private
getFilter(DatasetEntity $dataSet) : array<string|int, mixed>
Parameters
-
$dataSet
: DatasetEntity
-
Return values
array<string|int, mixed>
—
getGroupObjects()
private
getGroupObjects() : array<string|int, mixed>
Return values
array<string|int, mixed>
—