Application
extends Facade
in package
Class Application
Table of Contents
Properties
- $container : Container
- $instance : mixed
Methods
- __callStatic() : mixed
- aliasList() : array<string|int, mixed>
- bind() : void
- bootstrap() : void
- checkException() : void
- deleteExceptionStack() : void
- exception() : void
- exists() : bool
- getCookieParameter() : Field
- getExceptionStack() : Exception|null
- getGetParameter() : Field
- getInstance() : mixed
- get service instance
- getPostParameter() : Field_Validation
- getQueryParameter() : Field
- init() : void
- isAcmsJsLoaded() : bool
- licenseActivation() : mixed
- loadLicense() : void
- make() : mixed
- setContainer() : void
- setExceptionStack() : void
- setIsAcmsJsLoaded() : void
- showError() : void
- singleton() : void
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
$instance
protected
static mixed
$instance
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
aliasList()
public
static aliasList() : array<string|int, mixed>
Get the list of registered services in the DI container
Return values
array<string|int, mixed>bind()
public
static bind(string $alias, string|callable $class[, array<string|int, mixed> $arguments = = '[]' ]) : void
Register a service in the DI container
Parameters
- $alias : string
- $class : string|callable
- $arguments : array<string|int, mixed> = = '[]'
bootstrap()
public
static bootstrap(string $alias, callable $callback) : void
Register a bootstrap function for a service
Parameters
- $alias : string
- $callback : callable
checkException()
public
static checkException() : void
Check for exceptions and throw if any
deleteExceptionStack()
public
static deleteExceptionStack() : void
Delete the exception stack
exception()
public
static exception(string $message[, int $code = = '0' ]) : void
Stack an exception
Parameters
- $message : string
- $code : int = = '0'
exists()
public
static exists(string $alias) : bool
Check if a service is registered in the DI container
Parameters
- $alias : string
Return values
boolgetCookieParameter()
public
static getCookieParameter() : Field
Get cookie parameters
Return values
FieldgetExceptionStack()
public
static getExceptionStack() : Exception|null
Get the exception stack
Return values
Exception|nullgetGetParameter()
public
static getGetParameter() : Field
Get GET parameters
Return values
FieldgetInstance()
get service instance
public
static getInstance() : mixed
getPostParameter()
public
static getPostParameter() : Field_Validation
Get POST parameters
Return values
Field_ValidationgetQueryParameter()
public
static getQueryParameter() : Field
Get query parameters
Return values
Fieldinit()
public
static init([array<string|int, mixed> $aliases = = '[]' ][, array<string|int, mixed> $providers = = '[]' ][, bool $ignore_error = = 'false' ]) : void
Initialize the application
Parameters
- $aliases : array<string|int, mixed> = = '[]'
- $providers : array<string|int, mixed> = = '[]'
- $ignore_error : bool = = 'false'
isAcmsJsLoaded()
public
static isAcmsJsLoaded() : bool
Check if ACMS JS is loaded
Return values
boollicenseActivation()
public
static licenseActivation(string $licenseFilePath) : mixed
Activate license
Parameters
- $licenseFilePath : string
loadLicense()
public
static loadLicense() : void
Load license
make()
public
static make(string $alias) : mixed
Get a service from the DI container
Parameters
- $alias : string
setContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
setExceptionStack()
public
static setExceptionStack(Exception|null $exceptionStack) : void
Set the exception stack
Parameters
- $exceptionStack : Exception|null
setIsAcmsJsLoaded()
public
static setIsAcmsJsLoaded(bool $isAcmsJsLoaded) : void
Set the ACMS JS loaded status
Parameters
- $isAcmsJsLoaded : bool
showError()
public
static showError(Exception $e[, bool $log = = 'true' ]) : void
Show error details
Parameters
- $e : Exception
- $log : bool = = 'true'
singleton()
public
static singleton(string $alias, string|callable $class[, array<string|int, mixed> $arguments = = '[]' ]) : void
Register a service as a singleton in the DI container
Parameters
- $alias : string
- $class : string|callable
- $arguments : array<string|int, mixed> = = '[]'
getServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool