FacturaScripts

AdminPlugins extends Controller
in package

AdminPlugins.

Table of Contents

Properties

$empresa  : Empresa
Selected company.
$multiRequestProtection  : MultiRequestProtection
$permissions  : ControllerPermissions
User permissions on this controller.
$pluginList  : array<string|int, mixed>
$registered  : bool
$remotePluginList  : array<string|int, mixed>
$request  : Request
Request on which we can get data.
$title  : string
Title of the page.
$updated  : bool
$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
getMaxFileUpload()  : float
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
getClassName()  : string
Return the name of the controller.
response()  : Response
validateFormToken()  : bool
Check request token. Returns an error if: - the token does not exist - the token is invalid - the token is duplicated
disableIncompatiblePlugins()  : void
disablePluginAction()  : void
enablePluginAction()  : void
extractPluginsZipFiles()  : void
loadRemotePluginList()  : void
rebuildAction()  : void
removePluginAction()  : void
uploadPluginAction()  : void

Properties

$pluginList

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

$remotePluginList

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

$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

getMaxFileUpload()

public getMaxFileUpload() : float
Return values
float

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

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

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

disableIncompatiblePlugins()

private disableIncompatiblePlugins() : void

disablePluginAction()

private disablePluginAction() : void

enablePluginAction()

private enablePluginAction() : void

extractPluginsZipFiles()

private extractPluginsZipFiles() : void

loadRemotePluginList()

private loadRemotePluginList() : void

removePluginAction()

private removePluginAction() : void

uploadPluginAction()

private uploadPluginAction() : void

        
On this page

Search results