/** * purges (removes from tabel) all contexts of a given tag * * @param string $_tagId * @return void */ public function purgeContexts($_tagId) { if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) { Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' removing contexts for tag ' . $_tagId); } $this->_db->delete(SQL_TABLE_PREFIX . 'tags_context', array($this->_db->quoteIdentifier('tag_id') . ' = ?' => $_tagId)); }
/** * Deletes table rows based on a WHERE clause. * * @param mixed $table The table to update. * @param array $bind Column-value pairs. * @param mixed $where UPDATE WHERE clause(s). * @return int The number of affected rows. */ public function delete($table = null, $where = '') { if (is_null($table) && !strlen($where)) { return new Harmoni_Db_Delete($this); } else { return parent::delete($table, $where); } }