Class CustomerCountryZoneReader
This class is used for reading customer country zone data from the database
| category |
System |
|---|---|
| package |
Customer |
| subpackage |
CountryZone |
| implements |
CustomerCountryZoneReaderInterface |
__construct(\AbstractCustomerFactory $customerFactory, \CI_DB_query_builder $dbQueryBuilder)
_createCountryZoneByArray(array $zoneDataArray) : \CustomerCountryZone
arrayZone data, must contain keys "zone_id", "zone_name" and "zone_code".
\CustomerCountryZone
_getZoneDataByZoneCodeAndCountryId(string $zoneCode, integer $countryId) : array
stringISO code of expected zone.
integerId of zone's country.
arrayData for a zone.
findById(\IdType $countryZoneId) : \CustomerCountryZone
findByName(\CustomerCountryZoneNameInterface $countryZoneName) : \CustomerCountryZone
findByNameAndCountry(\CustomerCountryZoneNameInterface $countryZoneName, \CustomerCountryInterface $country) : \CustomerCountryZone|null
\CustomerCountryZoneNameInterface
\CustomerCountryInterface
\CustomerCountryZone|null
findCountryZoneByZoneCodeAndCountry(\CustomerCountryZoneIsoCodeInterface $zoneCode, \CustomerCountryInterface $country) : \CustomerCountryZoneInterface|null
An empty array will be returned if no results are found.
\CustomerCountryZoneInterface|nullCountry zone.
findCountryZoneByZoneCodeAndCountryId(\CustomerCountryZoneIsoCodeInterface $zoneCode, \IdType $countryId) : \CustomerCountryZoneInterface|null
An empty array will be returned if no results are found.
\CustomerCountryZoneInterface|nullCountry zone.
findCountryZonesByCountryId(\IdType $countryId) : array
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder