PHP Класс fkooman\RemoteStorage\RemoteStorageService

Наследование: extends fkooman\OAuth\OAuthService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( RemoteStorage $remoteStorage, ApprovalManagementStorage $approvalManagementStorage, fkooman\Tpl\TemplateManagerInterface $templateManager, fkooman\OAuth\ClientStorageInterface $clientStorage, fkooman\OAuth\ResourceServerStorageInterface $resourceServerStorage, fkooman\OAuth\ApprovalStorageInterface $approvalStorage, fkooman\OAuth\AuthorizationCodeStorageInterface $authorizationCodeStorage, fkooman\OAuth\AccessTokenStorageInterface $accessTokenStorage, array $options = [], fkooman\IO\IO $io = null )
deleteDocument ( fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo )
getDocument ( Path $path, fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo = null )
getFolder ( Path $path, fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo )
getObject ( fkooman\Http\Request $request, $tokenInfo )
putDocument ( fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo )
run ( fkooman\Http\Request $request = null )
stripQuotes ( $versionHeader ) ETag/If-Match/If-None-Match are always quoted, this method removes the quotes.

Приватные методы

Метод Описание
addCors ( fkooman\Http\Response &$response )
addNoCache ( fkooman\Http\Response &$response )
hasReadScope ( fkooman\Rest\Plugin\Authentication\Bearer\Scope $i, $moduleName )
hasWriteScope ( fkooman\Rest\Plugin\Authentication\Bearer\Scope $i, $moduleName )

Описание методов

__construct() публичный Метод

public __construct ( RemoteStorage $remoteStorage, ApprovalManagementStorage $approvalManagementStorage, fkooman\Tpl\TemplateManagerInterface $templateManager, fkooman\OAuth\ClientStorageInterface $clientStorage, fkooman\OAuth\ResourceServerStorageInterface $resourceServerStorage, fkooman\OAuth\ApprovalStorageInterface $approvalStorage, fkooman\OAuth\AuthorizationCodeStorageInterface $authorizationCodeStorage, fkooman\OAuth\AccessTokenStorageInterface $accessTokenStorage, array $options = [], fkooman\IO\IO $io = null )
$remoteStorage RemoteStorage
$approvalManagementStorage ApprovalManagementStorage
$templateManager fkooman\Tpl\TemplateManagerInterface
$clientStorage fkooman\OAuth\ClientStorageInterface
$resourceServerStorage fkooman\OAuth\ResourceServerStorageInterface
$approvalStorage fkooman\OAuth\ApprovalStorageInterface
$authorizationCodeStorage fkooman\OAuth\AuthorizationCodeStorageInterface
$accessTokenStorage fkooman\OAuth\AccessTokenStorageInterface
$options array
$io fkooman\IO\IO

deleteDocument() публичный Метод

public deleteDocument ( fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo )
$request fkooman\Http\Request
$tokenInfo fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo

getDocument() публичный Метод

public getDocument ( Path $path, fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo = null )
$path Path
$request fkooman\Http\Request
$tokenInfo fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo

getFolder() публичный Метод

public getFolder ( Path $path, fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo )
$path Path
$request fkooman\Http\Request
$tokenInfo fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo

getObject() публичный Метод

public getObject ( fkooman\Http\Request $request, $tokenInfo )
$request fkooman\Http\Request

putDocument() публичный Метод

public putDocument ( fkooman\Http\Request $request, fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo $tokenInfo )
$request fkooman\Http\Request
$tokenInfo fkooman\Rest\Plugin\Authentication\Bearer\TokenInfo

run() публичный Метод

public run ( fkooman\Http\Request $request = null )
$request fkooman\Http\Request

stripQuotes() публичный Метод

ETag/If-Match/If-None-Match are always quoted, this method removes the quotes.
public stripQuotes ( $versionHeader )