Class CustomerServiceFactory

Class CustomerServiceFactory

Factory class for all needed customer data.

AbstractCustomerServiceFactory
CustomerServiceFactory
Package: Customer
Category: System
Extends: AbstractCustomerServiceFactory
Located at Services/Core/Customer/CustomerServiceFactory.inc.php

Methods summary

public __construct( CI_DB_query_builder $ciDatabaseQueryBuilder )

CustomerServiceFactory constructor.

public getCountryService( void ) : CountryService

Returns the country service.

public getCustomerService( void ) : CustomerService

Returns the customer service.

public createCustomerReadService( void ) : CustomerReadService

Creates a customer read service object.

public createCustomerWriteService( void ) : CustomerService

Creates a customer service object.

public getAddressBookService( void ) : AddressBookService

Returns the address book service.

public getCustomerRegistrationInputValidatorService( void ) : CustomerRegistrationInputValidatorService

Returns the customer registration input validator service.

public getCustomerAccountInputValidator( void ) : CustomerAccountInputValidator

Returns the customer account input validator.

public getDatabaseQueryBuilder( void ) : CI_DB_query_builder

Returns the database query builder.

protected _getCustomerFactory( void ) : CustomerFactory

Returns the customer factory.

protected _getCustomerRepository( void ) : CustomerRepository

Creates a customer repository object.

public getCustomerAddressInputValidatorService( void ) : CustomerAddressInputValidator

Returns the customer input validator.

protected _getCustomerCountryRepository( void ) : CustomerCountryRepository

Creates a customer country repository object.

protected _getCustomerCountryZoneRepository( void ) : CustomerCountryZoneRepository

Creates a customer country zone repository object.

protected _getCustomerAddressRepository( void ) : CustomerAddressRepository

Creates a customer address repository object.

protected _getCustomerInputValidatorServiceByValidatorName( string $inputValidatorName ) : object

Returns customer input validator service by validator name.

protected _getInputValidatorSettings( void ) : CustomerInputValidatorSettings

Creates the input validator settings.

protected _getValidatorConfigSettings( CustomerConfigurationProvider $configProvider ) : CustomerConfigurationSettings

Creates the configuration settings of the input validator.

protected _getValidatorDisplaySettings( CustomerConfigurationProvider $configProvider ) : CustomerDisplaySettings

Creates the display settings of the input validator.

protected _getValidatorMinLengthSettings( CustomerConfigurationProvider $configProvider ) : CustomerMinLengthSettings

Creates the min length settings of the input validator.

protected _getValidatorMaxLengthSettings( void ) : CustomerMaxLengthSettings

Creates the max length settings of the input validator. The max length represent the database field max length.

protected _getValidatorErrorMessageSettings( CustomerConfigurationProvider $configProvider ) : CustomerErrorMessageSettings

Creates the customer validator error messages.

protected _int( integer $int ) : IntType

Returns a new int type.

protected _string( string $str ) : StringType

Returns a new string type.

protected _bool( boolean $bool ) : BoolType

Returns a new bool type.

protected _getCustomerAddressDeleter( void ) : CustomerAddressDeleter

Creates a customer address deleter object.

protected _getCustomerAddressReader( void ) : CustomerAddressReader

Creates a customer address reader object.

protected _getCustomerCountryZoneReader( void ) : CustomerCountryZoneReader

Creates a customer country zone reader object.

protected _getCustomerCountryReader( void ) : CustomerCountryReader

Creates a customer country reader object

protected _getCustomerWriter( void ) : CustomerWriter

Creates a customer writer object.

protected _getCustomerReader( void ) : CustomerReader

Creates a customer reader object.

protected _getCustomerDeleter( void ) : CustomerDeleter

Creates a customer deleter object.

protected _getCustomerServiceSettings( void ) : CustomerServiceSettings

Creates a customer service settings object.

protected _getCustomerAddressWriter( void ) : CustomerAddressWriter

Creates a customer address writer object.

protected _getAddonValueService( void )
protected _getConfigurationProvider( void )

Properties summary

protected $ciDatabaseQueryBuilder : CI_DB_query_builder

Query builder.