Class CustomerAddressReader
This class is used for reading customer address data from the database
category |
System |
---|---|
package |
Customer |
subpackage |
Address |
implements |
CustomerAddressReaderInterface |
__construct(\CI_DB_query_builder $query_builder)
\CI_DB_query_builder
_applyDefaultSorting()
_applyPagination(\Pager|null $pager = null) : $this|\ProductListProvider
_applySorting(array $sorters = array()) : $this|\ProductListProvider
Throws |
|
---|
array
Array of Sorter objects.
$this|\ProductListProvider
Same instance for chained method calls.
_createCustomerAddressByArray(array $addressDataArray) : \CustomerAddress
_getFieldMap() : \array.
\array.
_parseOrderByString(\StringType|null $orderBy = null) : array
array
with sort information structured as ['field'=>'', 'direction'=>''].
_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
array
of Sorter objects.
_translateToDatabaseField(\string $fieldName) : \string.
Throws |
|
---|
\string
Object Field name.
\string.
_translateToJsonFieldName(\StringType $databaseFieldName) : string|FALSE
\StringType
the database field name. It can be supplied as table.fieldName or fieldName.
string|FALSE
will return the field name or FALSE if the field doesn't exist.
filterAddresses(string $p_keyword, \Pager|null $pager = null, array $sorters = array()) : array
This method is useful when creating a search mechanism for the registered addresses.
string
The keyword to be used for filtering the records.
array
(Optional) array of Sorter objects with data sorting information
array
Returns an array of CustomerAddress objects.
findAddressesByCustomer(\CustomerInterface $customer) : array
findById(\IdType $id) : \CustomerAddress
getAllAddresses(\Pager|null $pager = null, array $sorters = array()) : array
array
(Optional) array of Sorter objects with data sorting information
array
of CustomerAddress
getById(\IdType $id) : \CustomerAddress
db : \\CI_DB_query_builder
var |
---|
\\CI_DB_query_builder