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 CustomerCountryZoneRepository

Class CustomerCountryZoneRepository

This class provides basic methods for finding customer country zone data

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

Methods summary

public
# __construct( CustomerCountryZoneReaderInterface $customerCountryZoneReader, AbstractCustomerFactory $customerFactory )

Constructor of the class CustomerCountryZoneRepository

Constructor of the class CustomerCountryZoneRepository

Parameters

$customerCountryZoneReader
$customerFactory
public CustomerCountryZoneInterface
# getById( IdType $countryZoneId )

Parameters

$countryZoneId

Returns

CustomerCountryZoneInterface

Throws

Exception
if country zone not found

Implementation of

CustomerCountryZoneRepositoryInterface::getById()
public CustomerCountryZoneInterface
# getByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country )

Parameters

$countryZoneName
$country

Returns

CustomerCountryZoneInterface

Throws

Exception
if country zone not found

Implementation of

CustomerCountryZoneRepositoryInterface::getByNameAndCountry()
public CustomerCountryZone
# getUnknownCountryZoneByName( CustomerCountryZoneNameInterface $countryZoneName )

This method will return a new CustomerCountryZone object representing an unknown country zone. ID is 0 and ISO code is empty.

This method will return a new CustomerCountryZone object representing an unknown country zone. ID is 0 and ISO code is empty.

Parameters

$countryZoneName

Returns

CustomerCountryZone

Implementation of

CustomerCountryZoneRepositoryInterface::getUnknownCountryZoneByName()
public CustomerCountryZone|null
# findByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country )

This method will get the country zone by its name and country if it exists, if not it will return null.

This method will get the country zone by its name and country if it exists, if not it will return null.

Parameters

$countryZoneName
$country

Returns

CustomerCountryZone|null

Implementation of

CustomerCountryZoneRepositoryInterface::findByNameAndCountry()
public CustomerCountryZone|null
# findById( IdType $countryZoneId )

This method will get the country zone by its ID if it exists, if not it will return null.

This method will get the country zone by its ID if it exists, if not it will return null.

Parameters

$countryZoneId

Returns

CustomerCountryZone|null

Implementation of

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

This method will return an array of country zones found by the country ID.

This method will return an array of country zones found by the country ID.

Parameters

$countryId

Returns

array

Implementation of

CustomerCountryZoneRepositoryInterface::findCountryZonesByCountryId()
public boolean
# isStateMandatory( IdType $countryId )

This method returns whether the specified country, necessary, needs a state.

This method returns whether the specified country, necessary, needs a state.

Parameters

$countryId

Returns

boolean

Implementation of

CustomerCountryZoneRepositoryInterface::isStateMandatory()
public CustomerCountryZoneInterface|null
# findCountryZoneByZoneCodeAndCountry( CustomerCountryZoneIsoCodeInterface $zoneCode, CustomerCountryInterface $country )

Finds the country zone by the given zone code and country. Null will be returned if no results are found.

Finds the country zone by the given zone code and country. Null will be returned if no results are found.

Parameters

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

Returns

CustomerCountryZoneInterface|null

Implementation of

CustomerCountryZoneRepositoryInterface::findCountryZoneByZoneCodeAndCountry()
public CustomerCountryZoneInterface
# findCountryZoneByZoneCodeAndCountryId( CustomerCountryZoneIsoCodeInterface $zoneCode, IdType $countryId )

Returns the country zone by the given zone code and country id. Null will be returned if no results are found.

Returns the country zone by the given zone code and country id. Null will be returned if no results are found.

Parameters

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

Returns

CustomerCountryZoneInterface

Implementation of

CustomerCountryZoneRepositoryInterface::findCountryZoneByZoneCodeAndCountryId()

Properties summary

protected CustomerCountryZoneReaderInterface $customerCountryZoneReader
#
protected AbstractCustomerFactory $customerFactory
#
API documentation generated by ApiGen