25 lines
499 B
PHP
25 lines
499 B
PHP
<?php
|
|
|
|
class Category extends CategoryCore
|
|
{
|
|
/**
|
|
* Update customer groups associated to the object
|
|
*
|
|
* @param array $list groups
|
|
*/
|
|
public function updateGroup($list)
|
|
{
|
|
$this->cleanGroups();
|
|
if (empty($list)){
|
|
$list = array(
|
|
Configuration::get('PS_UNIDENTIFIED_GROUP'),
|
|
Configuration::get('PS_GUEST_GROUP'),
|
|
Configuration::get('PS_CUSTOMER_GROUP'),
|
|
'4', // pro (antadis 13330)
|
|
'75' // production web (antadis 13330)
|
|
);
|
|
}
|
|
$this->addGroups($list);
|
|
}
|
|
}
|