class biblio_handler_filter_biblio_type in Bibliography Module 6
Same name and namespace in other branches
- 6.2 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type
- 7 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type
- 7.2 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type
Hierarchy
- class \biblio_handler_filter_biblio_type extends \views_handler_filter_in_operator
Expanded class hierarchy of biblio_handler_filter_biblio_type
1 string reference to 'biblio_handler_filter_biblio_type'
- biblio_views_data in ./
biblio.views.inc - Implementation of hook_views_data().
File
- views/
biblio_handler_filter_biblio_type.inc, line 2
View source
class biblio_handler_filter_biblio_type extends views_handler_filter_in_operator {
function construct() {
parent::construct();
$this->definition['numeric'] = true;
}
function get_value_options() {
if (!isset($this->value_options)) {
$result = db_query("SELECT name, tid\n FROM {biblio_types} t\n WHERE t.tid > 0 AND t.visible=1\n ORDER by name");
$this->value_title = t('Publication type');
$options = array();
while ($row = db_fetch_object($result)) {
$options[$row->tid] = $row->name;
}
$this->value_options = $options;
}
}
}