PHP Class Kronolith_Shares, horde

Author: Michael J Rubinsky ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_shares Horde_Core_Share_Driver Composed share object.

Méthodes publiques

Méthode Description
__call ( $method, $args )
__construct ( Horde_Core_Share_Driver $shares )
listShares ( string $userid, array $params = [] ) : array Returns an array of all shares that $userid has access to.
listSystemShares ( ) : array Returns an array of all system shares.
newShare ( string $owner, string $share_name = '', string $name_attribute = '' ) : Horde_Share_Object Returns a new share object.

Method Details

__call() public méthode

public __call ( $method, $args )

__construct() public méthode

public __construct ( Horde_Core_Share_Driver $shares )
$shares Horde_Core_Share_Driver

listShares() public méthode

By default returns only normal calendar shares, and not resource shares. Set $params['attributes']['calendar_type'] = Kronolith::SHARE_TYPE_RESOURCE to return resource shares.
public listShares ( string $userid, array $params = [] ) : array
$userid string The userid of the user to check access for. An empty value for the userid will only return shares with guest access.
$params array Additional parameters for the search: - perm: Require this level of permissions. Horde_Perms constant. - attributes: Restrict shares to these attributes. A hash or username. - from: Offset. Start at this share - count: Limit. Only return this many. - sort_by: Sort by attribute. - direction: Sort by direction.
Résultat array The shares the user has access to.

listSystemShares() public méthode

Returns an array of all system shares.
public listSystemShares ( ) : array
Résultat array All system shares.

newShare() public méthode

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
public newShare ( string $owner, string $share_name = '', string $name_attribute = '' ) : Horde_Share_Object
$owner string The share owner name.
$share_name string The share's name.
$name_attribute string The name displayed to the user.
Résultat Horde_Share_Object A new share object.

Property Details

$_shares protected_oe property

Composed share object.
protected Horde_Core_Share_Driver $_shares
Résultat Horde_Core_Share_Driver