protected function _removeMessageFromQueue($nMessageID, $bError = false)
	{
		if (!is_numeric($nMessageID) || $nMessageID <= 0) {
			throw new ApnsPHP_Push_Exception(
				'Message ID format is not valid.'
			);
		}
		if (!isset($this->_aMessageQueue[$nMessageID])) {
			throw new ApnsPHP_Push_Exception(
				"The Message ID {$nMessageID} does not exists."
			);
		}
		if ($bError) {
			$this->_aErrors[$nMessageID] = $this->_aMessageQueue[$nMessageID];
		}
		unset($this->_aMessageQueue[$nMessageID]);
	}
protected function _removeMessageFromQueue($nMessageID, $bError = false)
	{
		if (!is_numeric($nMessageID) || $nMessageID <= 0) {
			throw new ApnsPHP_Push_Exception(
				'Message ID format is not valid.'
			);
		}
		if (!isset($this->_aMessageQueue[$nMessageID])) {
			throw new ApnsPHP_Push_Exception(
				"The Message ID {$nMessageID} does not exists."
			);
		}
		if ($bError) {
			$this->_aErrors[$nMessageID] = $this->_aMessageQueue[$nMessageID];
		}
		unset($this->_aMessageQueue[$nMessageID]);
	}
protected function _removeMessageFromQueue ( $ nMessageID , $ bError = false ) { if ( ! is_numeric ( $ nMessageID ) || $ nMessageID <= 0 ) { throw new ApnsPHP_Push_Exception ( 'Message ID format is not valid.' ) ; } if ( ! isset ( $ this -> _aMessageQueue [ $ nMessageID ] ) ) { throw new ApnsPHP_Push_Exception ( "The Message ID {$nMessageID} does not exists." ) ; } if ( $ bError ) { $ this -> _aErrors [ $ nMessageID ] = $ this -> _aMessageQueue [ $ nMessageID ] ; } unset ( $ this -> _aMessageQueue [ $ nMessageID ] ) ; }
Remove a message from the message queue.

@param  $nMessageID @type integer The Message ID.
@param  $bError @type boolean @optional Insert the message in the Error container.
@throws ApnsPHP_Push_Exception if the Message ID is not valid or message
does not exists.
Remove a message from the message queue .