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
_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
array
of Sorter objects.
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