public
void
|
#
run(
)
Dispatch a HTTP request to a front controller. Dispatch a HTTP request to a front controller. |
final public
array
|
#
getRequests(
)
Returns all processed requests. Returns all processed requests. Returnsarray of NPresenterRequest
|
final public
NPresenter
|
#
getPresenter(
)
Returns current presenter. Returns current presenter. |
public
NApplication
|
#
setContext(
IContext
$context
)
Gets the context. Gets the context. ReturnsNApplication provides a fluent interface
|
final public
IContext
|
#
getContext(
)
Gets the context. Gets the context. |
final public
object
|
#
getService(
string
$name,
array
$options = NULL
)
Gets the service object of the specified type. Gets the service object of the specified type. Parameters$name string service name$options array options in case service is not singleton |
public
IRouter
|
#
getRouter(
)
Returns router. Returns router. |
public
NApplication
|
#
setRouter(
IRouter
$router
)
Changes router. Changes router. Parameters$router IRouterReturnsNApplication provides a fluent interface
|
public
IPresenterLoader
|
#
getPresenterLoader(
)
Returns presenter loader. Returns presenter loader. |
protected
IHttpRequest
|
#
getHttpRequest(
)
|
protected
IHttpResponse
|
#
getHttpResponse(
)
|
protected
NSession
|
#
getSession(
$namespace = NULL
)
|
public
string
|
#
storeRequest(
mixed
$expiration = '+ 10 minutes'
)
Stores current request to session. Stores current request to session. Parameters$expiration mixed optional expiration timeReturnsstring key
|
public
void
|
#
restoreRequest(
string
$key
)
Restores current request to session. Restores current request to session. Parameters$key string key |
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
static
int
|
$maxLoop | 20 |
# |
bool
|
$catchExceptions | NULL |
enable fault barrier? # |
string
|
$errorPresenter | NULL |
# |
array
|
$onStartup | NULL |
of function(NApplication $sender); Occurs before the application loads presenter # |
array
|
$onShutdown | NULL |
of function(NApplication $sender, Exception $e = NULL); Occurs before the application shuts down # |
array
|
$onRequest | NULL |
of function(NApplication $sender, NPresenterRequest $request); Occurs when a new request is ready for dispatch # |
array
|
$onResponse | NULL |
of function(NApplication $sender, IPresenterResponse $response); Occurs when a new response is received # |
array
|
$onError | NULL |
of function(NApplication $sender, Exception $e); Occurs when an unhandled exception occurs in the application # |
array
|
$allowedMethods | array ( 0 => 'GET', 1 => 'POST', 2 => 'HEAD', 3 => 'PUT', 4 => 'DELETE', ) |
of string # |