public function delete() { parent::delete(); $this->clearAccess(); $this->getAdapter()->query("DELETE FROM ?_resource_access_sort\n WHERE resource_id=?d AND resource_type=?", $this->pk(), $this->getAccessType()); $this->getAdapter()->query("DELETE FROM ?_resource_resource_category\n WHERE resource_id=?d AND resource_type=?", $this->pk(), $this->getAccessType()); }
public function delete() { $ret = parent::delete(); $table_name = $this->getTable()->getName(); $this->getAdapter()->query("UPDATE {$table_name}\n SET sort_order=sort_order-1\n WHERE sort_order>?", $this->sort_order); return $ret; }
function delete() { $this->getAdapter()->query('UPDATE ?_email_template SET email_template_layout_id = NULL WHERE email_template_layout_id=?', $this->pk()); return parent::delete(); }
public function delete() { parent::delete(); $this->runHooks(); $this->getDi()->hook->call(Am_Event::ACCESS_AFTER_DELETE, array('access' => $this)); return $this; }
public function delete() { foreach ($this->loadGetAttachments() as $att) { /* @var $att Upload */ if ($att->prefix == Bootstrap_Helpdesk::ATTACHMENT_UPLOAD_PREFIX) { $att->delete(); } } parent::delete(); }
public function delete() { parent::delete(); $this->getDi()->hook->call(Am_Event::ADMIN_AFTER_DELETE, array('admin' => $this)); }
public function delete() { $ret = parent::delete(); $this->deleteFromRelatedTable('?_notification_access')->deleteFromRelatedTable('?_notification_click'); $table_name = $this->getTable()->getName(); $this->getAdapter()->query("UPDATE {$table_name}\n SET sort_order=sort_order-1\n WHERE sort_order>?", $this->sort_order); return $ret; }
public function removeRecord(Am_Record $record) { $record->delete(); }
public function delete() { parent::delete(); $this->data()->delete(); return $this; }
public function delete() { foreach ($this->getMessages() as $msg) { $msg->delete(); } parent::delete(); }
function delete() { parent::delete(); $this->deleteFromRelatedTable('?_aff_commission_commission_rule'); }
function delete() { $this->deleteFromRelatedTable('?_coupon'); parent::delete(); }
public function delete() { parent::delete(); $this->clearAccess(); }
function delete() { $fullPath = $this->getFullPath(); if (file_exists($fullPath)) { if (!unlink($fullPath)) { throw new Am_Exception_InternalError("Could not delete [{$fullPath}], and corresponding database records also is not deleted"); } } parent::delete(); }
function delete() { $this->disable(); return parent::delete(); }
function delete() { $this->getTable()->getAdapter()->query("\n UPDATE ?_aff_commission SET payout_detail_id = NULL\n WHERE\n payout_detail_id IN (\n SELECT payout_detail_id\n FROM ?_aff_payout_detail\n WHERE payout_id=?)\n ", $this->pk()); $this->deleteFromRelatedTable('?_aff_payout_detail'); return parent::delete(); }