FacturaScripts

Dashboard extends Controller
in package

Description of Dashboard

Tags
author

Carlos Garcia Gomez [email protected]

author

Jose Antonio Cuello Principal [email protected]

Table of Contents

$createLinks  : array<string|int, mixed>
$empresa  : Empresa
Selected company.
$lowStock  : array<string|int, mixed>
$multiRequestProtection  : MultiRequestProtection
$news  : array<string|int, mixed>
$openLinks  : array<string|int, mixed>
$permissions  : ControllerPermissions
User permissions on this controller.
$receipts  : array<string|int, mixed>
$request  : Request
Request on which we can get data.
$sections  : array<string|int, mixed>
$stats  : array<string|int, mixed>
$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.
showBackupWarning()  : bool
toolBox()  : ToolBox
url()  : string
Return the URL of the actual controller.
getClassName()  : string
Return the name of the controller.
validateFormToken()  : bool
Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated
checkPHPversion()  : mixed
getStatsMonth()  : string
Gets the name of the month for the statistics.
getStatsWhere()  : array<string|int, DataBaseWhere>
Gets the where filter for calc of the statistics.
loadCreateLinks()  : mixed
Set the quick links for data creation.
loadExtensions()  : mixed
Establish the sections to be displayed on the dashboard.
loadLowStockSection()  : mixed
Load the data regarding the stock under minimum.
loadNews()  : mixed
Load last news from facturascripts.com
loadOpenLinks()  : mixed
Loads the links to the latest data created by the user.
loadReceiptSection()  : mixed
Load the receipts pending collection.
loadStats()  : mixed
Load statistical data.
setOpenLinksForDocument()  : mixed

Properties

public array<string|int, mixed> $createLinks = []

$lowStock

public array<string|int, mixed> $lowStock = []

$news

public array<string|int, mixed> $news = []
public array<string|int, mixed> $openLinks = []

$receipts

public array<string|int, mixed> $receipts = []

$request

Request on which we can get data.

public Request $request

$sections

public array<string|int, mixed> $sections = []

$stats

public array<string|int, mixed> $stats = []

$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

showBackupWarning()

public showBackupWarning() : bool
Return values
bool

url()

Return the URL of the actual controller.

public url() : string
Return values
string

getClassName()

Return the name of the controller.

protected getClassName() : string
Return values
string

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

getStatsMonth()

Gets the name of the month for the statistics.

private getStatsMonth(int $previous) : string
Parameters
$previous : int
Return values
string

getStatsWhere()

Gets the where filter for calc of the statistics.

private getStatsWhere(string $field, int $previous) : array<string|int, DataBaseWhere>
Parameters
$field : string
$previous : int
Return values
array<string|int, DataBaseWhere>

Set the quick links for data creation.

private loadCreateLinks() : mixed

Example: createLinks['EditControllerName'] = 'label'

Return values
mixed

loadExtensions()

Establish the sections to be displayed on the dashboard.

private loadExtensions() : mixed
Return values
mixed

loadLowStockSection()

Load the data regarding the stock under minimum.

private loadLowStockSection() : mixed
Return values
mixed

loadNews()

Load last news from facturascripts.com

private loadNews() : mixed
Return values
mixed

Loads the links to the latest data created by the user.

private loadOpenLinks() : mixed
Return values
mixed

loadReceiptSection()

Load the receipts pending collection.

private loadReceiptSection() : mixed
Return values
mixed

loadStats()

Load statistical data.

private loadStats() : mixed
Return values
mixed

Search results