full url method to iconmanager

This commit is contained in:
kremsy 2015-01-17 15:59:26 +01:00
parent ac4339e22b
commit 0d8ff77867

View File

@ -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
* *