Exemple #1
0
 public function delete()
 {
     if ($this->show->itemID) {
         $Cat = new Catalog();
         $prop = new Catalog_Property();
         if ($Cat->isEmptyCategory($this->show->itemID) && $prop->isEmptyProperty($this->show->itemID)) {
             $oCategory = new Catalog_Category();
             $oCategory->delete($this->show->itemID);
         }
     }
     redirect(BASE_PATH . 'admin/catalog/category');
 }