Permalink
Browse files

Update phpDocumentor class docs for master branch @ e172dd20a1fe230d1…

…62bd918299840aa32e849d2
  • Loading branch information...
Pico CI
Pico CI committed Sep 9, 2018
1 parent a66d6c8 commit 83c082048e590870a6b2a2f772d7b1e4f18a2d85
View
@@ -1,7 +1,7 @@
- id: master
type: branch
title: <code>master</code> branch
last_update: 1534075243
last_update: 1536537582
- id: v1.0.0-beta.1
type: version
title: Pico 1.0.0-beta.1
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-67505103"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-547466473"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-67505103" class="accordion-body collapse in">
<div id="namespace-547466473" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -1009,7 +1009,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-467352728"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1105361494"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-467352728" class="accordion-body collapse in">
<div id="namespace-1105361494" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -2157,7 +2157,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-202499376"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-300932048"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-202499376" class="accordion-body collapse in">
<div id="namespace-300932048" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -3700,7 +3700,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1720273700"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-434491985"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-1720273700" class="accordion-body collapse in">
<div id="namespace-434491985" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -597,7 +597,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-39381211"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-423302667"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-39381211" class="accordion-body collapse in">
<div id="namespace-423302667" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -847,7 +847,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-881286418"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1904632025"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-881286418" class="accordion-body collapse in">
<div id="namespace-1904632025" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -239,7 +239,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1447207611"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-142911654"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-1447207611" class="accordion-body collapse in">
<div id="namespace-142911654" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -243,7 +243,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-804220615"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-172303409"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-804220615" class="accordion-body collapse in">
<div id="namespace-172303409" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -243,7 +243,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-384456794"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-104086095"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-384456794" class="accordion-body collapse in">
<div id="namespace-104086095" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -250,7 +250,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-596000469"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-181201148"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-596000469" class="accordion-body collapse in">
<div id="namespace-181201148" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -254,7 +254,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-430489240"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-191551463"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-430489240" class="accordion-body collapse in">
<div id="namespace-191551463" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -250,7 +250,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -136,10 +136,10 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1089824753"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-234028682"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-1089824753" class="accordion-body collapse in">
<div id="namespace-234028682" class="accordion-body collapse in">
<div class="accordion-inner">
@@ -250,7 +250,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 12th, 2018 at 12:00.
on September 9th, 2018 at 23:59.
</section>
</section>
</section>
@@ -428,7 +428,9 @@ class Pico
} else {
$this->triggerEvent('on404ContentLoading');
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
$serverProtocol = !empty($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
header($serverProtocol . ' 404 Not Found');
$this->rawContent = $this->load404Content($this->requestFile);
$this->is404Content = true;
@@ -1075,7 +1077,9 @@ class Pico
// use REQUEST_URI (requires URL rewriting); e.g. /pico/sub/page
if (($this->requestUrl === null) && $this->isUrlRewritingEnabled()) {
$basePath = dirname($_SERVER['SCRIPT_NAME']);
$scriptName = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : '/index.php';
$basePath = dirname($scriptName);
$basePath = !in_array($basePath, array('.', '/', '\\'), true) ? $basePath . '/' : '/';
$basePathLength = strlen($basePath);
@@ -1085,7 +1089,7 @@ class Pico
if ($requestUri && (($queryStringPos = strpos($requestUri, '?')) !== false)) {
$requestUri = substr($requestUri, 0, $queryStringPos);
}
if ($requestUri && ($requestUri !== basename($_SERVER['SCRIPT_NAME']))) {
if ($requestUri && ($requestUri !== basename($scriptName))) {
$this->requestUrl = rtrim(rawurldecode($requestUri), '/');
}
}
@@ -2028,25 +2032,46 @@ class Pico
return $baseUrl;
}
$host = 'localhost';
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$host = $_SERVER['HTTP_X_FORWARDED_HOST'];
} elseif (!empty($_SERVER['HTTP_HOST'])) {
$host = $_SERVER['HTTP_HOST'];
} elseif (!empty($_SERVER['SERVER_NAME'])) {
$host = $_SERVER['SERVER_NAME'];
}
$port = 80;
if (!empty($_SERVER['HTTP_X_FORWARDED_PORT'])) {
$port = (int) $_SERVER['HTTP_X_FORWARDED_PORT'];
} elseif (!empty($_SERVER['SERVER_PORT'])) {
$port = (int) $_SERVER['SERVER_PORT'];
}
$hostPortPosition = ($host[0] === '[') ? strpos($host, ':', strrpos($host, ']')) : strrpos($host, ':');
if ($hostPortPosition !== false) {
$host = substr($host, 0, $hostPortPosition);
$port = (int) substr($host, $hostPortPosition + 1);
}
$protocol = 'http';
if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
$secureProxyHeader = strtolower(current(explode(',', $_SERVER['HTTP_X_FORWARDED_PROTO'])));
$protocol = in_array($secureProxyHeader, array('https', 'on', 'ssl', '1'), true) ? 'https' : 'http';
} elseif (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] !== 'off')) {
$protocol = 'https';
} elseif ($_SERVER['SERVER_PORT'] == 443) {
} elseif ($port === 443) {
$protocol = 'https';
}
$host = $_SERVER['SERVER_NAME'];
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$host = $_SERVER['HTTP_X_FORWARDED_HOST'];
} elseif (!empty($_SERVER['HTTP_HOST'])) {
$host = $_SERVER['HTTP_HOST'];
}
$basePath = isset($_SERVER['SCRIPT_NAME']) ? dirname($_SERVER['SCRIPT_NAME']) : '/';
$basePath = !in_array($basePath, array('.', '/', '\\'), true) ? $basePath . '/' : '/';
$this->config['base_url'] = $protocol . "://" . $host . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\') . '/';
if ((($protocol === 'http') && ($port !== 80)) || (($protocol === 'https') && ($port !== 443))) {
$host = $host . ':' . $port;
}
$this->config['base_url'] = $protocol . "://" . $host . $basePath;
return $this->config['base_url'];
}
@@ -2171,14 +2196,18 @@ class Pico
return $themeUrl;
}
$basePath = dirname($_SERVER['SCRIPT_FILENAME']) . '/';
$basePathLength = strlen($basePath);
if (substr($this->getThemesDir(), 0, $basePathLength) === $basePath) {
$this->config['theme_url'] = $this->getBaseUrl() . substr($this->getThemesDir(), $basePathLength);
} else {
$this->config['theme_url'] = $this->getBaseUrl() . basename($this->getThemesDir()) . '/';
if (isset($_SERVER['SCRIPT_FILENAME']) && ($_SERVER['SCRIPT_FILENAME'] !== 'index.php')) {
$basePath = dirname($_SERVER['SCRIPT_FILENAME']);
$basePath = !in_array($basePath, array('.', '/', '\\'), true) ? $basePath . '/' : '/';
$basePathLength = strlen($basePath);
if (substr($this->getThemesDir(), 0, $basePathLength) === $basePath) {
$this->config['theme_url'] = $this->getBaseUrl() . substr($this->getThemesDir(), $basePathLength);
return $this->config['theme_url'];
}
}
$this->config['theme_url'] = $this->getBaseUrl() . basename($this->getThemesDir()) . '/';
return $this->config['theme_url'];
}
Oops, something went wrong.

0 comments on commit 83c0820

Please sign in to comment.