$_share
$_share : \Horde_Share_Base
The composed Horde_Share driver
Horde specific wrapper for Horde_Share drivers. Adds Horde hook calls etc.
..
Copyright 2002-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://opensource.org/licenses/lgpl-2.1.php
lock(\Horde_Lock $locks, string $uid = null) : mixed
Lock an item belonging to a share, or an entire share itself.
\Horde_Lock | $locks | The lock object. |
string | $uid | The uid of a specific object to lock, if null, entire share is locked. |
A lock ID on sucess, false if:
checkLocks(\Horde_Lock $locks, string $item_uid = null) : array
Checks for existing locks.
First this checks for share locks and if none exists, checks for item locks (if item_uid defined). It will return the first lock found.
\Horde_Lock | $locks | The lock object. |
string | $item_uid | A uid of an item from this share. |
Hash with the found lock information in 'lock' and the lock type ('share' or 'item') in 'type', or an empty array if there are no locks.
shareListCallback(string $userid, array $shares, array $params = array()) : array
share_list callback
string | $userid | The userid listShares was called with |
array | $shares | The result of the listShares() call |
array | $params | The params that listShares() was called with |
An array of share objects