PHP Class OCA\Richdocuments\Controller\DocumentController

Inheritance: extends OCP\AppFramework\Controller
Afficher le fichier Open project: owncloud/richdocuments

Méthodes publiques

Méthode Description
__construct ( $appName, OCP\IRequest $request, OCP\IConfig $settings, AppConfig $appConfig, OCP\IL10N $l10n, $uid, OCP\ICacheFactory $cache, OCP\ILogger $logger )
create ( )
download ( $path )
get ( $fileId )
index ( )
listAll ( )
rename ( $fileId )
serve ( $esId )
wopiCheckFileInfo ( $fileId )
wopiGetFile ( $fileId )
wopiGetToken ( $fileId )
wopiPutFile ( $fileId )

Private Methods

Méthode Description
getDiscovery ( ) Return the content of discovery.xml - either from cache, or download it.
getWopiSrcUrl ( $discovery_parsed, string $mimetype )
loginUser ( string $userid ) Log the user with given $userid.
prepareDocuments ( $rawDocuments ) Prepare document(s) structure
responseError ( $message, $hint = '' )

Method Details

__construct() public méthode

public __construct ( $appName, OCP\IRequest $request, OCP\IConfig $settings, AppConfig $appConfig, OCP\IL10N $l10n, $uid, OCP\ICacheFactory $cache, OCP\ILogger $logger )
$request OCP\IRequest
$settings OCP\IConfig
$appConfig OCA\Richdocuments\AppConfig
$l10n OCP\IL10N
$cache OCP\ICacheFactory
$logger OCP\ILogger

create() public méthode

public create ( )

download() public méthode

public download ( $path )

get() public méthode

public get ( $fileId )

index() public méthode

public index ( )

listAll() public méthode

public listAll ( )

rename() public méthode

public rename ( $fileId )

serve() public méthode

public serve ( $esId )

wopiCheckFileInfo() public méthode

public wopiCheckFileInfo ( $fileId )

wopiGetFile() public méthode

public wopiGetFile ( $fileId )

wopiGetToken() public méthode

public wopiGetToken ( $fileId )

wopiPutFile() public méthode

public wopiPutFile ( $fileId )