INLINEERROR_AGENT
INLINEERROR_AGENT
Name of BottomlevelAgent for showing inline errors
QuesttypeAgent for choosing between predefined input values.
$controller : \nre\core\Controller
Controller of this Agent
$log : \nre\core\Logger
Log-system
$request : \nre\core\Request
Current request
$response : \nre\core\Response
Current response
factory(string $agentName, \nre\core\Request $request, \nre\core\Response $response, \nre\core\Logger $log = null)
Instantiate an Agent (Factory Pattern).
| string | $agentName | Name of the Agent to instantiate |
| \nre\core\Request | $request | Current request |
| \nre\core\Response | $response | |
| \nre\core\Logger | $log | Log-system |
saveAnswersOfCharacter(array $seminary, array $questgroup, array $quest, array $character, array $answers)
Save the answers of a Character for a Quest.
| array | $seminary | Current Seminary data |
| array | $questgroup | Current Questgroup data |
| array | $quest | Current Quest data |
| array | $character | Current Character data |
| array | $answers | Character answers for the Quest |
matchAnswersOfCharacter(array $seminary, array $questgroup, array $quest, array $character, array $answers)
Check if answers of a Character for a Quest match the correct ones.
| array | $seminary | Current Seminary data |
| array | $questgroup | Current Questgroup data |
| array | $quest | Current Quest data |
| array | $character | Current Character data |
| array | $answers | Character answers for the Quest |
run(\nre\core\Request $request, \nre\core\Response $response) : \nre\core\Exception
Run the Controller of this Agent and its SubAgents.
| \nre\core\Request | $request | Current request |
| \nre\core\Response | $response | Current response |
Last occurred exception of SubAgents
__construct(\nre\core\Request $request, \nre\core\Response $response, \nre\core\Logger $log = null)
Construct a new Agent.
| \nre\core\Request | $request | Current request |
| \nre\core\Response | $response | |
| \nre\core\Logger | $log | Log-system |
loadController()
Load the Controller of this Agent.
log(\nre\core\Exception $exception, integer $logMode)
Log an error.
| \nre\core\Exception | $exception | Occurred exception |
| integer | $logMode | Log mode |
newInlineError(string $label, \nre\core\Exception $exception)
Create a new InlineError.
| string | $label | Name of the original Agent |
| \nre\core\Exception | $exception | Occurred exception |