protected function get_filters_as_booleans() {
        $filters = [
            BLOCK_TIMELINE_FILTER_BY_NONE => false,
            BLOCK_TIMELINE_FILTER_BY_OVERDUE => false,
            BLOCK_TIMELINE_FILTER_BY_7_DAYS => false,
            BLOCK_TIMELINE_FILTER_BY_30_DAYS => false,
            BLOCK_TIMELINE_FILTER_BY_3_MONTHS => false,
            BLOCK_TIMELINE_FILTER_BY_6_MONTHS => false
        ];

        // Set the selected filter to true.
        $filters[$this->filter] = true;

        return $filters;
    }
protected function get_filters_as_booleans() {
        $filters = [
            BLOCK_TIMELINE_FILTER_BY_NONE => false,
            BLOCK_TIMELINE_FILTER_BY_OVERDUE => false,
            BLOCK_TIMELINE_FILTER_BY_7_DAYS => false,
            BLOCK_TIMELINE_FILTER_BY_30_DAYS => false,
            BLOCK_TIMELINE_FILTER_BY_3_MONTHS => false,
            BLOCK_TIMELINE_FILTER_BY_6_MONTHS => false
        ];

        // Set the selected filter to true.
        $filters[$this->filter] = true;

        return $filters;
    }
protected function get_filters_as_booleans ( ) { $ filters = [ BLOCK_TIMELINE_FILTER_BY_NONE => false , BLOCK_TIMELINE_FILTER_BY_OVERDUE => false , BLOCK_TIMELINE_FILTER_BY_7_DAYS => false , BLOCK_TIMELINE_FILTER_BY_30_DAYS => false , BLOCK_TIMELINE_FILTER_BY_3_MONTHS => false , BLOCK_TIMELINE_FILTER_BY_6_MONTHS => false ] ; // Set the selected filter to true. $ filters [ $ this -> filter ] = true ; return $ filters ; }
Test the available filters with the current user preference and return an array with
bool flags corresponding to which is active

@return array
Test the available filters with the current user preference and return an array with bool flags corresponding to which is active