CollabService
FinalYes
Table of Contents
Methods
- __construct() : mixed
- getCollabByStorage() : Collab|null
- Returns the collaboration entity by the storage.
- getCollabStorageByEntity() : Storage|null
- Returns the collaboration storage by the entity.
- isCollabEntity() : bool
- Returns true if the entity is a collaboration entity.
- isCollaberUserById() : bool
- Returns true if the user is a collaboration user.
- isCollabStorage() : bool
- Returns true if the storage is a collaboration storage.
- isCollabStorageById() : bool
- Returns true if the storage is a collaboration storage.
- isGroupStorage() : bool
- Returns true if the storage is a group storage.
Methods
__construct()
public
__construct() : mixed
getCollabByStorage()
Returns the collaboration entity by the storage.
public
getCollabByStorage(Storage $storage) : Collab|null
Parameters
- $storage : Storage
-
Storage.
Tags
Return values
Collab|nullgetCollabStorageByEntity()
Returns the collaboration storage by the entity.
public
getCollabStorageByEntity(int $entityId, string $entityType) : Storage|null
Parameters
- $entityId : int
-
Entity ID (Userfields).
- $entityType : string
-
Entity type (Userfields).
Tags
Return values
Storage|nullisCollabEntity()
Returns true if the entity is a collaboration entity.
public
isCollabEntity(int $entityId, string $entityType) : bool
Parameters
- $entityId : int
-
Entity ID (Userfields).
- $entityType : string
-
Entity type (Userfields).
Return values
boolisCollaberUserById()
Returns true if the user is a collaboration user.
public
isCollaberUserById(int $userId) : bool
Parameters
- $userId : int
-
User ID.
Tags
Return values
boolisCollabStorage()
Returns true if the storage is a collaboration storage.
public
isCollabStorage(Storage $storage) : bool
Parameters
- $storage : Storage
Tags
Return values
boolisCollabStorageById()
Returns true if the storage is a collaboration storage.
public
isCollabStorageById(int $storageId) : bool
Parameters
- $storageId : int
-
Storage ID.
Tags
Return values
boolisGroupStorage()
Returns true if the storage is a group storage.
public
isGroupStorage(Storage $storage) : bool
Parameters
- $storage : Storage