1
0

ProgramsList+ProgramsView+ProgramsDownload

This commit is contained in:
2020-01-16 11:34:01 +01:00
parent cdec6903f6
commit e1851fce69
9 changed files with 186 additions and 208 deletions

View File

@@ -18,6 +18,12 @@ class PageFrameOptions
/** @var string */
public $force_404_message = '';
/** @var bool */
public $force_redirect = false;
/** @var string */
public $force_redirect_url = '';
/** @var string */
public $frame = 'default_frame.php';
@@ -64,4 +70,10 @@ class PageFrameOptions
$this->force_404 = true;
$this->force_404_message = $err;
}
public function setForcedRedirect(string $url)
{
$this->force_redirect = true;
$this->force_redirect_url = $url;
}
}