Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 function delete()
 {
     $this->getAdapter()->query('UPDATE ?_email_template
         SET email_template_layout_id = NULL
         WHERE email_template_layout_id=?', $this->pk());
     return parent::delete();
 }
Ejemplo n.º 4
0
 public function delete()
 {
     parent::delete();
     $this->runHooks();
     $this->getDi()->hook->call(Am_Event::ACCESS_AFTER_DELETE, array('access' => $this));
     return $this;
 }
Ejemplo n.º 5
0
 public function delete()
 {
     foreach ($this->loadGetAttachments() as $att) {
         /* @var $att Upload */
         if ($att->prefix == Bootstrap_Helpdesk::ATTACHMENT_UPLOAD_PREFIX) {
             $att->delete();
         }
     }
     parent::delete();
 }
Ejemplo n.º 6
0
 public function delete()
 {
     parent::delete();
     $this->getDi()->hook->call(Am_Event::ADMIN_AFTER_DELETE, array('admin' => $this));
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 public function removeRecord(Am_Record $record)
 {
     $record->delete();
 }
Ejemplo n.º 9
0
 public function delete()
 {
     parent::delete();
     $this->data()->delete();
     return $this;
 }
Ejemplo n.º 10
0
 public function delete()
 {
     foreach ($this->getMessages() as $msg) {
         $msg->delete();
     }
     parent::delete();
 }
Ejemplo n.º 11
0
 function delete()
 {
     parent::delete();
     $this->deleteFromRelatedTable('?_aff_commission_commission_rule');
 }
Ejemplo n.º 12
0
 function delete()
 {
     $this->deleteFromRelatedTable('?_coupon');
     parent::delete();
 }
Ejemplo n.º 13
0
 public function delete()
 {
     parent::delete();
     $this->clearAccess();
 }
Ejemplo n.º 14
0
 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();
 }
Ejemplo n.º 15
0
 function delete()
 {
     $this->disable();
     return parent::delete();
 }
Ejemplo n.º 16
0
 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();
 }