ReportTaxes
extends Controller
in package
Description of ReportTaxes
Table of Contents
Constants
- MAX_TOTAL_DIFF = 0.05
Properties
- $coddivisa : string
- $codpais : string
- $codserie : string
- $datefrom : string
- $dateto : string
- $divisa : Divisa
- $empresa : Empresa
- Selected company.
- $format : string
- $idempresa : int
- $multiRequestProtection : MultiRequestProtection
- $pais : Pais
- $permissions : ControllerPermissions
- User permissions on this controller.
- $request : Request
- Request on which we can get data.
- $serie : Serie
- $source : string
- $title : string
- Title of the page.
- $typeDate : string
- $uri : string
- Given uri, default is empty.
- $user : User|false
- User logged in.
- $columns : array<string|int, mixed>
- $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
- Return the URL of the actual controller.
- db() : DataBase
- exportAction() : void
- exportFieldFormat() : string
- getClassName() : string
- Return the name of the controller.
- getQuarterDate() : string
- getReportData() : array<string|int, mixed>
- getTotals() : array<string|int, mixed>
- initColumns() : void
- initFilters() : void
- processLayout() : void
- reduceLines() : void
- response() : Response
- validateFormToken() : bool
- Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated
- validateTotals() : bool
Constants
MAX_TOTAL_DIFF
public
mixed
MAX_TOTAL_DIFF
= 0.05
Properties
$coddivisa
public
string
$coddivisa
$codpais
public
string
$codpais
$codserie
public
string
$codserie
$datefrom
public
string
$datefrom
$dateto
public
string
$dateto
$divisa
public
Divisa
$divisa
$empresa
Selected company.
public
Empresa
$empresa
$format
public
string
$format
$idempresa
public
int
$idempresa
$multiRequestProtection
public
MultiRequestProtection
$multiRequestProtection
$pais
public
Pais
$pais
$permissions
User permissions on this controller.
public
ControllerPermissions
$permissions
$request
Request on which we can get data.
public
Request
$request
$serie
public
Serie
$serie
$source
public
string
$source
$title
Title of the page.
public
string
$title
título de la página.
$typeDate
public
string
$typeDate
$uri
Given uri, default is empty.
public
string
$uri
$user
User logged in.
public
User|false
$user
= false
$columns
protected
array<string|int, mixed>
$columns
= []
$dataBase
It provides direct access to the database.
protected
DataBase
$dataBase
$response
HTTP Response object.
protected
Response
$response
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|falsepipe()
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
boolprivateCore()
Runs the controller's private logic.
public
privateCore(Response &$response, User $user, ControllerPermissions $permissions) : mixed
Parameters
- $response : Response
- $user : User
- $permissions : ControllerPermissions
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
request()
public
request() : Request
Return values
Requestrun()
public
run() : void
setTemplate()
Set the template to use for this controller.
public
setTemplate(string|false $template) : bool
Parameters
- $template : string|false
Return values
boolurl()
Return the URL of the actual controller.
public
url() : string
Return values
stringdb()
protected
db() : DataBase
Return values
DataBaseexportAction()
protected
exportAction() : void
exportFieldFormat()
protected
exportFieldFormat(string $format, string $value) : string
Parameters
- $format : string
- $value : string
Return values
stringgetClassName()
Return the name of the controller.
protected
getClassName() : string
Return values
stringgetQuarterDate()
protected
getQuarterDate(bool $start) : string
Parameters
- $start : bool
Return values
stringgetReportData()
protected
getReportData() : array<string|int, mixed>
Return values
array<string|int, mixed>getTotals()
protected
getTotals(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>initColumns()
protected
initColumns() : void
initFilters()
protected
initFilters() : void
processLayout()
protected
processLayout(array<string|int, mixed> &$lines, array<string|int, mixed> &$totals) : void
Parameters
- $lines : array<string|int, mixed>
- $totals : array<string|int, mixed>
reduceLines()
protected
reduceLines(array<string|int, mixed> &$lines) : void
Parameters
- $lines : array<string|int, mixed>
response()
protected
response() : Response
Return values
ResponsevalidateFormToken()
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
boolvalidateTotals()
protected
validateTotals(array<string|int, mixed> $totalsData) : bool
Parameters
- $totalsData : array<string|int, mixed>