libraries/Maniaplanet/WebServices/ManiaHome/ServerPublisher.php
function postPublicNotification($message, $link = null, $iconStyle = null, $iconSubstyle = null, $titleIdString = null, $mediaURL = null, $group = null)
	{
		$n = new Notification();
		$n->senderName = (object) array('serverLogin' => $this->serverLogin);
		$n->message = $message;
		$n->link = $link;
		$n->iconStyle = $iconStyle;
		$n->iconSubStyle = $iconSubstyle;
		$n->titleId = $titleIdString;
		$n->mediaURL = $mediaURL;
        $n->group = $group;
		return $this->execute('POST', '/maniahome/notification/public/', array($n));
	}
function postPublicNotification($message, $link = null, $iconStyle = null, $iconSubstyle = null, $titleIdString = null, $mediaURL = null, $group = null)
	{
		$n = new Notification();
		$n->senderName = (object) array('serverLogin' => $this->serverLogin);
		$n->message = $message;
		$n->link = $link;
		$n->iconStyle = $iconStyle;
		$n->iconSubStyle = $iconSubstyle;
		$n->titleId = $titleIdString;
		$n->mediaURL = $mediaURL;
        $n->group = $group;
		return $this->execute('POST', '/maniahome/notification/public/', array($n));
	}
function postPublicNotification ( $ message , $ link = null , $ iconStyle = null , $ iconSubstyle = null , $ titleIdString = null , $ mediaURL = null , $ group = null ) { $ n = new Notification ( ) ; $ n -> senderName = ( object ) array ( 'serverLogin' => $ this -> serverLogin ) ; $ n -> message = $ message ; $ n -> link = $ link ; $ n -> iconStyle = $ iconStyle ; $ n -> iconSubStyle = $ iconSubstyle ; $ n -> titleId = $ titleIdString ; $ n -> mediaURL = $ mediaURL ; $ n -> group = $ group ; return $ this -> execute ( 'POST' , '/maniahome/notification/public/' , array ( $ n ) ) ; }
Send a public notification to every player that bookmarked your server.
@param string $message The message itself. If you send a public notification to a player, the
message will be prepended with its nickname. Max length is 255 chars, you
can use Maniaplanet special chars.
@param string $link  Link when the player clicks on the notification
@param string $iconStyle Icon style (from the Manialink styles)
@param string $iconSubstyle Icon substyle (from the Manialink styles)
@param string $titleIdString the titleIdString where the notification will be visible. Leave empty to post for ManiaPlanet
@param string $mediaURL Link to a picture (jpg,png or dds) or a video (webm)
@param string $group Group on the notification (http://maniapla.net/maniahome-group)
@return int
Send a public notification to every player that bookmarked your server .