mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
f557b89aea
commit
3e2f3c8467
@ -45,6 +45,13 @@ class Url
|
|||||||
*/
|
*/
|
||||||
protected $path = '';
|
protected $path = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The basePath of this Url
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $basePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The baseUrl that will be appended to @see Url::$path
|
* The baseUrl that will be appended to @see Url::$path
|
||||||
*
|
*
|
||||||
@ -266,6 +273,29 @@ class Url
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the basePath for this url
|
||||||
|
*
|
||||||
|
* @param string $basePath New basePath of this url
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setBasePath($basePath)
|
||||||
|
{
|
||||||
|
$this->basePath = $basePath;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the basePath set for this url
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getBasePath()
|
||||||
|
{
|
||||||
|
return $this->basePath;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwrite the host
|
* Overwrite the host
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user