FacturaScripts

SendMail extends Controller
in package

Description of SendMail

Table of Contents

Constants

MAX_FILE_AGE  = 2592000
MODEL_NAMESPACE  = '\FacturaScripts\Dinamic\Model\\'

Properties

$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.

Methods

__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.
request()  : Request
run()  : void
setTemplate()  : bool
Set the template to use for this controller.
url()  : string
Construye la url para el formulario de la vista.
autocompleteAction()  : array<string|int, mixed>
Devuelve los valores al buscar un email en el campo Para, CC o CCO.
checkDocument()  : void
Comprueba condiciones especiales del documento.
db()  : DataBase
execAction()  : void
getClassName()  : string
Return the name of the controller.
getEmails()  : array<string|int, mixed>
loadDataDefault()  : void
redirectAfter()  : void
removeOld()  : void
Remove old files.
requestGet()  : array<string|int, mixed>
Return array with parameters values
response()  : Response
send()  : bool
setAttachment()  : void
setEmail()  : void
setEmailAddress()  : void
updateFemail()  : void
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

Constants

MAX_FILE_AGE

public mixed MAX_FILE_AGE = 2592000

MODEL_NAMESPACE

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

Properties

$title

Title of the page.

public string $title

título de la página.

$uri

Given uri, default is empty.

public string $uri

Methods

__construct()

Initialize all objects and properties.

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

addExtension()

public static addExtension(mixed $extension) : mixed
Parameters
$extension : 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>

pipeFalse()

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

privateCore()

Runs the controller's private logic.

public privateCore(mixed &$response, mixed $user, mixed $permissions) : mixed
Parameters
$response : mixed
$user : mixed
$permissions : mixed

publicCore()

Execute the public part of the controller.

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

redirect()

Redirect to an url or controller.

public redirect(string $url[, int $delay = 0 ]) : mixed
Parameters
$url : string
$delay : int = 0

setTemplate()

Set the template to use for this controller.

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

url()

Construye la url para el formulario de la vista.

public url() : string
Return values
string

autocompleteAction()

Devuelve los valores al buscar un email en el campo Para, CC o CCO.

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

checkDocument()

Comprueba condiciones especiales del documento.

protected checkDocument() : void

execAction()

protected execAction(string $action) : void
Parameters
$action : string

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) : void
Parameters
$model : mixed

redirectAfter()

protected redirectAfter() : void

removeOld()

Remove old files.

protected removeOld() : void

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()

protected send() : bool
Return values
bool

setAttachment()

protected setAttachment() : void

setEmailAddress()

protected setEmailAddress() : void

Use setEmail() instead

updateFemail()

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

protected updateFemail() : void

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

        
On this page

Search results