AddressList
in package
Table of Contents
- DEFAULT_FIELDS_REPLACE = ['defaultemail' => 'Email', 'defaultphone' => 'Telefon1', 'defaultfax' => 'Telefax1']
- $_adressesById : array<string|int, mixed>
- $_pDataViewAddress : DataListViewAddress
- $_pEnvironment : AddressListEnvironment
- $_specialContactData : array<string|int, string>
- __construct() : mixed
- getAddressById() : array<string|int, mixed>
- getFieldLabel() : string
- getFieldType() : string
- getRows() : array<string|int, mixed>
- getVisibleFilterableFields() : array<string|int, string>
- loadAddresses() : mixed
- loadAdressesById() : mixed
- withDataListViewAddress() : AddressList
- collectAdditionalContactData() : array<string|int, mixed>
- fillAddressesById() : mixed
- generateRecordModifier() : ViewFieldModifierHandler
- getArrayContainerByRow() : ArrayContainerEscape
Constants
DEFAULT_FIELDS_REPLACE
public
mixed
DEFAULT_FIELDS_REPLACE
= ['defaultemail' => 'Email', 'defaultphone' => 'Telefon1', 'defaultfax' => 'Telefax1']
Properties
$_adressesById
private
array<string|int, mixed>
$_adressesById
= []
$_pDataViewAddress
private
DataListViewAddress
$_pDataViewAddress
= null
$_pEnvironment
private
AddressListEnvironment
$_pEnvironment
= null
$_specialContactData
private
array<string|int, string>
$_specialContactData
= ['mobile', 'phoneprivate', 'phonebusiness', 'phone', 'emailprivate', 'emailbusiness', 'email']
Methods
__construct()
public
__construct([AddressListEnvironment $pEnvironment = null ]) : mixed
Parameters
- $pEnvironment : AddressListEnvironment = null
Return values
mixed —getAddressById()
public
getAddressById(int $id) : array<string|int, mixed>
Parameters
- $id : int
Return values
array<string|int, mixed> —getFieldLabel()
public
getFieldLabel(string $field[, bool $raw = false ]) : string
Parameters
- $field : string
- $raw : bool = false
Return values
string —getFieldType()
public
getFieldType(string $field) : string
Parameters
- $field : string
Tags
Return values
string —getRows()
public
getRows([bool $raw = false ]) : array<string|int, mixed>
Parameters
- $raw : bool = false
Return values
array<string|int, mixed> —getVisibleFilterableFields()
public
getVisibleFilterableFields() : array<string|int, string>
Tags
Return values
array<string|int, string> —An array of visible fields
loadAddresses()
public
loadAddresses([int $inputPage = 1 ]) : mixed
Parameters
- $inputPage : int = 1
Tags
Return values
mixed —loadAdressesById()
public
loadAdressesById(array<string|int, mixed> $addressIds, array<string|int, mixed> $fields) : mixed
Parameters
- $addressIds : array<string|int, mixed>
- $fields : array<string|int, mixed>
Tags
Return values
mixed —withDataListViewAddress()
public
withDataListViewAddress(DataListViewAddress $pDataListViewAddress) : AddressList
Parameters
- $pDataListViewAddress : DataListViewAddress
Return values
AddressList —collectAdditionalContactData()
private
collectAdditionalContactData(array<string|int, mixed> $elements) : array<string|int, mixed>
Parameters
- $elements : array<string|int, mixed>
Return values
array<string|int, mixed> —fillAddressesById()
private
fillAddressesById(array<string|int, mixed> $records) : mixed
Parameters
- $records : array<string|int, mixed>
Return values
mixed —generateRecordModifier()
private
generateRecordModifier() : ViewFieldModifierHandler
Return values
ViewFieldModifierHandler —getArrayContainerByRow()
private
getArrayContainerByRow(bool $raw, array<string|int, mixed> $row) : ArrayContainerEscape
Parameters
- $raw : bool
- $row : array<string|int, mixed>