Properties

Methods

__construct()

__construct() 

SQLStore constructor.

generateInvitationId()

generateInvitationId(\Pydio\OCS\Model\ShareInvitation  $invitation) : integer

Generate a unique ID for invitation

Parameters

\Pydio\OCS\Model\ShareInvitation $invitation

Returns

integer

invitationsForLink()

invitationsForLink(string  $linkToken) : array<mixed,\Pydio\OCS\Model\ShareInvitation>

Find all invitatins for a given token

Parameters

string $linkToken

Returns

array<mixed,\Pydio\OCS\Model\ShareInvitation>

invitationById()

invitationById(  $invitationId) : \Pydio\OCS\Model\ShareInvitation|null

Find an invitation by ID

Parameters

$invitationId

Returns

\Pydio\OCS\Model\ShareInvitation|null

deleteInvitation()

deleteInvitation(\Pydio\OCS\Model\ShareInvitation  $invitation) : boolean

Delete an invitation

Parameters

\Pydio\OCS\Model\ShareInvitation $invitation

Returns

boolean

storeRemoteShare()

storeRemoteShare(\Pydio\OCS\Model\RemoteShare  $remoteShare) : \Pydio\OCS\Model\RemoteShare|false

Persists a remote share to the store

Parameters

\Pydio\OCS\Model\RemoteShare $remoteShare

Returns

\Pydio\OCS\Model\RemoteShare|false —

The share with eventually its new ID.

remoteSharesForUser()

remoteSharesForUser(string  $userName) : array<mixed,\Pydio\OCS\Model\RemoteShare>

Find all remote shares for a given user

Parameters

string $userName

Returns

array<mixed,\Pydio\OCS\Model\RemoteShare>

remoteShareById()

remoteShareById(string  $remoteShareId) : \Pydio\OCS\Model\RemoteShare|false

Find a remote share by its id

Parameters

string $remoteShareId

Returns

\Pydio\OCS\Model\RemoteShare|false

remoteShareForOcsRemoteId()

remoteShareForOcsRemoteId(  $ocsRemoteId) : mixed|null

Parameters

$ocsRemoteId

Returns

mixed|null

deleteRemoteShare()

deleteRemoteShare(\Pydio\OCS\Model\RemoteShare  $remoteShare) : boolean

Delete an existing remote share

Parameters

\Pydio\OCS\Model\RemoteShare $remoteShare

Returns

boolean

findAvailableID()

findAvailableID(  $namespace) : integer

Parameters

$namespace

Returns

integer

getGUID()

getGUID() : string

Returns

string