public function addPluginMessage($message, $type='message')
	{
		if (!count($this->pluginMessageQueue))
		{
			$session = \App::get('session');
			$pluginMessage = $session->get('plugin.message.queue');
			if (count($pluginMessage))
			{
				$this->pluginMessageQueue = $pluginMessage;
				$session->set('plugin.message.queue', null);
			}
		}

		//if message is somthing
		if ($message != '')
		{
			$this->pluginMessageQueue[] = array(
				'message' => $message,
				'type'    => strtolower($type),
				'option'  => $this->option,
				'plugin'  => $this->_name
			);
		}

		return $this;
	}
public function addPluginMessage($message, $type='message')
	{
		if (!count($this->pluginMessageQueue))
		{
			$session = \App::get('session');
			$pluginMessage = $session->get('plugin.message.queue');
			if (count($pluginMessage))
			{
				$this->pluginMessageQueue = $pluginMessage;
				$session->set('plugin.message.queue', null);
			}
		}

		//if message is somthing
		if ($message != '')
		{
			$this->pluginMessageQueue[] = array(
				'message' => $message,
				'type'    => strtolower($type),
				'option'  => $this->option,
				'plugin'  => $this->_name
			);
		}

		return $this;
	}
public function addPluginMessage ( $ message , $ type = 'message' ) { if ( ! count ( $ this -> pluginMessageQueue ) ) { $ session = \ App :: get ( 'session' ) ; $ pluginMessage = $ session -> get ( 'plugin.message.queue' ) ; if ( count ( $ pluginMessage ) ) { $ this -> pluginMessageQueue = $ pluginMessage ; $ session -> set ( 'plugin.message.queue' , null ) ; } } //if message is somthing if ( $ message != '' ) { $ this -> pluginMessageQueue [ ] = array ( 'message' => $ message , 'type' => strtolower ( $ type ) , 'option' => $ this -> option , 'plugin' => $ this -> _name ) ; } return $ this ; }
Method to add a message to the component message que

@param   string  $message  The message to add
@param   string  $type     The type of message to add
@return  object
@deprecated
Method to add a message to the component message que