public function matches_all_filters(\context $context) {
        $filters = helper::get_all_filters();

        // All filters must match.
        // If any one filter fails to match, we return false.
        foreach ($filters as $filterclass) {
            if (!$filterclass::filter_matches($this, $context)) {
                return false;
            }
        }

        return true;
    }
public function matches_all_filters(\context $context) {
        $filters = helper::get_all_filters();

        // All filters must match.
        // If any one filter fails to match, we return false.
        foreach ($filters as $filterclass) {
            if (!$filterclass::filter_matches($this, $context)) {
                return false;
            }
        }

        return true;
    }
public function matches_all_filters ( \ context $ context ) { $ filters = helper :: get_all_filters ( ) ; // All filters must match. // If any one filter fails to match, we return false. foreach ( $ filters as $ filterclass ) { if ( ! $ filterclass :: filter_matches ( $ this , $ context ) ) { return false ; } } return true ; }
Check whether this tour matches all filters.

@param   context     $context    The context to check
@return  bool
Check whether this tour matches all filters .