FacturaScripts

MailNotifier extends MailNotifier
in package

Class created by Core/Internal/PluginsDeploy

Table of Contents

Methods

getText()  : string
send()  : bool
replaceTextToBlock()  : void
Los bloques se añaden al campo de params como 'block1', 'block2', ... Cada bloque se compone de un string o de un objeto que herede de BaseBlock.

Methods

getText()

public static getText(string $text, array<string|int, mixed> $params) : string
Parameters
$text : string
$params : array<string|int, mixed>
Return values
string

send()

public static send(string $notificationName, string $email[, string $name = '' ][, array<string|int, mixed> $params = [] ][, array<string|int, mixed> $attach = [] ][, array<string|int, mixed> $mainBlocks = [] ][, array<string|int, mixed> $footerBlocks = [] ]) : bool
Parameters
$notificationName : string
$email : string
$name : string = ''
$params : array<string|int, mixed> = []
$attach : array<string|int, mixed> = []
$mainBlocks : array<string|int, mixed> = []
$footerBlocks : array<string|int, mixed> = []
Tags
throws
Exception
throws
SyntaxError
throws
RuntimeError
throws
LoaderError
Return values
bool

replaceTextToBlock()

Los bloques se añaden al campo de params como 'block1', 'block2', ... Cada bloque se compone de un string o de un objeto que herede de BaseBlock.

protected static replaceTextToBlock(NewMail &$newMail, array<string|int, mixed> $params) : void

El texto del email puede contener {block1}, {block2}, ... Para indicar dónde se debe insertar cada bloque. Si no se encuentra la etiqueta, el bloque se añade al final del email.

Parameters
$newMail : NewMail
$params : array<string|int, mixed>

        
On this page

Search results