ICollection

interface OCP\Collaboration\Resources\ICollection
Implemented by:OC\Collaboration\Resources\Collection
Source:lib/public/Collaboration/Resources/ICollection.php#34

Methods

public OCP\Collaboration\Resources\ICollection::getId()
Source:lib/public/Collaboration/Resources/ICollection.php#40
Returns:int
Since:16.0.0
public OCP\Collaboration\Resources\ICollection::getName()
Source:lib/public/Collaboration/Resources/ICollection.php#46
Returns:string
Since:16.0.0
public OCP\Collaboration\Resources\ICollection::setName($name)
Source:

lib/public/Collaboration/Resources/ICollection.php#52

Parameters:
  • $name (string)
Since:

16.0.0

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

lib/public/Collaboration/Resources/ICollection.php#67

Parameters:
Throws:

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

Since:

16.0.0

public OCP\Collaboration\Resources\ICollection::removeResource($resource)
Removes a resource from a collection
Source:

lib/public/Collaboration/Resources/ICollection.php#75

Parameters:
Since:

16.0.0

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

lib/public/Collaboration/Resources/ICollection.php#84

Parameters:
Returns:

bool

Since:

16.0.0