Esempio n. 1
0
 public function delete()
 {
     if ($this->getObject()->getId()) {
         $this->getObject()->delete();
     }
     return parent::delete();
 }
Esempio n. 2
0
 public function delete()
 {
     if (!$this->getId()) {
         return $this;
     }
     $this->getRootCategory()->delete();
     return parent::delete();
 }
Esempio n. 3
0
 public function delete()
 {
     $category_option = new Application_Model_Option_Value();
     $option_values = $category_option->findAll(array('folder_category_id' => $this->getId()));
     if ($option_values->count()) {
         foreach ($option_values as $option_value) {
             $option_value->setFolderId(null)->setFolderCategoryId(null)->setFolderCategoryPosition(null)->save();
         }
     }
     foreach ($this->getChildren() as $child) {
         $child->delete();
     }
     return parent::delete();
 }
Esempio n. 4
0
 public function delete()
 {
     $this->getTable()->deleteByParentId($this->getId());
     parent::delete();
     return $this;
 }
Esempio n. 5
0
 public function delete()
 {
     $message_id = $this->getId();
     parent::delete();
     $this->getTable()->deleteLog($message_id);
 }