public function __construct($id = false, $table = null, $ds = null)
{
if (!$this->operators) {
$this->operators = array("=" => __('is'), "!" => __('is not'), "o" => __('open'), "c" => __('closed'), "!*" => __('none'), "*" => __('all'), ">=" => '>=', "<=" => '<=', "<t+" => __('in less than'), ">t+" => __('in more than'), "t+" => __('in'), "t" => __('today'), "w" => __('this week'), ">t-" => __('less than days ago'), "<t-" => __('more than days ago'), "t-" => __('days ago'), "~" => __('contains'), "!~" => __("doesn't contain"));
}
if (!$this->operators_by_filter_type) {
$this->operators_by_filter_type = array('list' => array("=", "!"), 'list_status' => array("o", "=", "!", "c", "*"), 'list_optional' => array("=", "!", "!*", "*"), 'list_subprojects' => array("*", "!*", "="), 'date' => array("<t+", ">t+", "t+", "t", "w", ">t-", "<t-", "t-"), 'date_past' => array(">t-", "<t-", "t-", "t", "w"), 'string' => array("=", "~", "!", "!~"), 'text' => array("~", "!~"), 'integer' => array("=", ">=", "<=", "!*", "*"));
}
if (!$this->default_show_filters) {
$this->default_show_filters = array('status_id' => array('operator' => "o", 'values' => array("")));
}
parent::__construct($id, $table, $ds);
}