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
array
Zone data, must contain keys "zone_id", "zone_name" and "zone_code".
\CustomerCountryZone
_getZoneDataByZoneCodeAndCountryId(string $zoneCode, integer $countryId) : array
string
ISO code of expected zone.
integer
Id of zone's country.
array
Data 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|null
Country zone.
findCountryZoneByZoneCodeAndCountryId(\CustomerCountryZoneIsoCodeInterface $zoneCode, \IdType $countryId) : \CustomerCountryZoneInterface|null
An empty array will be returned if no results are found.
\CustomerCountryZoneInterface|null
Country zone.
findCountryZonesByCountryId(\IdType $countryId) : array
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder