DataProcessor
in package
Entity for formatting and processing data coming eiter from, or going into the Database.
Mostly needed by CRUDKit internally.
Table of Contents
- postProcess() : array<string|int, mixed>
- Formats the data in record(s) so that they can be displayed to the user or consumed by views.
Methods
postProcess()
Formats the data in record(s) so that they can be displayed to the user or consumed by views.
public
postProcess(mixed $records[, bool $singleRecord = false ][, bool $formaDateAndTime = true ][, bool $formatBool = true ][, bool $formatDec = true ][, bool $formatBinary = true ]) : array<string|int, mixed>
Parameters
- $records : mixed
-
Raw data from the DB. Obtained by readRecordsRaw() or readRecordRaw()
- $singleRecord : bool = false
-
TRUE if the records is a single record, FALSE if its an array of multiple records.
- $formaDateAndTime : bool = true
- $formatBool : bool = true
- $formatDec : bool = true
- $formatBinary : bool = true
Return values
array<string|int, mixed> —$records