UrlRequest: add current_absolute_url & current_absolute_full_url properties
This commit is contained in:
parent
7217fe9303
commit
990a15957a
1 changed files with 6 additions and 0 deletions
|
@ -78,6 +78,12 @@ class UrlRequest {
|
||||||
return $this -> current_url;
|
return $this -> current_url;
|
||||||
if ($key == 'current_full_url')
|
if ($key == 'current_full_url')
|
||||||
return Url::add_url_parameters($this -> current_url, $_GET, false);
|
return Url::add_url_parameters($this -> current_url, $_GET, false);
|
||||||
|
if ($key == 'current_absolute_url')
|
||||||
|
return Url::get_absolute_url($this -> current_url);
|
||||||
|
if ($key == 'current_absolute_full_url')
|
||||||
|
return Url::get_absolute_url(
|
||||||
|
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