コード例 #1
0
ファイル: Group.php プロジェクト: jicheng17/pengwine
 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;
 }
コード例 #2
0
ファイル: Group.php プロジェクト: vincent/theinvertebrates
 public function add($autodate = true, $nullValues = false)
 {
     return parent::add() && Category::setNewGroupForHome(intval($this->id));
 }