Class CustomerConfigurationProvider

Class CustomerConfigurationProvider

Methods summary

public __construct( CI_DB_query_builder $db, LanguageTextManager $languageTextManager )

CustomerConfigurationProvider constructor.

public minLength( StringType $configField ) : integer

Minimum length of provided configuration field. Allowed fields are 'firstName', 'lastName', 'dateOfBirth', 'dob', 'email', 'street', 'houseNumber', 'company', 'postcode', 'city', 'countryZone', 'suburb', 'state', 'telephone', 'password'.

public display( StringType $configField ) : boolean

Should the provided configuration field be displayed? Allowed fields are 'gender', 'dob', 'dateOfBirth', 'company', 'state', 'telephone', 'fax', 'suburb'.

public errorMessage( StringType $configField ) : string

Error message for provided configuration field. 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'.

public configuration( StringType $configField ) : boolean

Checks if given configuration is enabled. Allowed fields are 'acceptPrivacy', 'optionalNames', 'splitStreetInformation'.

public defaultStatusId( StringType $configField ) : integer

Provides the default status id for customers and guests. Allowed fields are 'customer' and 'guest'.

protected checkIfFieldExists( StringType $configField, array $fields ) :

Checks if given configuration field exists.