Class CustomerConfigurationProvider
| package |
Default |
|---|
__construct(\CI_DB_query_builder $db, \LanguageTextManager $languageTextManager)
\CI_DB_query_builderDatabase access, required to fetch configurations.
\LanguageTextManagerText manager to fetch error messages.
checkIfFieldExists(\StringType $configField, array $fields) : $this|\CustomerConfigurationProvider
| Throws |
|
|---|
arrayAllowed configuration fields.
$this|\CustomerConfigurationProviderSame instance for chained method calls.
configuration(\StringType $configField) : boolean
Allowed fields are 'acceptPrivacy', 'optionalNames', 'splitStreetInformation'.
booleanTrue if configuration is enabled and false otherwise.
defaultStatusId(\StringType $configField) : integer
Allowed fields are 'customer' and 'guest'.
integerDefault status id of given config field.
display(\StringType $configField) : boolean
\StringTypeDetermines for which configuration field the display check should be performed.
booleanTrue if provided configuration field should be displayed and false otherwise.
errorMessage(\StringType $configField) : string
Allowed fields are 'gender', 'firstName', 'lastName', 'dateOfBirth', 'company', 'vatNumber', 'email', 'emailAddressCheck', 'emailConfirmation', 'emailExists', 'street', 'houseNumber', 'postcode', 'city', 'country', 'countryZone', 'countryZoneSelection', 'telephone', 'password', 'passwordMismatch', 'privacy', 'invalidInput'.
\StringTypeDetermines for which configuration field the error message should be provided.
stringError message of provided configuration field.
minLength(\StringType $configField) : integer
Allowed fields are 'firstName', 'lastName', 'dateOfBirth', 'dob', 'email', 'street', 'houseNumber', 'company', 'postcode', 'city', 'countryZone', 'suburb', 'state', 'telephone', 'password'.
\StringTypeDetermines for which configuration field the minimum length should be provided.
integerMinimum length of provided configuration field.
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder
languageTextManager : \LanguageTextManager
| var |
|---|
\LanguageTextManager
minLength : array
| var |
|---|
array
display : array
| var |
|---|
array
errorMessages : array
| var |
|---|
array
configuration : array
| var |
|---|
array
defaultStatusId :
configurationTable : array
| var |
|---|
array
gmConfigurationTable : array
| var |
|---|
array