Displays the general information about a backup file with unknown format

@param moodle_url $nextstageurl URL to send user to
@return string HTML code to display
556366
public function backup_details_unknown(moodle_url $nextstageurl) {

        $html  = html_writer::start_div('unknownformat');
        $html .= $this->output->heading(get_string('errorinvalidformat', 'backup'), 2);
        $html .= $this->output->notification(get_string('errorinvalidformatinfo', 'backup'), 'notifyproblem');
        $html .= $this->output->single_button($nextstageurl, get_string('continue'), 'post');
        $html .= html_writer::end_div();

        return $html;
    }
1324464
private function overviewUrl(string $url, string $id, string $class): string
    {
        $output = '<li>';
        $output .= '<a class="dropdown-item';
        $output = !empty($class) ? $output . ' ' . $class . '"' : $output . '"';
        if (!empty($id)) $output .= ' id="' . $id . '"';
        $output .= ' href="' . $url . '">Overview</a>';
        $output .= '</li>';
        return $output;
    }
1031248
public function get_extension(moodle_url $url) {
        // Note: Does not use core_text (. is UTF8-safe).
        $filename = self::get_filename($url);
        $dot = strrpos($filename, '.');
        if ($dot === false) {
            return '';
        } else {
            return strtolower(substr($filename, $dot + 1));
        }
    }
35769
public function display(core_backup_renderer $renderer) {

        // Get the resulting stored_file record.
        $type = $this->get_ui()->get_controller()->get_type();
        $courseid = $this->get_ui()->get_controller()->get_courseid();
        switch ($type) {
            case 'activity':
                $cmid = $this->get_ui()->get_controller()->get_id();
                $cm = get_coursemodule_from_id(null, $cmid, $courseid);
                $modcontext = context_module::instance($cm->id);
                $restorerul = new moodle_url('/backup/restorefile.php', array('contextid' => $modcontext->id));
                break;
            case 'course':
            default:
                $coursecontext = context_course::instance($courseid);
                $restorerul = new moodle_url('/backup/restorefile.php', array('contextid' => $coursecontext->id));
        }

        $output = '';
        $output .= $renderer->box_start();
        if (!empty($this->results['include_file_references_to_external_content'])) {
            $output .= $renderer->notification(get_string('filereferencesincluded', 'backup'), 'notifyproblem');
        }
        if (!empty($this->results['missing_files_in_pool'])) {
            $output .= $renderer->notification(get_string('missingfilesinpool', 'backup'), 'notifyproblem');
        }
        $output .= $renderer->notification(get_string('executionsuccess', 'backup'), 'notifysuccess');
        $output .= $renderer->continue_button($restorerul);
        $output .= $renderer->box_end();

        return $output;
    }
743029
public function backup_details_nonstandard($nextstageurl, array $details) {

        $html  = html_writer::start_tag('div', array('class' => 'backup-restore nonstandardformat'));
        $html .= html_writer::start_tag('div', array('class' => 'backup-section'));
        $html .= $this->output->heading(get_string('backupdetails', 'backup'), 2, 'header');
        $html .= $this->output->box(get_string('backupdetailsnonstandardinfo', 'backup'), 'noticebox');
        $html .= $this->backup_detail_pair(
            get_string('backupformat', 'backup'),
            get_string('backupformat'.$details['format'], 'backup'));
        $html .= $this->backup_detail_pair(
            get_string('backuptype', 'backup'),
            get_string('backuptype'.$details['type'], 'backup'));
        $html .= html_writer::end_tag('div');
        $html .= $this->output->single_button($nextstageurl, get_string('continue'), 'post');
        $html .= html_writer::end_tag('div');

        return $html;
    }
408880
protected function _getAssetFile($url)
    {
        $parts = explode('/', ltrim($url, '/'));
        $pluginPart = [];
        for ($i = 0; $i < 2; $i++) {
            if (!isset($parts[$i])) {
                break;
            }
            $pluginPart[] = Inflector::camelize($parts[$i]);
            $plugin = implode('/', $pluginPart);
            if ($plugin && Plugin::isLoaded($plugin)) {
                $parts = array_slice($parts, $i + 1);
                $fileFragment = implode(DIRECTORY_SEPARATOR, $parts);
                $pluginWebroot = Plugin::path($plugin) . 'webroot' . DIRECTORY_SEPARATOR;

                return $pluginWebroot . $fileFragment;
            }
        }
    }
