TemplateService
extends AirlayService
in package
Class TemplateService
Table of Contents
- $ : AirlayConfig
- $collection : TemplatesCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- create() : TemplateEntity
- getCollection() : mixed
- update() : void
Properties
$
public
AirlayConfig
$
config
$collection
public
TemplatesCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(TemplatesCollection $collection) : mixed
Parameters
- $collection : TemplatesCollection
Return values
mixed —create()
public
create(string $title, string $type, string $header, string $body, ObjectId $organizationId) : TemplateEntity
Parameters
- $title : string
- $type : string
- $header : string
- $body : string
- $organizationId : ObjectId
Return values
TemplateEntity —getCollection()
public
getCollection() : mixed
Return values
mixed —update()
public
update(ObjectId $templateId[, string|null $title = null ][, string|null $header = null ][, string|null $body = null ]) : void
Parameters
- $templateId : ObjectId
- $title : string|null = null
- $header : string|null = null
- $body : string|null = null