\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

$toplevelAgent

$toplevelAgent : \nre\core\ToplevelAgent

Der Toplevelagent

Type

\nre\core\ToplevelAgent

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() : \nre\core\Exception

Run the application.

Throws

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

Returns

\nre\core\Exception

Last occurred exception of an subagent

render()

render() 

Render the output.

log()

log(\nre\core\Exception  $exception, integer  $logMode) 

Log an exception

Parameters

\nre\core\Exception $exception

Occurred exception

integer $logMode

Log-mode

loadToplevelAgent()

loadToplevelAgent() 

Load the ToplevelAgent specified by the request.

Throws

\nre\core\ServiceUnavailableException
\nre\core\AgentNotValidException
\nre\core\AgentNotFoundException