AirLay backend

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

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

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
Return values
bool

Search results