Property | Type | Description | |
---|---|---|---|
$_share | Horde_Share_Base | The composed Horde_Share driver | |
$_storageMap | array | Maps the concrete share class to the required storage adapter. |
Method | Description | |
---|---|---|
__call ( string $method, array $args ) : mixed | Delegate method calls to the composed share object. | |
__construct ( Horde_Share_Base $share ) | ||
checkLocks ( Horde_Lock $locks, string $item_uid = null ) : array | Checks for existing locks. | |
lock ( Horde_Lock $locks, string $uid = null ) : mixed | Lock an item belonging to a share, or an entire share itself. | |
shareAddCallback ( Horde_Share_Object $share ) | Adds the share_add hook before delegating to the share object. | |
shareListCallback ( string $userid, array $shares, array $params = [] ) : array | share_list callback | |
shareModifyCallback ( Horde_Share_Object $share ) | ||
shareRemoveCallback ( Horde_Share_Object $share ) | Calls the share_remove hook before delegating to the share object. | |
unlock ( Horde_Lock $locks, string $lockid ) : boolean | Removes the lock for a lock ID. |
public checkLocks ( Horde_Lock $locks, string $item_uid = null ) : array | ||
$locks | Horde_Lock | The lock object. |
$item_uid | string | A uid of an item from this share. |
return | array | 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. |
public lock ( Horde_Lock $locks, string $uid = null ) : mixed | ||
$locks | Horde_Lock | The lock object. |
$uid | string | The uid of a specific object to lock, if null, entire share is locked. |
return | mixed | A lock ID on sucess, false if: - The share is already locked, - The item is already locked, - A share lock was requested and an item is already locked in the share. |
protected array $_storageMap | ||
return | array |