Sf TIC Bundles

Template extends TICEntity
in package
Uses EntityTimestampable

Entité représentant un modèle de notification par email.

Tags
ORM\Table

(name="tic_mail_template")

ORM\Entity

(repositoryClass=EntityRepo::class)

ORM\HasLifecycleCallbacks

Table of Contents

Properties

$bccAdmins  : mixed
$bccMore  : mixed
$bodyHtml  : mixed
$bodySms  : mixed
$bodyText  : mixed
$createdAt  : mixed
$enabled  : mixed
$isTimestampable  : mixed
Flag permettant de désactiver les actions des méthodes en prePersist et preSave
$label  : mixed
$ref  : mixed
$return  : mixed
$sender  : mixed
$subject  : mixed
$target  : mixed
$translations  : mixed
$updatedAt  : mixed

Methods

__construct()  : mixed
__get()  : mixed
__isset()  : bool
__set()  : void
__toString()  : mixed
addTranslation()  : Template
Add translation
createTimestampableValues()  : void
Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"
doTimestampable()  : bool
Gestion de l'activation des actions en prePersist et preSave
exportMail()  : string
Export des données de l'entité au format Mail/Mbox.
getBccAdmins()  : bool
Get bccAdmins
getBccMore()  : string
Get bccMore
getBodyHtml()  : string
Get bodyHtml
getBodySms()  : string
Get bodySms
getBodyText()  : string
Get bodyText
getContents()  : array<string|int, mixed>
Retourne la liste des contenus pour les 3 vues.
getCreatedAt()  : DateTimeInterface|null
Get the creation date.
getEnabled()  : bool
Get enabled
getId()  : string
Get id
getLabel()  : string
Get label
getRef()  : string
Get ref
getReturn()  : string
Get return
getSender()  : string
Get sender
getSubject()  : string
Get subject
getTarget()  : string
Get target
getTranslation()  : TemplateTranslation
Recherche l'instance TemplateTranslation associée pour la locale spécifiée.
getTranslations()  : Collection
Get translations
getUpdatedAt()  : DateTimeInterface|null
Get the modification date.
import()  : void
Import des données de l'entité depuis un tableau associatif.
isEmpty()  : bool
Test si le contenu text/html ET text/plain ET sms sont vides.
listFormats()  : array<string|int, mixed>
Indique les formats (text/plain, text/html, sms) utilisés par ce modèle.
removeTranslation()  : mixed
Remove translation
setBccAdmins()  : Template
Set bccAdmins
setBccMore()  : Template
Set bccMore
setBodyHtml()  : Template
Set bodyHtml
setBodySms()  : Template
Set bodySms
setBodyText()  : Template
Set bodyText
setCreatedAt()  : self
Set the creation date.
setEnabled()  : Template
Set enabled
setLabel()  : Template
Set label
setRef()  : Template
Set ref
setReturn()  : Template
Set return
setSender()  : Template
Set sender
setSubject()  : Template
Set subject
setTarget()  : Template
Set target
setUpdatedAt()  : self
Set the modification date.
updateTimestampableValues()  : void
Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"

Properties

$bccAdmins

private mixed $bccAdmins
Tags
ORM\Column

(type="boolean", options={"default"=true})

$bccMore

private mixed $bccMore
Tags
ORM\Column

(type="text", nullable=true)

$bodyHtml

private mixed $bodyHtml
Tags
ORM\Column

(type="text", nullable=true)

$bodySms

private mixed $bodySms
Tags
ORM\Column

(type="text", nullable=true)

$bodyText

private mixed $bodyText
Tags
ORM\Column

(type="text", nullable=true)

$enabled

private mixed $enabled
Tags
ORM\Column

(type="boolean", options={"default"=true})

$isTimestampable

Flag permettant de désactiver les actions des méthodes en prePersist et preSave

private mixed $isTimestampable = true

$label

private mixed $label
Tags
ORM\Column

(type="string", length=250)

$ref

private mixed $ref
Tags
ORM\Column

(type="string", length=100, unique=true)

ORM\Id

$return

private mixed $return
Tags
ORM\Column

(type="string", length=250, nullable=true, name="return_path")

$sender

private mixed $sender
Tags
ORM\Column

(type="string", length=250, nullable=true)

$subject

private mixed $subject
Tags
ORM\Column

(type="string", length=250)

$target

private mixed $target
Tags
ORM\Column

(type="string", length=100, nullable=true)

$translations

private mixed $translations
Tags
ORM\OneToMany

(targetEntity="TemplateTranslation", mappedBy="master", cascade={"persist", "remove"}, orphanRemoval=true)

$updatedAt

private mixed $updatedAt
Tags
ORM\Column

(type="datetime", nullable=true)

Methods

__construct()

public __construct([string|null $ref = null ]) : mixed
Parameters
$ref : string|null = null

__get()

public __get(string $property) : mixed
Parameters
$property : string
Tags
throws
LogicException

If no accessor/property exists by that name

__isset()

