\ShopGroupCore

Summary

Methods
Properties
Constants
getFields()
getShopGroups()
getTotalShopGroup()
haveShops()
getTotalShops()
getShopsFromGroup()
getIdByName()
hasDependency()
shopNameExists()
$name
$active
$share_customer
$share_stock
$share_order
$deleted
$definition
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : 

Type

$active

$active : 

Type

$share_customer

$share_customer : 

Type

$share_stock

$share_stock : 

Type

$share_order

$share_order : 

Type

$deleted

$deleted : 

Type

$definition

$definition : 

Type

Methods

getFields()

getFields() : array

Returns

array

getShopGroups()

getShopGroups(  $active = true) 

Parameters

$active

getTotalShopGroup()

getTotalShopGroup(  $active = true) : integer

Parameters

$active

Returns

integer —

Total of shop groups

haveShops()

haveShops() 

getTotalShops()

getTotalShops() 

getShopsFromGroup()

getShopsFromGroup(  $id_group) 

Parameters

$id_group

getIdByName()

getIdByName(string  $name) : integer

Return a group shop ID from group shop name

Parameters

string $name

Returns

integer

hasDependency()

hasDependency(integer  $id_shop_group, string  $check = 'all') : boolean

Detect dependency with customer or orders

Parameters

integer $id_shop_group
string $check

all|customer|order

Returns

boolean

shopNameExists()

shopNameExists(  $name,   $id_shop = false) 

Parameters

$name
$id_shop