/** * @param string $table * @param string|array|null $where * @return int */ public static function delete($table, $where = null) { $client = self::getClient(); $query = new CM_Db_Query_Delete($client, $table, $where); return $query->execute()->getAffectedRows(); }
/** * @param string $key */ public function delete($key) { $query = new CM_Db_Query_Delete($this->_getDatabaseClient(), 'cm_option', array('key' => $key)); $query->execute(); $this->_clearCache(); }