Exemplo n.º 1
0
 public function add($autodate = true, $null_values = false)
 {
     if (parent::add($autodate, $null_values)) {
         Category::setNewGroupForHome((int) $this->id);
         Carrier::assignGroupToAllCarriers((int) $this->id);
         // Set cache of feature detachable to true
         Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', '1');
         return true;
     }
     return false;
 }