public function addLink($url, $title, $icon = NULL, $priority = 0)
	{
		$link = [
			"moduleUrl" => str_replace("#", NULL, substr($url, 0, strpos($url, ":"))),
			"url" => $url,
			"title" => $title,
			"icon" => $icon,
			"priority" => $priority
		];
		$this->links[] = $link;
	}
public function addLink($url, $title, $icon = NULL, $priority = 0)
	{
		$link = [
			"moduleUrl" => str_replace("#", NULL, substr($url, 0, strpos($url, ":"))),
			"url" => $url,
			"title" => $title,
			"icon" => $icon,
			"priority" => $priority
		];
		$this->links[] = $link;
	}
public function addLink ( $ url , $ title , $ icon = NULL , $ priority = 0 ) { $ link = [ "moduleUrl" => str_replace ( "#" , NULL , substr ( $ url , 0 , strpos ( $ url , ":" ) ) ) , "url" => $ url , "title" => $ title , "icon" => $ icon , "priority" => $ priority ] ; $ this -> links [ ] = $ link ; }
Adds link to mainPanel

@param  string
@param  string
@param  string|NULL
@param  int|NULL goes from min to max
Adds link to mainPanel