CustomerServiceFactory
extends AbstractCustomerServiceFactory
in package
Class CustomerServiceFactory
Factory class for all needed customer data.
Tags
Table of Contents
- $ciDatabaseQueryBuilder : CI_DB_query_builder
- Query builder.
- $configurationProvider : CustomerConfigurationProvider
- __construct() : mixed
- CustomerServiceFactory constructor.
- createCustomerReadService() : CustomerReadService
- Creates a customer read service object.
- createCustomerWriteService() : CustomerService
- Creates a customer service object.
- getAddressBookService() : AddressBookService
- Returns the address book service.
- getCountryService() : CountryService
- Returns the country service.
- getCustomerAccountInputValidator() : CustomerAccountInputValidator
- Returns the customer account input validator.
- getCustomerAddressInputValidatorService() : CustomerAddressInputValidator
- Returns the customer input validator.
- getCustomerRegistrationInputValidatorService() : CustomerRegistrationInputValidatorService
- Returns the customer registration input validator service.
- getCustomerService() : CustomerService
- Returns the customer service.
- getDatabaseQueryBuilder() : CI_DB_query_builder
- Returns the database query builder.
- _bool() : BoolType
- Returns a new bool type.
- _getAddonValueService() : mixed
- _getConfigurationProvider() : mixed
- _getCustomerAddressDeleter() : CustomerAddressDeleter
- Creates a customer address deleter object.
- _getCustomerAddressReader() : CustomerAddressReader
- Creates a customer address reader object.
- _getCustomerAddressRepository() : CustomerAddressRepository
- Creates a customer address repository object.
- _getCustomerAddressWriter() : CustomerAddressWriter
- Creates a customer address writer object.
- _getCustomerCountryReader() : CustomerCountryReader
- Creates a customer country reader object
- _getCustomerCountryRepository() : CustomerCountryRepository
- Creates a customer country repository object.
- _getCustomerCountryZoneReader() : CustomerCountryZoneReader
- Creates a customer country zone reader object.
- _getCustomerCountryZoneRepository() : CustomerCountryZoneRepository
- Creates a customer country zone repository object.
- _getCustomerDeleter() : CustomerDeleter
- Creates a customer deleter object.
- _getCustomerFactory() : CustomerFactory
- Returns the customer factory.
- _getCustomerInputValidatorServiceByValidatorName() : object
- Returns customer input validator service by validator name.
- _getCustomerReader() : CustomerReader
- Creates a customer reader object.
- _getCustomerRepository() : CustomerRepository
- Creates a customer repository object.
- _getCustomerServiceSettings() : CustomerServiceSettings
- Creates a customer service settings object.
- _getCustomerWriter() : CustomerWriter
- Creates a customer writer object.
- _getInputValidatorSettings() : CustomerInputValidatorSettings
- Creates the input validator settings.
- _getValidatorConfigSettings() : CustomerConfigurationSettings
- Creates the configuration settings of the input validator.
- _getValidatorDisplaySettings() : CustomerDisplaySettings
- Creates the display settings of the input validator.
- _getValidatorErrorMessageSettings() : CustomerErrorMessageSettings
- Creates the customer validator error messages.
- _getValidatorMaxLengthSettings() : CustomerMaxLengthSettings
- Creates the max length settings of the input validator.
- _getValidatorMinLengthSettings() : CustomerMinLengthSettings
- Creates the min length settings of the input validator.
- _int() : IntType
- Returns a new int type.
- _string() : StringType
- Returns a new string type.
Properties
$ciDatabaseQueryBuilder
Query builder.
protected
CI_DB_query_builder
$ciDatabaseQueryBuilder
$configurationProvider
protected
CustomerConfigurationProvider
$configurationProvider
Methods
__construct()
CustomerServiceFactory constructor.
public
__construct(CI_DB_query_builder $ciDatabaseQueryBuilder) : mixed
Parameters
- $ciDatabaseQueryBuilder : CI_DB_query_builder
-
Query builder.
Return values
mixed —createCustomerReadService()
Creates a customer read service object.
public
createCustomerReadService() : CustomerReadService
Return values
CustomerReadService —Customer read service.
createCustomerWriteService()
Creates a customer service object.
public
createCustomerWriteService() : CustomerService
Return values
CustomerService —Customer service.
getAddressBookService()
Returns the address book service.
public
getAddressBookService() : AddressBookService
Return values
AddressBookService —Address book service.
getCountryService()
Returns the country service.
public
getCountryService() : CountryService
Return values
CountryService —Country service.
getCustomerAccountInputValidator()
Returns the customer account input validator.
public
getCustomerAccountInputValidator() : CustomerAccountInputValidator
Return values
CustomerAccountInputValidator —Customer account input validator.
getCustomerAddressInputValidatorService()
Returns the customer input validator.
public
getCustomerAddressInputValidatorService() : CustomerAddressInputValidator
Return values
CustomerAddressInputValidator —Customer input validator.
getCustomerRegistrationInputValidatorService()
Returns the customer registration input validator service.
public
getCustomerRegistrationInputValidatorService() : CustomerRegistrationInputValidatorService
Return values
CustomerRegistrationInputValidatorService —Customer registration input validator service.
getCustomerService()
Returns the customer service.
public
getCustomerService() : CustomerService
Return values
CustomerService —Customer service.
getDatabaseQueryBuilder()
Returns the database query builder.
public
getDatabaseQueryBuilder() : CI_DB_query_builder
Return values
CI_DB_query_builder —Query builder.
_bool()
Returns a new bool type.
protected
_bool(bool $bool) : BoolType
Parameters
- $bool : bool
-
Value of representing type object.
Return values
BoolType —_getAddonValueService()
protected
_getAddonValueService() : mixed
Return values
mixed —_getConfigurationProvider()
protected
_getConfigurationProvider() : mixed
Return values
mixed —_getCustomerAddressDeleter()
Creates a customer address deleter object.
protected
_getCustomerAddressDeleter() : CustomerAddressDeleter
Return values
CustomerAddressDeleter —Customer address deleter.
_getCustomerAddressReader()
Creates a customer address reader object.
protected
_getCustomerAddressReader() : CustomerAddressReader
Return values
CustomerAddressReader —Customer address reader.
_getCustomerAddressRepository()
Creates a customer address repository object.
protected
_getCustomerAddressRepository() : CustomerAddressRepository
Return values
CustomerAddressRepository —Customer address repository.
_getCustomerAddressWriter()
Creates a customer address writer object.
protected
_getCustomerAddressWriter() : CustomerAddressWriter
Return values
CustomerAddressWriter —Customer address writer.
_getCustomerCountryReader()
Creates a customer country reader object
protected
_getCustomerCountryReader() : CustomerCountryReader
Return values
CustomerCountryReader —Customer country reader.
_getCustomerCountryRepository()
Creates a customer country repository object.
protected
_getCustomerCountryRepository() : CustomerCountryRepository
Return values
CustomerCountryRepository —Customer country repository.
_getCustomerCountryZoneReader()
Creates a customer country zone reader object.
protected
_getCustomerCountryZoneReader() : CustomerCountryZoneReader
Return values
CustomerCountryZoneReader —Customer country zone reader.
_getCustomerCountryZoneRepository()
Creates a customer country zone repository object.
protected
_getCustomerCountryZoneRepository() : CustomerCountryZoneRepository
Return values
CustomerCountryZoneRepository —Customer country zone repository.
_getCustomerDeleter()
Creates a customer deleter object.
protected
_getCustomerDeleter() : CustomerDeleter
Return values
CustomerDeleter —Customer deleter.
_getCustomerFactory()
Returns the customer factory.
protected
_getCustomerFactory() : CustomerFactory
Return values
CustomerFactory —Customer factory.
TODO Inject CustomerFactory
_getCustomerInputValidatorServiceByValidatorName()
Returns customer input validator service by validator name.
protected
_getCustomerInputValidatorServiceByValidatorName(string $inputValidatorName) : object
Parameters
- $inputValidatorName : string
-
Name of input validator service.
Return values
object —Found customer input validator service.
_getCustomerReader()
Creates a customer reader object.
protected
_getCustomerReader() : CustomerReader
Return values
CustomerReader —Customer reader.
_getCustomerRepository()
Creates a customer repository object.
protected
_getCustomerRepository() : CustomerRepository
Return values
CustomerRepository —Customer repository.
_getCustomerServiceSettings()
Creates a customer service settings object.
protected
_getCustomerServiceSettings() : CustomerServiceSettings
Return values
CustomerServiceSettings —Customer service settings.
_getCustomerWriter()
Creates a customer writer object.
protected
_getCustomerWriter() : CustomerWriter
Return values
CustomerWriter —Customer writer.
_getInputValidatorSettings()
Creates the input validator settings.
protected
_getInputValidatorSettings() : CustomerInputValidatorSettings
Return values
CustomerInputValidatorSettings —_getValidatorConfigSettings()
Creates the configuration settings of the input validator.
protected
_getValidatorConfigSettings(CustomerConfigurationProvider $configProvider) : CustomerConfigurationSettings
Parameters
- $configProvider : CustomerConfigurationProvider
-
Component that fetches data from configuration tables.
Return values
CustomerConfigurationSettings —_getValidatorDisplaySettings()
Creates the display settings of the input validator.
protected
_getValidatorDisplaySettings(CustomerConfigurationProvider $configProvider) : CustomerDisplaySettings
Parameters
- $configProvider : CustomerConfigurationProvider
-
Component that fetches data from configuration tables.
Return values
CustomerDisplaySettings —_getValidatorErrorMessageSettings()
Creates the customer validator error messages.
protected
_getValidatorErrorMessageSettings(CustomerConfigurationProvider $configProvider) : CustomerErrorMessageSettings
Parameters
- $configProvider : CustomerConfigurationProvider
-
Component that fetches data from configuration tables.
Return values
CustomerErrorMessageSettings —_getValidatorMaxLengthSettings()
Creates the max length settings of the input validator.
protected
_getValidatorMaxLengthSettings() : CustomerMaxLengthSettings
The max length represent the database field max length.
Return values
CustomerMaxLengthSettings —_getValidatorMinLengthSettings()
Creates the min length settings of the input validator.
protected
_getValidatorMinLengthSettings(CustomerConfigurationProvider $configProvider) : CustomerMinLengthSettings
Parameters
- $configProvider : CustomerConfigurationProvider
-
Component that fetches data from configuration tables.
Return values
CustomerMinLengthSettings —_int()
Returns a new int type.
protected
_int(int $int) : IntType
Parameters
- $int : int
-
Value of representing type object.
Return values
IntType —_string()
Returns a new string type.
protected
_string(string $str) : StringType
Parameters
- $str : string
-
Value of representing type object.