コード例 #1
0
ファイル: ResourceAbstract.php プロジェクト: grlf/eyedock
 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());
 }
コード例 #2
0
ファイル: HelpdeskFaq.php プロジェクト: grlf/eyedock
 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;
 }
コード例 #3
0
ファイル: EmailTemplateLayout.php プロジェクト: grlf/eyedock
 function delete()
 {
     $this->getAdapter()->query('UPDATE ?_email_template
         SET email_template_layout_id = NULL
         WHERE email_template_layout_id=?', $this->pk());
     return parent::delete();
 }
コード例 #4
0
ファイル: Access.php プロジェクト: subashemphasize/test_site
 public function delete()
 {
     parent::delete();
     $this->runHooks();
     $this->getDi()->hook->call(Am_Event::ACCESS_AFTER_DELETE, array('access' => $this));
     return $this;
 }
コード例 #5
0
ファイル: HelpdeskMessage.php プロジェクト: grlf/eyedock
 public function delete()
 {
     foreach ($this->loadGetAttachments() as $att) {
         /* @var $att Upload */
         if ($att->prefix == Bootstrap_Helpdesk::ATTACHMENT_UPLOAD_PREFIX) {
             $att->delete();
         }
     }
     parent::delete();
 }
コード例 #6
0
ファイル: Admin.php プロジェクト: grlf/eyedock
 public function delete()
 {
     parent::delete();
     $this->getDi()->hook->call(Am_Event::ADMIN_AFTER_DELETE, array('admin' => $this));
 }
コード例 #7
0
ファイル: notification.php プロジェクト: alexanderTsig/arabic
 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;
 }
コード例 #8
0
ファイル: Table.php プロジェクト: grlf/eyedock
 public function removeRecord(Am_Record $record)
 {
     $record->delete();
 }
コード例 #9
0
ファイル: WithData.php プロジェクト: alexanderTsig/arabic
 public function delete()
 {
     parent::delete();
     $this->data()->delete();
     return $this;
 }
コード例 #10
0
ファイル: HelpdeskTicket.php プロジェクト: grlf/eyedock
 public function delete()
 {
     foreach ($this->getMessages() as $msg) {
         $msg->delete();
     }
     parent::delete();
 }
コード例 #11
0
ファイル: AffCommission.php プロジェクト: irovast/eyedock
 function delete()
 {
     parent::delete();
     $this->deleteFromRelatedTable('?_aff_commission_commission_rule');
 }
コード例 #12
0
 function delete()
 {
     $this->deleteFromRelatedTable('?_coupon');
     parent::delete();
 }
コード例 #13
0
 public function delete()
 {
     parent::delete();
     $this->clearAccess();
 }
コード例 #14
0
ファイル: Upload.php プロジェクト: subashemphasize/test_site
 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();
 }
コード例 #15
0
 function delete()
 {
     $this->disable();
     return parent::delete();
 }
コード例 #16
0
ファイル: AffPayout.php プロジェクト: irovast/eyedock
 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();
 }