a-blog cms PHP API Reference

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

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
bool

getCookieParameter()

public static getCookieParameter() : Field

Get cookie parameters

Return values
Field

getExceptionStack()

public static getExceptionStack() : Exception|null

Get the exception stack

Return values
Exception|null

getInstance()

get service instance

public static getInstance() : mixed

init()

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
bool

licenseActivation()

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

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
string

getServiceInstance()

protected static getServiceInstance(string $alias) : mixed
Parameters
$alias : string

isCache()

protected static isCache() : bool
Return values
bool

        
On this page

Search results