class hosting_db_server_handler_filter_db_server_type

Filter handler to allowing filtering by database type.

Hierarchy

Expanded class hierarchy of hosting_db_server_handler_filter_db_server_type

Members

Contains filters are case sensitive

File

db_server/hosting_db_server_handler_filter_db_server_type.inc, line 10
Define a views filter handler to filter by database type.

View source
class hosting_db_server_handler_filter_db_server_type extends views_handler_filter_in_operator {
  function get_value_options() {
    if (!isset($this->value_options)) {
      $this->value_title = t('DB Sever Type');
      $result = db_query("SELECT DISTINCT(db_type) FROM {hosting_db_server}");
      while ($db_server = $result->fetch()) {
        $options[$db_server->db_type] = $db_server->db_type;
      }

      $this->value_options = $options;
    }
  }
}