Resource

class OC\Collaboration\Resources\Resource
Source:lib/private/Collaboration/Resources/Resource.php#36
Implements:OCP\Collaboration\Resources\IResource

Properties

protected static property OC\Collaboration\Resources\Resource::$manager
Source:lib/private/Collaboration/Resources/Resource.php#39
Type:\OCP\Collaboration\Resources\IManager
protected static property OC\Collaboration\Resources\Resource::$connection
Source:lib/private/Collaboration/Resources/Resource.php#42
Type:\OCP\IDBConnection
protected static property OC\Collaboration\Resources\Resource::$type
Source:lib/private/Collaboration/Resources/Resource.php#45
Type:string
protected static property OC\Collaboration\Resources\Resource::$id
Source:lib/private/Collaboration/Resources/Resource.php#48
Type:string
protected static property OC\Collaboration\Resources\Resource::$userForAccess
Source:lib/private/Collaboration/Resources/Resource.php#51
Type:\OCP\IUser | null
protected static property OC\Collaboration\Resources\Resource::$access
Source:lib/private/Collaboration/Resources/Resource.php#54
Type:bool | null
protected static property OC\Collaboration\Resources\Resource::$data
Source:lib/private/Collaboration/Resources/Resource.php#57
Type:array | null

Methods

public OC\Collaboration\Resources\Resource::__construct($manager, $connection, $type, $id, $userForAccess=null, $access=null)
Source:lib/private/Collaboration/Resources/Resource.php#59
public OC\Collaboration\Resources\Resource::getType()
Source:lib/private/Collaboration/Resources/Resource.php#79
Returns:string
Since:16.0.0
public OC\Collaboration\Resources\Resource::getId()
Source:lib/private/Collaboration/Resources/Resource.php#87
Returns:string
Since:16.0.0
public OC\Collaboration\Resources\Resource::getRichObject()
Source:lib/private/Collaboration/Resources/Resource.php#95
Returns:array
Since:16.0.0
public OC\Collaboration\Resources\Resource::canAccess($user)
Can a user/guest access the resource
Source:

lib/private/Collaboration/Resources/Resource.php#110

Parameters:
Returns:

bool

Since:

16.0.0

protected OC\Collaboration\Resources\Resource::canUserAccess($user)
Source:lib/private/Collaboration/Resources/Resource.php#117
protected OC\Collaboration\Resources\Resource::canGuestAccess()
Source:lib/private/Collaboration/Resources/Resource.php#129
public OC\Collaboration\Resources\Resource::getCollections()
Source:lib/private/Collaboration/Resources/Resource.php#145
Returns:\OCP\Collaboration\Resources\ICollection[]
Since:16.0.0