PHP Class fkooman\RemoteStorage\RemoteStorageService

Inheritance: extends fkooman\OAuth\OAuthService
Datei anzeigen Open project: fkooman/php-remote-storage Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
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 )

Method Details

__construct() public method

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 method

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 method

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 method

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 method

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

putDocument() public method

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 method

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

stripQuotes() public method

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