Modules

Kohana_OAuth_Response

OAuth Response

package
Kohana/OAuth
category
Base
author
Kohana Team
copyright
© 2010 Kohana Team
license
http://kohanaframework.org/license
since
3.0.7

Class declared in MODPATH/oauth/classes/kohana/oauth/response.php on line 12.

Constants

  • None

Properties

Properties

protected array $params

response parameters

Methods

public __construct( ) (defined in Kohana_OAuth_Response)

Source Code

public function __construct($body = NULL)
{
	if ($body)
	{
		$this->params = OAuth::parse_params($body);
	}
}

public __get( string $key ) (defined in Kohana_OAuth_Response)

Return the value of any protected class variable.

// Get the response parameters
$params = $response->params;

Parameters

  • string $key required - Variable name

Return Values

  • mixed

Source Code

public function __get($key)
{
	return $this->$key;
}

public static factory( ) (defined in Kohana_OAuth_Response)

Source Code

public static function factory($body)
{
	return new OAuth_Response($body);
}

public param( ) (defined in Kohana_OAuth_Response)

Source Code

public function param($name, $default = NULL)
{
	return Arr::get($this->params, $name, $default);
}