function views_handler_filter_boolean_operator::construct

Same name in other branches
  1. 7.x-3.x handlers/views_handler_filter_boolean_operator.inc \views_handler_filter_boolean_operator::construct()

Overrides views_object::construct

2 calls to views_handler_filter_boolean_operator::construct()
views_handler_filter_upload_fid::construct in modules/upload/views_handler_filter_upload_fid.inc
Views handlers use a special construct function so that we can more easily construct them with variable arguments.
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.
2 methods override views_handler_filter_boolean_operator::construct()
views_handler_filter_upload_fid::construct in modules/upload/views_handler_filter_upload_fid.inc
Views handlers use a special construct function so that we can more easily construct them with variable arguments.
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 26

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();
}