UrlRequest: add current_full_url property

This commit is contained in:
Benjamin Renard 2023-03-05 17:55:02 +01:00
parent 275f2b6c18
commit cc7004f032
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -7,6 +7,7 @@ namespace EesyPHP;
*
* @author Benjamin Renard <brenard@easter-eggs.com>
* @property-read string|null $current_url;
* @property-read string|null $current_full_url;
* @property-read array|null $handler;
* @property-read bool $authenticated;
* @property-read bool $api_mode;
@ -75,6 +76,8 @@ class UrlRequest {
public function __get($key) {
if ($key == 'current_url')
return $this -> current_url;
if ($key == 'current_full_url')
return Url::add_url_parameters($this -> current_url, $_GET, false);
if ($key == 'handler')
return $this -> handler;
if ($key == 'authenticated')