mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Fix CS
This commit is contained in:
@@ -78,8 +78,8 @@ class API_OAuth2_Account
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param int $account_id
|
||||
* @param appbox $appbox
|
||||
* @param int $account_id
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
public function __construct(appbox &$appbox, $account_id)
|
||||
@@ -144,7 +144,7 @@ class API_OAuth2_Account
|
||||
|
||||
/**
|
||||
*
|
||||
* @param boolean $boolean
|
||||
* @param boolean $boolean
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
public function set_revoked($boolean)
|
||||
@@ -177,7 +177,7 @@ class API_OAuth2_Account
|
||||
|
||||
/**
|
||||
*
|
||||
* @return API_OAuth2_Token
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public function get_token()
|
||||
{
|
||||
@@ -230,9 +230,9 @@ class API_OAuth2_Account
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param User_Adapter $user
|
||||
* @param API_OAuth2_Application $application
|
||||
* @param appbox $appbox
|
||||
* @param User_Adapter $user
|
||||
* @param API_OAuth2_Application $application
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
public static function create(appbox &$appbox, User_Adapter $user, API_OAuth2_Application $application)
|
||||
@@ -261,9 +261,9 @@ class API_OAuth2_Account
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Application $application
|
||||
* @param User_Adapter $user
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Application $application
|
||||
* @param User_Adapter $user
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
public static function load_with_user(appbox &$appbox, API_OAuth2_Application $application, User_Adapter $user)
|
||||
|
@@ -83,7 +83,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param appbox $appbox
|
||||
* @return API_OAuth2_Adapter
|
||||
*/
|
||||
public function __construct(appbox $appbox)
|
||||
@@ -115,7 +115,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param array $params
|
||||
* @param array $params
|
||||
* @return API_OAuth2_Adapter
|
||||
*/
|
||||
public function setParams(array $params)
|
||||
@@ -170,8 +170,8 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $secret
|
||||
* @param string $nonce
|
||||
* @param string $secret
|
||||
* @param string $nonce
|
||||
* @return string
|
||||
*/
|
||||
protected static function crypt_secret($secret, $nonce)
|
||||
@@ -185,8 +185,8 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
*
|
||||
* Implements OAuth2::checkClientCredentials().
|
||||
*
|
||||
* @param string $client_id
|
||||
* @param string $client_secret
|
||||
* @param string $client_id
|
||||
* @param string $client_secret
|
||||
* @return boolean
|
||||
*/
|
||||
protected function checkClientCredentials($client_id, $client_secret = NULL)
|
||||
@@ -212,7 +212,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
*
|
||||
* Implements OAuth2::getRedirectUri().
|
||||
*
|
||||
* @param string $client_id
|
||||
* @param string $client_id
|
||||
* @return string
|
||||
*/
|
||||
protected function getRedirectUri($client_id)
|
||||
@@ -226,7 +226,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
*
|
||||
* Implements OAuth2::getAccessToken().
|
||||
*
|
||||
* @param string $oauth_token
|
||||
* @param string $oauth_token
|
||||
* @return array
|
||||
*/
|
||||
protected function getAccessToken($oauth_token)
|
||||
@@ -258,10 +258,10 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param type $oauth_token
|
||||
* @param type $account_id
|
||||
* @param type $expires
|
||||
* @param string $scope
|
||||
* @param type $oauth_token
|
||||
* @param type $account_id
|
||||
* @param type $expires
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Adapter
|
||||
*/
|
||||
protected function setAccessToken($oauth_token, $account_id, $expires, $scope = NULL)
|
||||
@@ -326,11 +326,11 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
*
|
||||
* Overrides OAuth2::setAuthCode().
|
||||
*
|
||||
* @param string $code
|
||||
* @param int $account_id
|
||||
* @param string $redirect_uri
|
||||
* @param string $expires
|
||||
* @param string $scope
|
||||
* @param string $code
|
||||
* @param int $account_id
|
||||
* @param string $redirect_uri
|
||||
* @param string $expires
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Adapter
|
||||
*/
|
||||
protected function setAuthCode($code, $account_id, $redirect_uri, $expires, $scope = NULL)
|
||||
@@ -386,7 +386,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Symfony\Component\HttpFoundation\Request $request
|
||||
* @param Symfony\Component\HttpFoundation\Request $request
|
||||
* @return array
|
||||
*/
|
||||
public function getAuthorizationRequestParameters(Symfony\Component\HttpFoundation\Request $request)
|
||||
@@ -477,8 +477,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
), $redirect_uri);
|
||||
if ($compare !== 0)
|
||||
$this->errorDoRedirectUriCallback($input["redirect_uri"], OAUTH2_ERROR_REDIRECT_URI_MISMATCH, NULL, NULL, $input["state"]);
|
||||
}
|
||||
elseif ($redirect_uri) {
|
||||
} elseif ($redirect_uri) {
|
||||
/**
|
||||
* They did not provide a uri from input, so use the stored one
|
||||
*/
|
||||
@@ -524,7 +523,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param usr_id $usr_id
|
||||
* @param usr_id $usr_id
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
public function updateAccount($usr_id)
|
||||
@@ -544,7 +543,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $usr_id
|
||||
* @param int $usr_id
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
private function createAccount($usr_id)
|
||||
@@ -556,8 +555,8 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param <type> $is_authorized
|
||||
* @param array $params
|
||||
* @param <type> $is_authorized
|
||||
* @param array $params
|
||||
* @return string
|
||||
*/
|
||||
public function finishNativeClientAuthorization($is_authorized, $params = array())
|
||||
@@ -587,7 +586,7 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
/**
|
||||
*
|
||||
* @param <type> $redirect_uri
|
||||
* @param <type> $redirect_uri
|
||||
* @return <type>
|
||||
*/
|
||||
public function isNativeApp($redirect_uri)
|
||||
|
@@ -126,8 +126,8 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param int $application_id
|
||||
* @param appbox $appbox
|
||||
* @param int $application_id
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function __construct(appbox &$appbox, $application_id)
|
||||
@@ -202,7 +202,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $type
|
||||
* @param string $type
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_type($type)
|
||||
@@ -241,7 +241,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $name
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_name($name)
|
||||
@@ -274,7 +274,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $description
|
||||
* @param string $description
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_description($description)
|
||||
@@ -308,7 +308,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $website
|
||||
* @param string $website
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_website($website)
|
||||
@@ -342,7 +342,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param boolean $activated
|
||||
* @param boolean $activated
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_activated($activated)
|
||||
@@ -376,7 +376,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param boolean $grant
|
||||
* @param boolean $grant
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_grant_password($grant)
|
||||
@@ -428,7 +428,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $client_id
|
||||
* @param int $client_id
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_client_id($client_id)
|
||||
@@ -462,7 +462,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $client_secret
|
||||
* @param string $client_secret
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_client_secret($client_secret)
|
||||
@@ -496,7 +496,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $redirect_uri
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public function set_redirect_uri($redirect_uri)
|
||||
@@ -520,7 +520,7 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param User_Adapter $user
|
||||
* @param User_Adapter $user
|
||||
* @return API_OAuth2_Account
|
||||
*/
|
||||
public function get_user_account(user_adapter $user)
|
||||
@@ -589,9 +589,9 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param User_Adapter $user
|
||||
* @param type $name
|
||||
* @param appbox $appbox
|
||||
* @param User_Adapter $user
|
||||
* @param type $name
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public static function create(appbox &$appbox, User_Adapter $user = null, $name)
|
||||
@@ -637,8 +637,8 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param type $client_id
|
||||
* @param appbox $appbox
|
||||
* @param type $client_id
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public static function load_from_client_id(appbox &$appbox, $client_id)
|
||||
@@ -659,8 +659,8 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param User_Adapter $user
|
||||
* @param appbox $appbox
|
||||
* @param User_Adapter $user
|
||||
* @return array
|
||||
*/
|
||||
public static function load_dev_app_by_user(appbox &$appbox, User_Adapter $user)
|
||||
@@ -684,8 +684,8 @@ class API_OAuth2_Application
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param user_adapter $user
|
||||
* @param appbox $appbox
|
||||
* @param user_adapter $user
|
||||
* @return API_OAuth2_Application
|
||||
*/
|
||||
public static function load_app_by_user(appbox $appbox, user_adapter $user)
|
||||
|
@@ -133,8 +133,8 @@ class API_OAuth2_AuthCode
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @return array
|
||||
*/
|
||||
public static function load_codes_by_account(appbox &$appbox, API_OAuth2_Account $account)
|
||||
@@ -160,10 +160,10 @@ class API_OAuth2_AuthCode
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param type $code
|
||||
* @param int $expires
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param type $code
|
||||
* @param int $expires
|
||||
* @return API_OAuth2_AuthCode
|
||||
*/
|
||||
public static function create(appbox &$appbox, API_OAuth2_Account $account, $code, $expires)
|
||||
|
@@ -54,11 +54,11 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $http_code
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @param int $http_code
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Exception
|
||||
*/
|
||||
public function __construct($http_code, $error, $error_description = null, $scope = null, $error_uri = null)
|
||||
@@ -83,7 +83,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $http_code
|
||||
* @param int $http_code
|
||||
* @return API_OAuth2_Exception_Exception
|
||||
*/
|
||||
public function setHttp_code($http_code)
|
||||
@@ -104,7 +104,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $scope
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_Exception
|
||||
*/
|
||||
public function setError($error)
|
||||
@@ -125,7 +125,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $scope
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_Exception
|
||||
*/
|
||||
public function setError_description($error_description)
|
||||
@@ -146,7 +146,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $scope
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_Exception
|
||||
*/
|
||||
public function setError_uri($error_uri)
|
||||
@@ -167,7 +167,7 @@ class API_OAuth2_Exception_Exception extends Exception implements API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $scope
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_Exception
|
||||
*/
|
||||
public function setScope($scope)
|
||||
|
@@ -42,11 +42,11 @@ class API_OAuth2_Exception_Redirect extends API_OAuth2_Exception_Exception
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect
|
||||
*/
|
||||
public function __construct($redirect_uri, $error, $error_description = null, $state = null, $error_uri = null)
|
||||
@@ -69,7 +69,7 @@ class API_OAuth2_Exception_Redirect extends API_OAuth2_Exception_Exception
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $redirect_uri
|
||||
* @return API_OAuth2_Exception_Redirect
|
||||
*/
|
||||
public function setState($state)
|
||||
@@ -90,7 +90,7 @@ class API_OAuth2_Exception_Redirect extends API_OAuth2_Exception_Exception
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $redirect_uri
|
||||
* @return API_OAuth2_Exception_Redirect
|
||||
*/
|
||||
public function setRedirect_uri($redirect_uri)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_Redirect_AccessDenied extends API_OAuth2_Exception_Re
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_AccessDenied
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_Redirect_InvalidClient extends API_OAuth2_Exception_R
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_InvalidClient
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_Redirect_InvalidRequest extends API_OAuth2_Exception_
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_InvalidRequest
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
|
@@ -42,10 +42,10 @@ class API_OAuth2_Exception_Redirect_InvalidScope extends API_OAuth2_Exception_Re
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $scope
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $scope
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_InvalidScope
|
||||
*/
|
||||
public function __construct($redirect_uri, $scope, $state = null, $error_uri = null)
|
||||
@@ -67,7 +67,7 @@ class API_OAuth2_Exception_Redirect_InvalidScope extends API_OAuth2_Exception_Re
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $scope
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_Redirect_InvalidScope
|
||||
*/
|
||||
public function setScope($scope)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_Redirect_ServerError extends API_OAuth2_Exception_Red
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_ServerError
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_Redirect_Unauthorized extends API_OAuth2_Exception_Re
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_Unauthorized
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_Redirect_UnauthorizedClient extends API_OAuth2_Except
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_UnauthorizedClient
|
||||
*/
|
||||
public function __construct($redirect_uri, $state = null, $error_uri = null)
|
||||
|
@@ -42,10 +42,10 @@ class API_OAuth2_Exception_Redirect_UnsupportedResponseType extends API_OAuth2_E
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $redirect_uri
|
||||
* @param string $method
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @param string $redirect_uri
|
||||
* @param string $method
|
||||
* @param string $state
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_Redirect_UnsupportedResponseType
|
||||
*/
|
||||
public function __construct($redirect_uri, $method, $state = null, $error_uri = null)
|
||||
@@ -67,7 +67,7 @@ class API_OAuth2_Exception_Redirect_UnsupportedResponseType extends API_OAuth2_E
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $method
|
||||
* @param string $method
|
||||
* @return API_OAuth2_Exception_Redirect_UnsupportedResponseType
|
||||
*/
|
||||
public function setMethod($method)
|
||||
|
@@ -36,12 +36,12 @@ class API_OAuth2_Exception_WWWAuthenticate extends API_OAuth2_Exception_Exceptio
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $http_code
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @param int $http_code
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate
|
||||
*/
|
||||
public function __construct($http_code, $realm, $error, $error_description = null, $error_uri = null, $scope = null)
|
||||
@@ -65,7 +65,7 @@ class API_OAuth2_Exception_WWWAuthenticate extends API_OAuth2_Exception_Exceptio
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $realm
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate
|
||||
*/
|
||||
public function setRealm($realm)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_WWWAuthenticate_ExpiredToken extends API_OAuth2_Excep
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_ExpiredToken
|
||||
*/
|
||||
public function __construct($realm, $scope = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_WWWAuthenticate_InsufficientScope extends API_OAuth2_
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_InsufficientScope
|
||||
*/
|
||||
public function __construct($realm, $scope = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_WWWAuthenticate_InvalidClient extends API_OAuth2_Exce
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_InvalidClient
|
||||
*/
|
||||
public function __construct($realm, $scope = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_WWWAuthenticate_InvalidRequest extends API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_InvalidRequest
|
||||
*/
|
||||
public function __construct($realm, $scope = null, $error_uri = null)
|
||||
|
@@ -36,9 +36,9 @@ class API_OAuth2_Exception_WWWAuthenticate_InvalidToken extends API_OAuth2_Excep
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @param string $realm
|
||||
* @param string $scope
|
||||
* @param string $error_uri
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_InvalidToken
|
||||
*/
|
||||
public function __construct($realm, $scope = null, $error_uri = null)
|
||||
|
@@ -30,11 +30,11 @@ class API_OAuth2_Exception_WWWAuthenticate_Type_BadRequest extends API_OAuth2_Ex
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_Type_BadRequest
|
||||
*/
|
||||
public function __construct($realm, $error, $error_description = null, $error_uri = null, $scope = null)
|
||||
|
@@ -25,11 +25,11 @@ class API_OAuth2_Exception_WWWAuthenticate_Type_Forbidden extends API_OAuth2_Exc
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_Type_Forbidden
|
||||
*/
|
||||
public function __construct($realm, $error, $error_description = null, $error_uri = null, $scope = null)
|
||||
|
@@ -30,11 +30,11 @@ class API_OAuth2_Exception_WWWAuthenticate_Type_Unauthorized extends API_OAuth2_
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @param string $realm
|
||||
* @param string $error
|
||||
* @param string $error_description
|
||||
* @param string $error_uri
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Exception_WWWAuthenticate_Type_Unauthorized
|
||||
*/
|
||||
public function __construct($realm, $error, $error_description = null, $error_uri = null, $scope = null)
|
||||
|
@@ -60,7 +60,7 @@ class API_OAuth2_Form_DevAppDesktop
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Request $request
|
||||
* @return API_OAuth2_Form_DevApp
|
||||
*/
|
||||
public function __construct(Request $request)
|
||||
@@ -139,10 +139,10 @@ class API_OAuth2_Form_DevAppDesktop
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ClassMetadata $metadata
|
||||
* @param ClassMetadata $metadata
|
||||
* @return API_OAuth2_Form_DevApp
|
||||
*/
|
||||
static public function loadValidatorMetadata(ClassMetadata $metadata)
|
||||
public static function loadValidatorMetadata(ClassMetadata $metadata)
|
||||
{
|
||||
$blank = array('message' => _('Cette valeur ne peut être vide'));
|
||||
$url = array('message' => _('Url non valide'));
|
||||
|
@@ -56,7 +56,7 @@ class API_OAuth2_Form_DevAppInternet
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Request $request
|
||||
* @return API_OAuth2_Form_DevApp
|
||||
*/
|
||||
public function __construct(Request $request)
|
||||
@@ -142,10 +142,10 @@ class API_OAuth2_Form_DevAppInternet
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ClassMetadata $metadata
|
||||
* @param ClassMetadata $metadata
|
||||
* @return API_OAuth2_Form_DevApp
|
||||
*/
|
||||
static public function loadValidatorMetadata(ClassMetadata $metadata)
|
||||
public static function loadValidatorMetadata(ClassMetadata $metadata)
|
||||
{
|
||||
$blank = array('message' => _('Cette valeur ne peut être vide'));
|
||||
$url = array('message' => _('Url non valide'));
|
||||
|
@@ -93,8 +93,8 @@ class API_OAuth2_RefreshToken
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @return array
|
||||
*/
|
||||
public static function load_by_account(appbox &$appbox, API_OAuth2_Account $account)
|
||||
@@ -118,11 +118,11 @@ class API_OAuth2_RefreshToken
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param int $expires
|
||||
* @param type $refresh_token
|
||||
* @param type $scope
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param int $expires
|
||||
* @param type $refresh_token
|
||||
* @param type $scope
|
||||
* @return API_OAuth2_RefreshToken
|
||||
*/
|
||||
public static function create(appbox &$appbox, API_OAuth2_Account $account, $expires, $refresh_token, $scope)
|
||||
|
@@ -59,8 +59,8 @@ class API_OAuth2_Token
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public function __construct(appbox &$appbox, API_OAuth2_Account &$account)
|
||||
@@ -99,7 +99,7 @@ class API_OAuth2_Token
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $oauth_token
|
||||
* @param string $oauth_token
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public function set_value($oauth_token)
|
||||
@@ -132,7 +132,7 @@ class API_OAuth2_Token
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $session_id
|
||||
* @param int $session_id
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public function set_session_id($session_id)
|
||||
@@ -165,7 +165,7 @@ class API_OAuth2_Token
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $expires
|
||||
* @param int $expires
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public function set_expires($expires)
|
||||
@@ -266,8 +266,8 @@ class API_OAuth2_Token
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param type $oauth_token
|
||||
* @param appbox $appbox
|
||||
* @param type $oauth_token
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public static function load_by_oauth_token(appbox &$appbox, $oauth_token)
|
||||
@@ -293,9 +293,9 @@ class API_OAuth2_Token
|
||||
|
||||
/**
|
||||
*
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param string $scope
|
||||
* @param appbox $appbox
|
||||
* @param API_OAuth2_Account $account
|
||||
* @param string $scope
|
||||
* @return API_OAuth2_Token
|
||||
*/
|
||||
public static function create(appbox &$appbox, API_OAuth2_Account &$account, $scope = null)
|
||||
|
Reference in New Issue
Block a user