public static function get_current_tour($reset = false) {
        global $PAGE;

        static $tour = false;

        if ($tour === false || $reset) {
            $tour = self::get_matching_tours($PAGE->url);
        }

        return $tour;
    }
public static function get_current_tour($reset = false) {
        global $PAGE;

        static $tour = false;

        if ($tour === false || $reset) {
            $tour = self::get_matching_tours($PAGE->url);
        }

        return $tour;
    }
public static function get_current_tour ( $ reset = false ) { global $ PAGE ; static $ tour = false ; if ( $ tour === false || $ reset ) { $ tour = self :: get_matching_tours ( $ PAGE -> url ) ; } return $ tour ; }
Get the first tour matching the current page URL.

@param   bool        $reset      Forcibly update the current tour
@return  tour
Get the first tour matching the current page URL .