public function delete($id, Application_Model_Abstract $link = null) { $id = (int) $id; if (is_null($link)) { $link = $this->find($id); } $this->getReOrderer()->reorderAllBelowModel($link, array("{$this->getDataPropertyName('linkCategoryId')} = ?" => $link->linkCategoryId)); parent::delete($id); }
public function delete($id, Application_Model_Abstract $comeniusEventImage = null) { $id = (int) $id; if (is_null($comeniusEventImage)) { $comeniusEventImage = $this->find($id); } $this->getReOrderer()->reorderAllBelowModel($comeniusEventImage, array("{$this->getDataPropertyName('comeniusEventId')} = ?" => $comeniusEventImage->comeniusEventId)); parent::delete($id); }
public function delete($id, Application_Model_Abstract $enquiryType = null) { $id = (int) $id; $reorderType = (int) $reorderType; if (is_null($enquiryType)) { $enquiryType = $this->find($id); } $this->getReOrderer()->reorderAllBelowModel($enquiryType); parent::delete($id); }
public function delete($id, Application_Model_Abstract $menuItem = null) { $id = (int) $id; if (is_null($menuItem)) { $menuItem = $this->find($id); } $menuItem->menuItems = $this->fetchAllByParentId($menuItem->id); foreach ($menuItem->menuItems as $childItem) { $this->delete($childItem->id, $childItem); } $this->getReOrderer()->reorderAllBelowModel($menuItem, array("{$this->getDataPropertyName('menuId')} = ?" => $menuItem->menuId, "{$this->getDataPropertyName('parentId')} = ?" => $menuItem->parentId)); parent::delete($id); }