FacturaScripts

AdminPlugins extends Controller

AdminPlugins.

Table of Contents

PLUGIN_LIST_URL 'https://facturascripts.com/PluginInfoList'
$pluginManager Plugin Manager. PluginManager
$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) string
$dataBase It provides direct access to the database. DataBase
$empresa Selected company. Empresa
$multiRequestProtection MultiRequestProtection
$permissions User permissions on this controller. ControllerPermissions
$request Request on which we can get data. Request
$response HTTP Response object. Response
$template Name of the file for the template. string|bool
$title Title of the page. string
$uri Given uri, default is empty. string
$user User logged in. User|bool
getAllPlugins() array
getMaxFileUpload() Return the max file size that can be uploaded. float
getPageData() Returns basic page attributes array
getPlugins() Return installed plugins without hidden ones. array
privateCore() Runs the controller's private logic. mixed
disablePlugin() Disable the plugin name received. bool
enablePlugin() Enable the plugin name received. bool
execAction() Execute main actions. mixed
removePlugin() Remove and disable the plugin name received. bool
uploadPlugin() Upload and enable a plugin. mixed
__construct() Initialize all objects and properties. mixed
addExtension() mixed
getPageData() Return the basic data for this page. array
getTemplate() Return the template to use for this controller. string|bool
pipe() mixed
privateCore() Runs the controller's private logic. mixed
publicCore() Execute the public part of the controller. mixed
redirect() Redirect to an url or controller. mixed
setTemplate() Set the template to use for this controller. bool
toolBox() ToolBox
url() Return the URL of the actual controller. string
checkPHPversion() mixed
getClassName() Return the name of the controller. string

Constants

PLUGIN_LIST_URL

mixed $PLUGIN_LIST_URL = 'https://facturascripts.com/PluginInfoList'

Properties

$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

$request

Request on which we can get data.

public Request $request

$response

HTTP Response object.

protected Response $response

$template

Name of the file for the template.

private string|bool $template

$uri

Given uri, default is empty.

public string $uri

Methods

getAllPlugins()

public getAllPlugins( ) : array
Return values
array

getMaxFileUpload()

Return the max file size that can be uploaded.

public getMaxFileUpload( ) : float
Return values
float

getPageData()

Returns basic page attributes

public getPageData( ) : array
Return values
array

getPlugins()

Return installed plugins without hidden ones.

public getPlugins( ) : array
Return values
array

disablePlugin()

Disable the plugin name received.

private disablePlugin( $pluginName : string ) : bool
Parameters
$pluginName : string
Return values
bool

enablePlugin()

Enable the plugin name received.

private enablePlugin( $pluginName : string ) : bool
Parameters
$pluginName : string
Return values
bool

execAction()

Execute main actions.

private execAction( $action : string ) : mixed
Parameters
$action : string
Return values
mixed

removePlugin()

Remove and disable the plugin name received.

private removePlugin( $pluginName : string ) : bool
Parameters
$pluginName : string
Return values
bool

uploadPlugin()

Upload and enable a plugin.

private uploadPlugin( $uploadFiles : \Symfony\Component\HttpFoundation\File\UploadedFile[] ) : mixed
Parameters
$uploadFiles : \Symfony\Component\HttpFoundation\File\UploadedFile[]
Return values
mixed

__construct()

Initialize all objects and properties.

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

addExtension()

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

getPageData()

Return the basic data for this page.

public getPageData( ) : array
Return values
array

getTemplate()

Return the template to use for this controller.

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

pipe()

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

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( $url : string , $delay : int ) : mixed
Parameters
$url : string
$delay : int
Return values
mixed

setTemplate()

Set the template to use for this controller.

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

url()

Return the URL of the actual controller.

public url( ) : string
Return values
string

checkPHPversion()

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

getClassName()

Return the name of the controller.

protected getClassName( ) : string
Return values
string

Search results