UrlRequest: add current_full_url property
This commit is contained in:
parent
275f2b6c18
commit
cc7004f032
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ namespace EesyPHP;
|
||||||
*
|
*
|
||||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||||
* @property-read string|null $current_url;
|
* @property-read string|null $current_url;
|
||||||
|
* @property-read string|null $current_full_url;
|
||||||
* @property-read array|null $handler;
|
* @property-read array|null $handler;
|
||||||
* @property-read bool $authenticated;
|
* @property-read bool $authenticated;
|
||||||
* @property-read bool $api_mode;
|
* @property-read bool $api_mode;
|
||||||
|
@ -75,6 +76,8 @@ class UrlRequest {
|
||||||
public function __get($key) {
|
public function __get($key) {
|
||||||
if ($key == 'current_url')
|
if ($key == 'current_url')
|
||||||
return $this -> current_url;
|
return $this -> current_url;
|
||||||
|
if ($key == 'current_full_url')
|
||||||
|
return Url::add_url_parameters($this -> current_url, $_GET, false);
|
||||||
if ($key == 'handler')
|
if ($key == 'handler')
|
||||||
return $this -> handler;
|
return $this -> handler;
|
||||||
if ($key == 'authenticated')
|
if ($key == 'authenticated')
|
||||||
|
|
Loading…
Reference in a new issue