function views_handler_filter_boolean_operator::construct

3.x views_handler_filter_boolean_operator.inc views_handler_filter_boolean_operator::construct()
2.x views_handler_filter_boolean_operator.inc views_handler_filter_boolean_operator::construct()

Views handlers use a special construct function so that we can 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 so that we can more easily construct them with variable arguments.
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 so that we can more easily construct them with variable arguments.

File

handlers/views_handler_filter_boolean_operator.inc, line 32
Definition of views_handler_filter_boolean_operator.

Class

views_handler_filter_boolean_operator
Simple filter to handle matching of boolean values

Code

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'];
  }
  else if (isset($this->definition['accept_null'])) {
    $this->accept_null = (bool) $this->definition['accept_null'];
  }
  $this->value_options = NULL;
  parent::construct();
}