original_string: final public function get_user_array(Array $additional_fields = array())
  	{
  		$user = array(
  			'email'        => $this->get_email(),
  			'screen_name'  => $this->get_screen_name(),
  			'groups'       => $this->get_groups(),
  		);
  
  		$additional_fields = array_merge($this->config['additional_fields'], $additional_fields);
  		foreach($additional_fields as $af)
  		{
  			// only works if it actually can be fetched through a get_ method
  			if (is_callable(array($this, $method = 'get_'.$af)))
  			{
  				$user[$af] = $this->$method();
  			}
  		}
  		return $user;
  	}
code: final public function get_user_array(Array $additional_fields = array())
  	{
  		$user = array(
  			'email'        => $this->get_email(),
  			'screen_name'  => $this->get_screen_name(),
  			'groups'       => $this->get_groups(),
  		);
  
  		$additional_fields = array_merge($this->config['additional_fields'], $additional_fields);
  		foreach($additional_fields as $af)
  		{
  			// only works if it actually can be fetched through a get_ method
  			if (is_callable(array($this, $method = 'get_'.$af)))
  			{
  				$user[$af] = $this->$method();
  			}
  		}
  		return $user;
  	}
code_tokens: final public function get_user_array ( Array $ additional_fields = array ( ) ) { $ user = array ( 'email' => $ this -> get_email ( ) , 'screen_name' => $ this -> get_screen_name ( ) , 'groups' => $ this -> get_groups ( ) , ) ; $ additional_fields = array_merge ( $ this -> config [ 'additional_fields' ] , $ additional_fields ) ; foreach ( $ additional_fields as $ af ) { // only works if it actually can be fetched through a get_ method if ( is_callable ( array ( $ this , $ method = 'get_' . $ af ) ) ) { $ user [ $ af ] = $ this -> $ method ( ) ; } } return $ user ; }
docstring: Return user info in an array, always includes email & screen_name
  Additional fields can be requested in the first param or set in config,
  all additional fields must have their own method "get_" + fieldname
  
  @param   array  additional fields
  @return  array
docstring_tokens: Return user info in an array always includes email & screen_name Additional fields can be requested in the first param or set in config all additional fields must have their own method get_ + fieldname