$_shares
$_shares : \Horde_Core_Share_Driver
Composed share object.
Share wrapper to simplify listing shares.
listShares(string $userid, array $params = array()) : array
Returns an array of all shares that $userid has access to.
By default returns only normal calendar shares, and not resource shares. Set $params['attributes']['calendar_type'] = Kronolith::SHARE_TYPE_RESOURCE to return resource shares.
string | $userid | The userid of the user to check access for. An empty value for the userid will only return shares with guest access. |
array | $params | Additional parameters for the search:
|
The shares the user has access to.
newShare(string $owner, string $share_name = '', string $name_attribute = '') : \Horde_Share_Object
Returns a new share object.
By default, creates a new user calendar share and not a resource share. To create a resource share, calling code must explicitly set the 'calendar_type' share attribute to Kronolith::SHARE_TYPE_RESOURCE
string | $owner | The share owner name. |
string | $share_name | The share's name. |
string | $name_attribute | The name displayed to the user. |
A new share object.