Collection

class OC\Collaboration\Resources\Collection
Source:lib/private/Collaboration/Resources/Collection.php#40
Implements:OCP\Collaboration\Resources\ICollection

Properties

protected static property OC\Collaboration\Resources\Collection::$manager
Source:lib/private/Collaboration/Resources/Collection.php#43
Type:\OCP\Collaboration\Resources\IManager | \OC\Collaboration\Resources\Manager
protected static property OC\Collaboration\Resources\Collection::$connection
Source:lib/private/Collaboration/Resources/Collection.php#46
Type:\OCP\IDBConnection
protected static property OC\Collaboration\Resources\Collection::$id
Source:lib/private/Collaboration/Resources/Collection.php#49
Type:int
protected static property OC\Collaboration\Resources\Collection::$name
Source:lib/private/Collaboration/Resources/Collection.php#52
Type:string
protected static property OC\Collaboration\Resources\Collection::$userForAccess
Source:lib/private/Collaboration/Resources/Collection.php#55
Type:\OCP\IUser | null
protected static property OC\Collaboration\Resources\Collection::$access
Source:lib/private/Collaboration/Resources/Collection.php#58
Type:bool | null
protected static property OC\Collaboration\Resources\Collection::$resources
Source:lib/private/Collaboration/Resources/Collection.php#61
Type:\OCP\Collaboration\Resources\IResource[]

Methods

public OC\Collaboration\Resources\Collection::__construct($manager, $connection, $id, $name, $userForAccess=null, $access=null)
Source:lib/private/Collaboration/Resources/Collection.php#63
public OC\Collaboration\Resources\Collection::getId()
Source:lib/private/Collaboration/Resources/Collection.php#84
Returns:int
Since:16.0.0
public OC\Collaboration\Resources\Collection::getName()
Source:lib/private/Collaboration/Resources/Collection.php#92
Returns:string
Since:16.0.0
public OC\Collaboration\Resources\Collection::setName($name)
Source:

lib/private/Collaboration/Resources/Collection.php#100

Parameters:
  • $name (string)
Since:

16.0.0

public OC\Collaboration\Resources\Collection::getResources()
Source:lib/private/Collaboration/Resources/Collection.php#114
Returns:\OCP\Collaboration\Resources\IResource[]
Since:16.0.0
public OC\Collaboration\Resources\Collection::addResource($resource)
Adds a resource to a collection
Source:

lib/private/Collaboration/Resources/Collection.php#129

Parameters:
Throws:

\OCP\Collaboration\Resources\ResourceException when the resource is already part of the collection

Since:

16.0.0

public OC\Collaboration\Resources\Collection::removeResource($resource)
Removes a resource from a collection
Source:

lib/private/Collaboration/Resources/Collection.php#161

Parameters:
Since:

16.0.0

public OC\Collaboration\Resources\Collection::canAccess($user)
Can a user/guest access the collection
Source:

lib/private/Collaboration/Resources/Collection.php#187

Parameters:
Returns:

bool

Since:

16.0.0

protected OC\Collaboration\Resources\Collection::canUserAccess($user)
Source:lib/private/Collaboration/Resources/Collection.php#194
protected OC\Collaboration\Resources\Collection::canGuestAccess()
Source:lib/private/Collaboration/Resources/Collection.php#206
protected OC\Collaboration\Resources\Collection::isSameResource($resource1, $resource2)
Source:lib/private/Collaboration/Resources/Collection.php#218
protected OC\Collaboration\Resources\Collection::removeCollection()
Source:lib/private/Collaboration/Resources/Collection.php#223