\nre\coreApi

Abstract class to implement an API.

The API is the center of each application and specifies how and what to run and render.

Summary

Methods
Properties
Constants
__construct()
run()
render()
No public properties found
No constants found
log()
$request
$response
$log
N/A
loadToplevelAgent()
$toplevelAgent
N/A

Properties

Methods

__construct()

__construct(\nre\core\Request  $request, \nre\core\Response  $response) 

Construct a new API.

Parameters

\nre\core\Request $request

Current request

\nre\core\Response $response

run()

run() : \Exception

Run the application.

Throws

\nre\exceptions\DatamodelException
\nre\exceptions\DriverNotValidException
\nre\exceptions\DriverNotFoundException
\nre\exceptions\ViewNotFoundException
\nre\exceptions\ModelNotValidException
\nre\exceptions\ModelNotFoundException
\nre\exceptions\ControllerNotValidException
\nre\exceptions\ControllerNotFoundException
\nre\exceptions\AgentNotValidException
\nre\exceptions\AgentNotFoundException

Returns

\Exception —

Last occurred exception of an subagent

render()

render() 

Render the output.

log()

log(\Exception  $exception, integer  $logMode) 

Log an exception

Parameters

\Exception $exception

Occurred exception

integer $logMode

Log-mode

loadToplevelAgent()

loadToplevelAgent() 

Load the ToplevelAgent specified by the request.

Throws

\nre\exceptions\ServiceUnavailableException
\nre\exceptions\AgentNotValidException
\nre\exceptions\AgentNotFoundException