FacturaScripts

SendMail extends Controller
in package

Description of SendMail

Tags
author

Carlos García Gómez [email protected]

author

Javier García Iceta [email protected]

author

Francesc Pineda Segarra [email protected]

Table of Contents

MAX_FILE_AGE  = 2592000
MODEL_NAMESPACE  = '\\FacturaScripts\\Dinamic\\Model\\'
$codeModel  : CodeModel
$empresa  : Empresa
Selected company.
$multiRequestProtection  : MultiRequestProtection
$newMail  : NewMail
$permissions  : ControllerPermissions
User permissions on this controller.
$request  : Request
Request on which we can get data.
$title  : string
Title of the page.
$uri  : string
Given uri, default is empty.
$user  : User|false
User logged in.
$dataBase  : DataBase
It provides direct access to the database.
$response  : Response
HTTP Response object.
$className  : string
Name of the class of the controller (although its in inheritance from this class, the name of the final class we will have here)
$template  : string|false
Name of the file for the template.
__construct()  : mixed
Initialize all objects and properties.
addExtension()  : mixed
getPageData()  : array<string|int, mixed>
Return the basic data for this page.
getTemplate()  : string|false
Return the template to use for this controller.
pipe()  : mixed
pipeFalse()  : bool
privateCore()  : mixed
Runs the controller's private logic.
publicCore()  : mixed
Execute the public part of the controller.
redirect()  : mixed
Redirect to an url or controller.
setTemplate()  : bool
Set the template to use for this controller.
toolBox()  : ToolBox
url()  : string
Return the URL of the actual controller.
autocompleteAction()  : array<string|int, mixed>
Run the autocomplete action.
checkInvoices()  : mixed
execAction()  : mixed
Execute main actions.
getClassName()  : string
Return the name of the controller.
getEmails()  : array<string|int, mixed>
loadDataDefault()  : mixed
redirAfter()  : mixed
removeOld()  : mixed
Remove old files.
requestGet()  : array<string|int, mixed>
Return array with parameters values
send()  : bool
Send and email with data posted from form.
setAttachment()  : mixed
setEmailAddress()  : mixed
updateFemail()  : mixed
Update the property femail with actual date if exist param ModelClassName and ModelCode.
validateFormToken()  : bool
Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated
checkPHPversion()  : mixed

Constants

MAX_FILE_AGE

public mixed MAX_FILE_AGE = 2592000

MODEL_NAMESPACE

public mixed MODEL_NAMESPACE = '\\FacturaScripts\\Dinamic\\Model\\'

Properties

$request

Request on which we can get data.

public Request $request

$title

Title of the page.

public string $title

título de la página.

$uri

Given uri, default is empty.

public string $uri

$response

HTTP Response object.

protected Response $response

$className

Name of the class of the controller (although its in inheritance from this class, the name of the final class we will have here)

private string $className

CLASS

$template

Name of the file for the template.

private string|false $template

nombre_archivo.html.twig

Methods

__construct()

Initialize all objects and properties.

public __construct(string $className[, string $uri = '' ]) : mixed
Parameters
$className : string
$uri : string = ''
Return values
mixed

addExtension()

public static addExtension(mixed $extension) : mixed
Parameters
$extension : mixed
Return values
mixed

getPageData()

Return the basic data for this page.

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

getTemplate()

Return the template to use for this controller.

public getTemplate() : string|false
Return values
string|false

pipe()

public pipe(string $name, array<string|int, mixed> ...$arguments) : mixed
Parameters
$name : string
$arguments : array<string|int, mixed>
Return values
mixed

pipeFalse()

public pipeFalse(string $name, array<string|int, mixed> ...$arguments) : bool
Parameters
$name : string
$arguments : array<string|int, mixed>
Return values
bool

publicCore()

Execute the public part of the controller.

public publicCore(Response &$response) : mixed
Parameters
$response : Response
Return values
mixed

redirect()

Redirect to an url or controller.

public redirect(string $url, int $delay) : mixed
Parameters
$url : string
$delay : int
Return values
mixed

setTemplate()

Set the template to use for this controller.

public setTemplate(string|false $template) : bool
Parameters
$template : string|false
Return values
bool

url()

Return the URL of the actual controller.

public url() : string
Return values
string

autocompleteAction()

Run the autocomplete action.

protected autocompleteAction() : array<string|int, mixed>

Returns a JSON string for the searched values.

Return values
array<string|int, mixed>

checkInvoices()

protected checkInvoices() : mixed
Return values
mixed

execAction()

Execute main actions.

protected execAction(string $action) : mixed
Parameters
$action : string
Tags
throws
Exception
Return values
mixed

getClassName()

Return the name of the controller.

protected getClassName() : string
Return values
string

getEmails()

protected getEmails(string $field) : array<string|int, mixed>
Parameters
$field : string
Return values
array<string|int, mixed>

loadDataDefault()

protected loadDataDefault(mixed $model) : mixed
Parameters
$model : mixed
Return values
mixed

redirAfter()

protected redirAfter() : mixed
Return values
mixed

removeOld()

Remove old files.

protected removeOld() : mixed
Return values
mixed

requestGet()

Return array with parameters values

protected requestGet(array<string|int, mixed> $keys) : array<string|int, mixed>
Parameters
$keys : array<string|int, mixed>
Return values
array<string|int, mixed>

send()

Send and email with data posted from form.

protected send() : bool
Tags
throws
Exception
Return values
bool

setAttachment()

protected setAttachment() : mixed
Tags
throws
Exception
Return values
mixed

setEmailAddress()

protected setEmailAddress() : mixed
Tags
throws
Exception
Return values
mixed

updateFemail()

Update the property femail with actual date if exist param ModelClassName and ModelCode.

protected updateFemail() : mixed
Return values
mixed

validateFormToken()

Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated

protected validateFormToken() : bool
Return values
bool

checkPHPversion()

private checkPHPversion(float $min) : mixed
Parameters
$min : float
Return values
mixed

Search results