Class CustomerGroupReader

Class CustomerGroupReader

CustomerGroupReader implements CustomerGroupReaderInterface

Methods summary

public __construct( CI_DB_query_builder $queryBuilder )
public getAll( void ) : array

Returns all customer group entities data as array.

public getById( IntType $id ) : array

Returns customer group entity data by the given id.

protected _countMembers( $int ) : integer

Returns customer group counted members by id.

protected _getDefaultValue( void ) : array

Gets the default value from configuration table.protected

protected _getSettingsData( array $customerGroupData ) : array

Gets the Settings data from data array.

protected _getConfigurationsData( array $customerGroupData ) : array

Gets the Configuration data from data array.

protected _getAllGroups( void ) : array

Returns an array of all customer groups from customer_status table.

Properties summary

protected $queryBuilder : CI_DB_query_builder