public function destroy($id) { if (isset($this->sessions[$id])) { unset($this->sessions[$id]); } Pfw_Cache_Dist::delete($this->cacheKey($id)); $this->db->deleteFromTable($this->db_table, array('session_id = %s', $id)); }
/** * Deletes a set of records in the table that backs this model * * @param array $where sprintf style array * @return integer the number of rows affected */ public function deleteAll($where) { $table = $this->description['table']; return $this->adapter->deleteFromTable($table, $where); }