PHP Class Ergo, ergo

Exibir arquivo Open project: 99designs/ergo Class Usage Examples

Public Methods

Method Description
__callStatic ( $method, $arguments ) Delegates static calls to the internal {@link Application} object
application ( ) Gets the current application instance
autostart ( $application ) Registers an application to be started when it's first called
isStarted ( ) Whether the application instance is started.
isStarting ( ) Whether the application instance is currently starting.
shutdown ( ) Called as a shutdown function, calls stop() if required
start ( $application ) Starts a particular application instance
stop ( ) Stops the current application instance

Method Details

__callStatic() static public method

Delegates static calls to the internal {@link Application} object
static public __callStatic ( $method, $arguments )

application() public static method

Gets the current application instance
public static application ( )

autostart() public static method

Registers an application to be started when it's first called
public static autostart ( $application )

isStarted() public static method

Whether the application instance is started.
public static isStarted ( )

isStarting() public static method

Whether the application instance is currently starting.
public static isStarting ( )

shutdown() public static method

Called as a shutdown function, calls stop() if required
public static shutdown ( )

start() public static method

Starts a particular application instance
public static start ( $application )

stop() public static method

Stops the current application instance
public static stop ( )