PHP Class OCA\Richdocuments\Db\Session

Inheritance: extends OCA\Richdocuments\Db
显示文件 Open project: owncloud/richdocuments Class Usage Examples

Protected Properties

Property Type Description
$insertStatement
$loadStatement
$tableName

Public Methods

Method Description
cleanUp ( $esId )
getInfo ( $esId )
insert ( )
start ( string $uid, File $file ) : array Start a editing session or return an existing one
syncOps ( $memberId, $currentHead, $clientHead, $clientOps )
updateGenesisHash ( $esId, $genesisHash )

Protected Methods

Method Description
getUniqueSessionId ( )

Method Details

cleanUp() public static method

public static cleanUp ( $esId )

getInfo() public method

public getInfo ( $esId )

getUniqueSessionId() protected method

protected getUniqueSessionId ( )

insert() public method

public insert ( )

start() public static method

Start a editing session or return an existing one
public static start ( string $uid, File $file ) : array
$uid string of the user starting a session
$file OCA\Richdocuments\File - file object
return array

syncOps() public method

public syncOps ( $memberId, $currentHead, $clientHead, $clientOps )

updateGenesisHash() public method

public updateGenesisHash ( $esId, $genesisHash )

Property Details

$insertStatement protected_oe property

protected $insertStatement

$loadStatement protected_oe property

protected $loadStatement

$tableName protected_oe property

protected $tableName