full url method to iconmanager
This commit is contained in:
parent
ac4339e22b
commit
0d8ff77867
@ -39,7 +39,7 @@ class IconManager implements CallbackListener {
|
|||||||
*/
|
*/
|
||||||
/** @var ManiaControl $maniaControl */
|
/** @var ManiaControl $maniaControl */
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $icons = array();
|
private $icons = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new icon manager instance
|
* Construct a new icon manager instance
|
||||||
@ -75,6 +75,16 @@ class IconManager implements CallbackListener {
|
|||||||
$this->icons[$iconName] = $iconLink . '/' . $iconName;
|
$this->icons[$iconName] = $iconLink . '/' . $iconName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds an Icon by it's full URL
|
||||||
|
*
|
||||||
|
* @param $iconName
|
||||||
|
* @param $iconUrl
|
||||||
|
*/
|
||||||
|
public function addIconFullUrl($iconName, $iconUrl) {
|
||||||
|
$this->icons[$iconName] = $iconUrl;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get an Icon by its Name
|
* Get an Icon by its Name
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user