/** * @param PURGE_OPTIONS $options * @access private */ protected function _purge($options) { /* Remove history items for self */ $history_item = $this->handler_for(Handler_history_item); $this->assert(!empty($history_item->object_type), 'object_type cannot be empty.', '_purge', 'AUDITABLE'); $this->db->logged_query("DELETE LOW_PRIORITY FROM {$this->app->table_names->history_items} WHERE object_id = {$this->id} AND object_type = '{$history_item->object_type}'"); parent::_purge($options); }
/** * @param PURGE_OPTIONS $options * @access private */ protected function _purge($options) { parent::_purge($options); $tname = $this->secondary_table_name(); $this->db->logged_query("DELETE FROM {$tname} WHERE entry_to_branch_id = {$this->entry_to_branch_id}"); }
/** * @param PURGE_OPTIONS $options * @access private */ protected function _purge($options) { if ($this->email) { $this->synchronize(); } $this->db->logged_query("DELETE LOW_PRIORITY FROM {$this->app->table_names->subscriptions} WHERE subscriber_id = {$this->id}"); parent::_purge($options); }