PHP Class OCA\Richdocuments\Db\Wopi

Inheritance: extends OCA\Richdocuments\Db
Exibir arquivo Open project: owncloud/richdocuments Class Usage Examples

Protected Properties

Property Type Description
$insertStatement
$loadStatement
$tableName

Public Methods

Method Description
generateFileToken ( $fileId, $version ) * Given a fileId and version, generates a token and stores in the database.
getPathForToken ( $fileId, $version, $token ) * Given a token, validates it and constructs and validates the path.

Method Details

generateFileToken() public method

version is 0 if current version of fileId is requested, otherwise its the version number as stored by files_version app Returns the token.
public generateFileToken ( $fileId, $version )

getPathForToken() public method

Returns the path, if valid, else false.
public getPathForToken ( $fileId, $version, $token )

Property Details

$insertStatement protected_oe property

protected $insertStatement

$loadStatement protected_oe property

protected $loadStatement

$tableName protected_oe property

protected $tableName