LabelService
extends AirlayService
in package
Class LabelService
Table of Contents
- BASE_PRIORITY_NAMES = ['high', 'medium', 'low']
- BASE_STATUS_NAMES = ['open', 'closed']
- $ : AirlayConfig
- $collection : LabelsCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- createBaseLabels() : void
- delete() : void
- getCollection() : mixed
- getDefaultPriority() : LabelEntity
- getDefaultStatus() : LabelEntity
- update() : bool
Constants
BASE_PRIORITY_NAMES
public
mixed
BASE_PRIORITY_NAMES
= ['high', 'medium', 'low']
BASE_STATUS_NAMES
public
mixed
BASE_STATUS_NAMES
= ['open', 'closed']
Properties
$
public
AirlayConfig
$
config
$collection
public
LabelsCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —createBaseLabels()
public
createBaseLabels(ObjectId $organizationId) : void
Parameters
- $organizationId : ObjectId
Return values
void —delete()
public
delete(LabelEntity $label) : void
Parameters
- $label : LabelEntity
Return values
void —getCollection()
public
getCollection() : mixed
Return values
mixed —getDefaultPriority()
public
getDefaultPriority(string $name, ObjectId $organizationId) : LabelEntity
Parameters
- $name : string
- $organizationId : ObjectId
Return values
LabelEntity —getDefaultStatus()
public
getDefaultStatus(string $name, ObjectId $organizationId) : LabelEntity
Parameters
- $name : string
- $organizationId : ObjectId
Return values
LabelEntity —update()
public
update(LabelEntity $label, string|null $name, string|null $color) : bool
Parameters
- $label : LabelEntity
- $name : string|null
- $color : string|null