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.
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.