ErrLock PHP Framework  0.1
Classes | Static Public Member Functions | List of all members
EPF Class Reference

Entry point to the framework. More...

Inheritance diagram for EPF:
Inheritance graph
[legend]

Classes

class  Message
 Message. More...
 

Static Public Member Functions

static enableDebug (bool $active=true)
 Set debug mode. More...
 
static registerSAPI (string $name, SAPI $sapi)
 Registers a SAPI. More...
 
static run ()
 Run the application.
 
static setModel (Model $model)
 Set the application model. More...
 
static setSAPI (SAPI $sapi=null)
 Set SAPI to use. More...
 

Additional Inherited Members

- Public Member Functions inherited from EPF\StdClass
 __call (string $name, array $args)
 Call to inaccessible method. More...
 
 __get (string $name)
 Getter for inaccessible properties. More...
 
 __set (string $name, $value)
 Setter for inaccessible properties. More...
 

Detailed Description

Entry point to the framework.

All that is needed is to provide a EPF::Model to this class, and call EPF::run

Member Function Documentation

◆ enableDebug()

static EPF::enableDebug ( bool  $active = true)
static

Set debug mode.

Parameters
[in]bool$activeWether to enable or disable debug mode

◆ registerSAPI()

static EPF::registerSAPI ( string  $name,
SAPI  $sapi 
)
static

Registers a SAPI.

Parameters
[in]string$namePHP SAPI name
[in]EPF::SAPI$sapiUser defined SAPI
Exceptions
EPF::Error::AlreadySetSAPI already registered

◆ setModel()

static EPF::setModel ( Model  $model)
static

Set the application model.

Parameters
[in]EPF::Model$modelUser defined model

◆ setSAPI()

static EPF::setSAPI ( SAPI  $sapi = null)
static

Set SAPI to use.

Parameters
[in]EPF::SAPI$sapi
Exceptions
EPF::Error::UnknownSAPIUnknown PHP SAPI

The documentation for this class was generated from the following file: