API
This commit is contained in:
@@ -18,6 +18,16 @@ class MikescherGitGraph
|
||||
return __DIR__ . '/../../dynamic/egg/cache_fullrenderer.html';
|
||||
}
|
||||
|
||||
public function update()
|
||||
{
|
||||
return $this->extgitgraph->update();
|
||||
}
|
||||
|
||||
public function updateCache()
|
||||
{
|
||||
return $this->extgitgraph->updateCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
|
||||
@@ -76,4 +76,11 @@ class PageFrameOptions
|
||||
$this->force_redirect = true;
|
||||
$this->force_redirect_url = $url;
|
||||
}
|
||||
|
||||
public function forceResult(int $statuscode, string $content)
|
||||
{
|
||||
$this->statuscode = $statuscode;
|
||||
ob_clean();
|
||||
echo $content;
|
||||
}
|
||||
}
|
||||
@@ -88,6 +88,8 @@ class RuleEngine
|
||||
}
|
||||
if (!$match) return null;
|
||||
|
||||
$route->urlParameter = $urlparams;
|
||||
|
||||
$ctrlOpt = $rule['options'];
|
||||
|
||||
if (in_array('disabled', $ctrlOpt)) return null;
|
||||
|
||||
@@ -16,12 +16,20 @@ class URLRoute
|
||||
/** @var int */
|
||||
public $needsAdminLogin;
|
||||
|
||||
/** @var array */
|
||||
public $urlParameter;
|
||||
|
||||
/** @var bool */
|
||||
public $isAPI;
|
||||
|
||||
public function __construct(string $target, string $url)
|
||||
{
|
||||
$this->targetpath = __DIR__ . '/../pages/' . $target;
|
||||
$this->targetpath = (__DIR__ . '/../pages/' . $target);
|
||||
$this->full_url = $url;
|
||||
$this->parameter = [];
|
||||
$this->needsAdminLogin = false;
|
||||
$this->urlParameter = [];
|
||||
$this->isAPI = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@ class Website
|
||||
public $config;
|
||||
|
||||
/** @var bool|null */
|
||||
public $isLoggedIn = null;
|
||||
private $isLoggedIn = null;
|
||||
|
||||
/** @var Modules */
|
||||
public $modules;
|
||||
|
||||
Reference in New Issue
Block a user