public __isset(string $property) : bool
Parameters
$property : string
Return values
bool

__set()

public __set(string $property, mixed $value) : void
Parameters
$property : string
$value : mixed
Tags
throws
LogicException

If no mutator/property exists by that name

__toString()

public __toString() : mixed

createTimestampableValues()

Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"

public createTimestampableValues() : void
Tags
ORM\PrePersist

doTimestampable()

Gestion de l'activation des actions en prePersist et preSave

public doTimestampable([bool $state = null ]) : bool
Parameters
$state : bool = null

Nouvel état d'activation (true=actif / false=inactif)

Return values
bool

Retourne l'état d'activation en cours

exportMail()

Export des données de l'entité au format Mail/Mbox.

public exportMail([string $locale = null ][, array<string|int, mixed> $formats = null ]) : string

(messages multipart MIME pour contenus text+html avec concaténation Mbox pour différentes locales)

Parameters
$locale : string = null
$formats : array<string|int, mixed> = null
Return values
string

getBccAdmins()

Get bccAdmins

public getBccAdmins() : bool
Return values
bool

getBccMore()

Get bccMore

public getBccMore() : string
Return values
string

getBodyHtml()

Get bodyHtml

public getBodyHtml() : string
Return values
string

getBodySms()

Get bodySms

public getBodySms() : string
Return values
string

getBodyText()

Get bodyText

public getBodyText() : string
Return values
string

getContents()

Retourne la liste des contenus pour les 3 vues.

public getContents([string $locale = null ]) : array<string|int, mixed>

(utilisé pour initialiser un environnement Twig dans le service tic_mailer)

Parameters
$locale : string = null

Langue souhaitée pour les modèles (optionnel)

Return values
array<string|int, mixed>

Contenus pour les clés 'subject', 'bodyText', 'bodyHtml' et 'bodySms'

getCreatedAt()

Get the creation date.

public getCreatedAt() : DateTimeInterface|null
Return values
DateTimeInterface|null

getEnabled()

Get enabled

public getEnabled() : bool
Return values
bool

getId()

Get id

public getId() : string
Return values
string

getLabel()

Get label

public getLabel() : string
Return values
string

getRef()

Get ref

public getRef() : string
Return values
string

getReturn()

Get return

public getReturn() : string
Return values
string

getSender()

Get sender

public getSender() : string
Return values
string

getSubject()

Get subject

public getSubject() : string
Return values
string

getTarget()

Get target

public getTarget() : string
Return values
string

getTranslation()

Recherche l'instance TemplateTranslation associée pour la locale spécifiée.

public getTranslation(string $locale) : TemplateTranslation
Parameters
$locale : string
Return values
TemplateTranslation

ou null si aucune correspondance

getTranslations()

Get translations

public getTranslations() : Collection
Return values
Collection

getUpdatedAt()

Get the modification date.

public getUpdatedAt() : DateTimeInterface|null
Return values
DateTimeInterface|null

import()

Import des données de l'entité depuis un tableau associatif.

public import(array<string|int, mixed> $messages) : void
Parameters
$messages : array<string|int, mixed>

isEmpty()

Test si le contenu text/html ET text/plain ET sms sont vides.

public isEmpty() : bool
Tags
Assert\IsFalse

(message = "ticmail.alert.emptyBody")

Return values
bool

listFormats()

Indique les formats (text/plain, text/html, sms) utilisés par ce modèle.

public listFormats() : array<string|int, mixed>
Return values
array<string|int, mixed>

Liste pouvant contenir les indications : 'HTML', 'TEXT', 'SMS'

setBccAdmins()

Set bccAdmins

public setBccAdmins(bool $bccAdmins) : Template
Parameters
$bccAdmins : bool
Return values
Template

setBccMore()

Set bccMore

public setBccMore(string $bccMore) : Template
Parameters
$bccMore : string
Return values
Template

setBodyHtml()

Set bodyHtml

public setBodyHtml(string $bodyHtml) : Template
Parameters
$bodyHtml : string
Return values
Template

setBodySms()

Set bodySms

public setBodySms(string $bodySms) : Template
Parameters
$bodySms : string
Return values
Template

setBodyText()

Set bodyText

public setBodyText(string $bodyText) : Template
Parameters
$bodyText : string
Return values
Template

setCreatedAt()

Set the creation date.

public setCreatedAt(DateTimeInterface|null $createdAt) : self
Parameters
$createdAt : DateTimeInterface|null
Return values
self

setEnabled()

Set enabled

public setEnabled(bool $enabled) : Template
Parameters
$enabled : bool
Return values
Template

setSubject()

Set subject

public setSubject(string $subject) : Template
Parameters
$subject : string
Return values
Template

setUpdatedAt()

Set the modification date.

public setUpdatedAt(DateTimeInterface|null $updatedAt) : self
Parameters
$updatedAt : DateTimeInterface|null
Return values
self

updateTimestampableValues()

Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"

public updateTimestampableValues() : void
Tags
ORM\PreUpdate

        
On this page

Search results