original_string: public function setMessage($type, $message) {
  		if (!$this->session->has('flashmsgs')) {
  			$this->session->set('flashmsgs', array());
  		}
  		$temp = $this->session->get('flashmsgs');
  		$temp[] = array('type' => $type, 'content' => $message);
  		$this->session->set('flashmsgs', $temp);
  	}
code: public function setMessage($type, $message) {
  		if (!$this->session->has('flashmsgs')) {
  			$this->session->set('flashmsgs', array());
  		}
  		$temp = $this->session->get('flashmsgs');
  		$temp[] = array('type' => $type, 'content' => $message);
  		$this->session->set('flashmsgs', $temp);
  	}
code_tokens: public function setMessage ( $ type , $ message ) { if ( ! $ this -> session -> has ( 'flashmsgs' ) ) { $ this -> session -> set ( 'flashmsgs' , array ( ) ) ; } $ temp = $ this -> session -> get ( 'flashmsgs' ) ; $ temp [ ] = array ( 'type' => $ type , 'content' => $ message ) ; $ this -> session -> set ( 'flashmsgs' , $ temp ) ; }
docstring: Add message to session array
  
  @param $type string with message type
  @param $message string with message text
  
  @return void
docstring_tokens: Add message to session array