Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminAccess
    • Collections
    • Deleters
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Managers
    • Readers
    • Writers
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Review
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories
  • Withdrawal
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects

Classes

  • CustomerCountryZone
  • CustomerCountryZoneReader
  • CustomerCountryZoneRepository

Class CustomerCountryZoneReader

Class CustomerCountryZoneReader

This class is used for reading customer country zone data from the database

CustomerCountryZoneReader implements CustomerCountryZoneReaderInterface
Package: Customer\CountryZone
Category: System
Implements: CustomerCountryZoneReaderInterface
Located at Services/Core/Country/CustomerCountryZoneReader.inc.php

Methods summary

public
# __construct( AbstractCustomerFactory $customerFactory, CI_DB_query_builder $dbQueryBuilder )

Constructor of the class CustomerCountryZoneReader

Constructor of the class CustomerCountryZoneReader

Parameters

$customerFactory
$dbQueryBuilder
public CustomerCountryZone
# findByName( CustomerCountryZoneNameInterface $countryZoneName )

Parameters

$countryZoneName

Returns

CustomerCountryZone

Throws

InvalidArgumentException
if $p_countryZoneName is not a string

Implementation of

CustomerCountryZoneReaderInterface::findByName()
public CustomerCountryZone|null
# findByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country )

Parameters

$countryZoneName
$country

Returns

CustomerCountryZone|null
public CustomerCountryZone
# findById( IdType $countryZoneId )

Parameters

$countryZoneId

Returns

CustomerCountryZone

Throws

InvalidArgumentException
if $p_countryZoneName is not a string

Implementation of

CustomerCountryZoneReaderInterface::findById()
public array
# findCountryZonesByCountryId( IdType $countryId )

Parameters

$countryId

Returns

array
of CustomerCountryZone objects

Throws

InvalidArgumentException

Implementation of

CustomerCountryZoneReaderInterface::findCountryZonesByCountryId()
public CustomerCountryZoneInterface|null
# findCountryZoneByZoneCodeAndCountry( CustomerCountryZoneIsoCodeInterface $zoneCode, CustomerCountryInterface $country )

Returns an array with country zone data. An empty array will be returned if no results are found.

Returns an array with country zone data. An empty array will be returned if no results are found.

Parameters

$zoneCode
Zone code of expected country zone.
$country
Country of zone.

Returns

CustomerCountryZoneInterface|null
Country zone.

Implementation of

CustomerCountryZoneReaderInterface::findCountryZoneByZoneCodeAndCountry()
public CustomerCountryZoneInterface|null
# findCountryZoneByZoneCodeAndCountryId( CustomerCountryZoneIsoCodeInterface $zoneCode, IdType $countryId )

Returns an array with country zone data. An empty array will be returned if no results are found.

Returns an array with country zone data. An empty array will be returned if no results are found.

Parameters

$zoneCode
Zone code of expected country zone.
$countryId
Country id of zone.

Returns

CustomerCountryZoneInterface|null
Country zone.

Implementation of

CustomerCountryZoneReaderInterface::findCountryZoneByZoneCodeAndCountryId()
protected CustomerCountryZone
# _createCountryZoneByArray( array $zoneDataArray )

Creates a customer country zone object from the given zone data.

Creates a customer country zone object from the given zone data.

Parameters

$zoneDataArray
Zone data, must contain keys "zone_id", "zone_name" and "zone_code".

Returns

CustomerCountryZone
protected array
# _getZoneDataByZoneCodeAndCountryId( string $zoneCode, integer $countryId )

Fetches data for a zone by the given zone code and country id.

Fetches data for a zone by the given zone code and country id.

Parameters

$zoneCode
ISO code of expected zone.
$countryId
Id of zone's country.

Returns

array
Data for a zone.

Properties summary

protected AbstractCustomerFactory $customerFactory
#
protected CI_DB_query_builder $db
#
API documentation generated by ApiGen