ExportBase
in package
implements
Export
Base class for exporters
Exporters operate on some HierarchyBase class. They extract data and/or settings from these classes in a form of PHP array. Exporters also allow of adding modifiers to the exported query - adding more data. These modifiers are added via specific methods (usually starting with "with" keyword).
Tags
Interfaces, Classes and Traits
- Export
- Interface for exporters
Table of Contents
- $modifiers : array<string|int, mixed>
- $object : HierarchyBase
- __construct() : mixed
- get() : array<string|int, mixed>
- Finish the export query -> get the result
- applyModifiers() : void
- Apply set modifiers to data array
Properties
$modifiers
protected
array<string|int, mixed>
$modifiers
= []
$object
protected
HierarchyBase
$object
Methods
__construct()
public
__construct(HierarchyBase $object) : mixed
Parameters
- $object : HierarchyBase
Return values
mixed —get()
Finish the export query -> get the result
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed> —The query result
applyModifiers()
Apply set modifiers to data array
protected
applyModifiers(array<string|int, mixed> &$data) : void
Parameters
- $data : array<string|int, mixed>