public function add(ApnsPHP_Message $message)
	{
		$sMessagePayload = $message->getPayload();
		$nRecipients = $message->getRecipientsNumber();

		$nMessageQueueLen = count($this->_aMessageQueue);
		for ($i = 0; $i < $nRecipients; $i++) {
			$nMessageID = $nMessageQueueLen + $i + 1;
			$this->_aMessageQueue[$nMessageID] = array(
				'MESSAGE' => $message,
				'BINARY_NOTIFICATION' => $this->_getBinaryNotification(
					$message->getRecipient($i),
					$sMessagePayload,
					$nMessageID,
					$message->getExpiry()
				),
				'ERRORS' => array()
			);
		}
	}
public function add(ApnsPHP_Message $message)
	{
		$sMessagePayload = $message->getPayload();
		$nRecipients = $message->getRecipientsNumber();

		$nMessageQueueLen = count($this->_aMessageQueue);
		for ($i = 0; $i < $nRecipients; $i++) {
			$nMessageID = $nMessageQueueLen + $i + 1;
			$this->_aMessageQueue[$nMessageID] = array(
				'MESSAGE' => $message,
				'BINARY_NOTIFICATION' => $this->_getBinaryNotification(
					$message->getRecipient($i),
					$sMessagePayload,
					$nMessageID,
					$message->getExpiry()
				),
				'ERRORS' => array()
			);
		}
	}
public function add ( ApnsPHP_Message $ message ) { $ sMessagePayload = $ message -> getPayload ( ) ; $ nRecipients = $ message -> getRecipientsNumber ( ) ; $ nMessageQueueLen = count ( $ this -> _aMessageQueue ) ; for ( $ i = 0 ; $ i < $ nRecipients ; $ i ++ ) { $ nMessageID = $ nMessageQueueLen + $ i + 1 ; $ this -> _aMessageQueue [ $ nMessageID ] = array ( 'MESSAGE' => $ message , 'BINARY_NOTIFICATION' => $ this -> _getBinaryNotification ( $ message -> getRecipient ( $ i ) , $ sMessagePayload , $ nMessageID , $ message -> getExpiry ( ) ) , 'ERRORS' => array ( ) ) ; } }
Adds a message to the message queue.

@param  $message @type ApnsPHP_Message The message.
Adds a message to the message queue .