public function views_handler_filter_boolean_operator::construct in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_filter_boolean_operator.inc \views_handler_filter_boolean_operator::construct()
- 6.2 handlers/views_handler_filter_boolean_operator.inc \views_handler_filter_boolean_operator::construct()
Views handlers use a special construct function.
Allows it to more easily construct them with variable arguments.
Overrides views_object::construct
1 call to views_handler_filter_boolean_operator::construct()
- views_handler_filter_user_current::construct in modules/
user/ views_handler_filter_user_current.inc - Views handlers use a special construct function.
1 method overrides views_handler_filter_boolean_operator::construct()
- views_handler_filter_user_current::construct in modules/
user/ views_handler_filter_user_current.inc - Views handlers use a special construct function.
File
- handlers/
views_handler_filter_boolean_operator.inc, line 44 - Definition of views_handler_filter_boolean_operator.
Class
- views_handler_filter_boolean_operator
- Simple filter to handle matching of boolean values
Code
public function construct() {
$this->value_value = t('True');
if (isset($this->definition['label'])) {
$this->value_value = $this->definition['label'];
}
if (isset($this->definition['accept null'])) {
$this->accept_null = (bool) $this->definition['accept null'];
}
elseif (isset($this->definition['accept_null'])) {
$this->accept_null = (bool) $this->definition['accept_null'];
}
$this->value_options = NULL;
parent::construct();
}