/** * 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); } }