PHP Class OCA\Richdocuments\Controller\DocumentController

Inheritance: extends OCP\AppFramework\Controller
显示文件 Open project: owncloud/richdocuments

Public Methods

Method 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

Method 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 method

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 method

public create ( )

download() public method

public download ( $path )

get() public method

public get ( $fileId )

index() public method

public index ( )

listAll() public method

public listAll ( )

rename() public method

public rename ( $fileId )

serve() public method

public serve ( $esId )

wopiCheckFileInfo() public method

public wopiCheckFileInfo ( $fileId )

wopiGetFile() public method

public wopiGetFile ( $fileId )

wopiGetToken() public method

public wopiGetToken ( $fileId )

wopiPutFile() public method

public wopiPutFile ( $fileId )