Properties

$id

$id : 

Type

$name

$name : string

Type

string — Lastname

$reduction

$reduction : string

Type

string — Reduction

$price_display_method

$price_display_method : integer

Type

integer — Price display method (tax inc/tax exc)

$show_prices

$show_prices : boolean

Type

boolean — Show prices

$date_add

$date_add : string

Type

string — Object creation date

$date_upd

$date_upd : string

Type

string — Object last modification date

$definition

$definition : 

Type

$cache_reduction

$cache_reduction : 

Type

$group_price_display_method

$group_price_display_method : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

__construct()

__construct(  $id = null,   $id_lang = null,   $id_shop = null) 

Parameters

$id
$id_lang
$id_shop

getGroups()

getGroups(  $id_lang,   $id_shop = false) 

Parameters

$id_lang
$id_shop

getCustomers()

getCustomers(  $count = false,   $start,   $limit,   $shop_filtering = false) 

Parameters

$count
$start
$limit
$shop_filtering

getReduction()

getReduction(  $id_customer = null) 

Parameters

$id_customer

getReductionByIdGroup()

getReductionByIdGroup(  $id_group) 

Parameters

$id_group

getPriceDisplayMethod()

getPriceDisplayMethod(  $id_group) 

Parameters

$id_group

getDefaultPriceDisplayMethod()

getDefaultPriceDisplayMethod() 

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

update()

update(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

delete()

delete() 

isFeatureActive()

isFeatureActive() : boolean

This method is allow to know if a feature is used or active

Returns

boolean

isCurrentlyUsed()

isCurrentlyUsed(  $table = null,   $has_active_column = false) : boolean

This method is allow to know if there are other groups than the default ones

Parameters

$table
$has_active_column

Returns

boolean

truncateModulesRestrictions()

truncateModulesRestrictions(  $id_group) : boolean

Truncate all modules restrictions for the group

Parameters

$id_group

Returns

boolean —

result

truncateRestrictionsByModule()

truncateRestrictionsByModule(  $id_module) : boolean

Truncate all restrictions by module

Parameters

$id_module

Returns

boolean —

result

addModulesRestrictions()

addModulesRestrictions(  $id_group,   $modules, array  $shops = array(1)) : boolean

Adding restrictions modules to the group with id $id_group

Parameters

$id_group
$modules
array $shops

Returns

boolean

addRestrictionsForModule()

addRestrictionsForModule(  $id_module, array  $shops = array(1)) 

Add restrictions for a new module We authorize every groups to the new module

Parameters

$id_module
array $shops

getCurrent()

getCurrent() : \Group

Return current group object Use context

Returns

\Group —

Group object

searchByName()

searchByName(string  $query) : array

Light back office search for Group

Parameters

string $query

Searched string

Returns

array —

Corresponding groupes