Class CustomerConfigurationProvider
package |
Default |
---|
__construct(\CI_DB_query_builder $db, \LanguageTextManager $languageTextManager)
\CI_DB_query_builder
Database access, required to fetch configurations.
\LanguageTextManager
Text manager to fetch error messages.
checkIfFieldExists(\StringType $configField, array $fields) : $this|\CustomerConfigurationProvider
Throws |
|
---|
array
Allowed configuration fields.
$this|\CustomerConfigurationProvider
Same instance for chained method calls.
configuration(\StringType $configField) : boolean
Allowed fields are 'acceptPrivacy', 'optionalNames', 'splitStreetInformation'.
boolean
True if configuration is enabled and false otherwise.
defaultStatusId(\StringType $configField) : integer
Allowed fields are 'customer' and 'guest'.
integer
Default status id of given config field.
display(\StringType $configField) : boolean
\StringType
Determines for which configuration field the display check should be performed.
boolean
True 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'.
\StringType
Determines for which configuration field the error message should be provided.
string
Error 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'.
\StringType
Determines for which configuration field the minimum length should be provided.
integer
Minimum 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