INLINEERROR_AGENT
INLINEERROR_AGENT
Name of BottomlevelAgent for showing inline errors
Abstract class for implementing a QuesttypeAgent.
$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 $questtypeName, \hhu\z\agents\Request $request, \hhu\z\agents\Response $response, \hhu\z\agents\Logger $log = null)
Instantiate a QuesttypeAgent (Factory Pattern).
string | $questtypeName | Name of the QuesttypeAgent to instantiate |
\hhu\z\agents\Request | $request | Current request |
\hhu\z\agents\Response | $response | Current respone |
\hhu\z\agents\Logger | $log | Log-system |
run(\nre\core\Request $request, \nre\core\Response $response) : \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
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 |
__construct(\nre\core\Request $request, \nre\core\Response $response, \nre\core\Logger $log = null)
Construct a new QuesttypeAgent.
\nre\core\Request | $request | Current request |
\nre\core\Response | $response | Current response |
\nre\core\Logger | $log | Log-system |
loadController()
Load the Controller of this Agent.
getClassName(string $questtypeName, string $agentType = null) : string
Determine the Agent-classname for the given Questtype-name.
string | $questtypeName | Questtype-name to get Agent-classname of |
string | $agentType | Agent type of given Agent name |
Classname for the Questtype-name
errorInline(array $subAgent, \nre\core\Request $request, \nre\core\Excepiton $exception) : array
Handle the exception of a SubAgent.
array | $subAgent | Original (Sub-) Agent |
\nre\core\Request | $request | Current request |
\nre\core\Excepiton | $exception | Occurred exception |
InlineError-SubAgent