Example #1
0
 /**
  * @return bool
  */
 public function delete()
 {
     if ($this->getStackType() == static::ST_TYPE_GLOBAL_AREA) {
         GlobalArea::deleteByName($this->getStackName());
     }
     if ($this->isNeutralStack()) {
         foreach (Section::getList() as $section) {
             $localized = $this->getLocalizedStack($section);
             if ($localized !== null) {
                 $localized->delete();
             }
         }
     }
     parent::delete();
     $db = Database::connection();
     return $db->Execute('delete from Stacks where cID = ?', array($this->getCollectionID()));
 }
Example #2
0
 public function delete()
 {
     return parent::delete();
 }