AirLay backend

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

Methods

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

Search results