101119
protected function _getAssetFile($url) {
		$parts = explode('/', $url);
		if ($parts[0] === 'theme') {
			$themeName = $parts[1];
			unset($parts[0], $parts[1]);
			$fileFragment = implode(DS, $parts);
			$path = App::themePath($themeName) . 'webroot' . DS;
			return $path . $fileFragment;
		}

		$plugin = Inflector::camelize($parts[0]);
		if ($plugin && CakePlugin::loaded($plugin)) {
			unset($parts[0]);
			$fileFragment = implode(DS, $parts);
			$pluginWebroot = CakePlugin::path($plugin) . 'webroot' . DS;
			return $pluginWebroot . $fileFragment;
		}

		$webroot = APP . 'webroot' . DS;
		$fileFragment = implode(DS, $parts);
		if (file_exists($webroot . $parts[0])) {
			return $webroot . $fileFragment;
		}

		$router = Router::parse($url);
		if (strpos($router['controller'], '.') !== false || strpos($router['action'], '.') !== false) {
			return 'webroot' . DS . $fileFragment;
		}
	}
1273096
protected function formatUrl($unformedUrl)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $params = explode('?', $unformedUrl);
        $pageParams = isset($params[1]) ? $params[1] : null;
        $params = explode('/', $params[0]);
        $className = $params[0];

        $header = ($className) ? "cl=$className&" : '';  // adding view name
        $header .= ($pageParams) ? "$pageParams&" : '';   // adding page params
        $header .= $this->getSession()->sid();            // adding session Id

        $url = $myConfig->getCurrentShopUrl($this->isAdmin());

        $url = "{$url}index.php?{$header}";

        $url = \OxidEsales\Eshop\Core\Registry::getUtilsUrl()->processUrl($url);

        $seoIsActive = \OxidEsales\Eshop\Core\Registry::getUtils()->seoIsActive();
        if ($seoIsActive && $seoUrl = \OxidEsales\Eshop\Core\Registry::getSeoEncoder()->getStaticUrl($url)) {
            $url = $seoUrl;
        }

        return $url;
    }
1074580
public function getNextPageUrl($uriType = Router::ABSOLUTE_PATH)
    {
        $currentPage = $this->getCurrentPage();
        if ($currentPage < $this->getPagesCount()) {
            return $this->getPageUrl($currentPage+1, $uriType);
        }

        return null;
    }
838852
private function getNextUrl(PaginatorInterface $paginator) : ?string
    {
        $page = $paginator->getCurrentPage();

        if (++$page <= $paginator->getAvailablePages()) {
            return $this->generateUrl(
                $this->getRoute(),
                $this->getMergedParams(['page' => $page])
            );
        }

        return null;
    }
490834
public function show($url)
    {
        $blog = $this->repository->findBlogsByURL($url);

        if (empty($blog)) {
            abort(404);
        }

        return view('cms-frontend::blog.'.$blog->template)->with('blog', $blog);
    }
1297849
public function remove_success(moodle_url $url) {
        $html = $this->output->notification(get_string('communityremoved', 'hub'),
                    'notifysuccess');
        $continuebutton = new single_button($url,
                        get_string('continue', 'block_community'));
        $html .= html_writer::tag('div', $this->output->render($continuebutton),
                array('class' => 'continuebutton'));
        return $html;
    }
188504
protected function everything_download_options(moodle_url $reporturl) {
        global $OUTPUT;
        return $OUTPUT->download_dataformat_selector(get_string('downloadeverything', 'quiz_statistics'),
            $reporturl->out_omit_querystring(), 'download', $reporturl->params() + array('everything' => 1));
    }
1369721
public function themeUrl($url = null)
    {
        $themeDir = $this->getTheme()->getDirName();

        if (is_array($url)) {
            $_url = Url::to(CombineAssets::combine($url, themes_path().'/'.$themeDir));
        }
        else {
            $_url = Config::get('cms.themesPath', '/themes').'/'.$themeDir;
            if ($url !== null) {
                $_url .= '/'.$url;
            }
            $_url = Url::asset($_url);
        }

        return $_url;
    }
609004
public function getNextUrl() {
        $lastChunk = ceil($this->_max / $this->_options['pageSize']);
        if ($this->_chunk == $lastChunk) {
            return $this->_options['cycle'] ? $this->createStateUrl(1) : false;
        }
        return $this->createStateUrl($this->_chunk+1);
    }
120830
def _next_url_info(self) -> URLInfo:
        '''
        '''
        if not self._web_client_session:
            return self._item_session.url_record.url_info

        return self._web_client_session.next_request().url_info
293684
protected static function file_get_contents($url, $timeout = 10)
    {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        if (substr($url, 0, 8) === 'https://') {
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        }
        curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $content = curl_exec($ch);
        curl_close($ch);
        if (false === $content) {
            throw new \RuntimeException('\\PhpSimpleCas\\PhpCas::file_get_contents: curl_exec failed. CURL info: ' . curl_getinfo($ch));
        }
        return $content;
    }