public static function update_all($class_name, $update, $conditions = null, $options = array()) { $sql = 'UPDATE ' . self::get_table_name($class_name) . ' SET ' . SqlBuilder::sanitize_sql_for_assignment($update); SqlBuilder::add_conditions($sql, $conditions); // TODO: do something with options! self::$connection->update($sql); }