93 lines
2.4 KiB
PHP
93 lines
2.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* The Legend of Z
|
|
*
|
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
|
* @copyright 2014 Heinrich-Heine-Universität Düsseldorf
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
|
* @link https://bitbucket.org/coderkun/the-legend-of-z
|
|
*/
|
|
|
|
namespace hhu\z\questtypes;
|
|
|
|
|
|
/**
|
|
* Controller of the Dummy-QuesttypeAgent for testing basic
|
|
* QuesttypeAgent-functionality.
|
|
*
|
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
|
*/
|
|
class DummyQuesttypeController extends \hhu\z\QuesttypeController
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Save the answers of a Character for a Quest.
|
|
*
|
|
* @param array $seminary Current Seminary data
|
|
* @param array $questgroup Current Questgroup data
|
|
* @param array $quest Current Quest data
|
|
* @param array $character Current Character data
|
|
* @param array $answers Character answers for the Quest
|
|
*/
|
|
public function saveAnswersOfCharacter($seminary, $questgroup, $quest, $character, $answers)
|
|
{
|
|
// Do nothing
|
|
}
|
|
|
|
|
|
/**
|
|
* Check if answers of a Character for a Quest match the correct ones.
|
|
*
|
|
* @param array $seminary Current Seminary data
|
|
* @param array $questgroup Current Questgroup data
|
|
* @param array $quest Current Quest data
|
|
* @param array $character Current Character data
|
|
* @param array $answers Character answers for the Quest
|
|
* @return boolean True/false for a right/wrong answer or null for moderator evaluation
|
|
*/
|
|
public function matchAnswersOfCharacter($seminary, $questgroup, $quest, $character, $answers)
|
|
{
|
|
// Set status
|
|
return true;
|
|
}
|
|
|
|
|
|
/**
|
|
* Action: quest.
|
|
*
|
|
* Show the task of a Quest.
|
|
*
|
|
* @param array $seminary Current Seminary data
|
|
* @param array $questgroup Current Questgroup data
|
|
* @param array $quest Current Quest data
|
|
* @param array $character Current Character data
|
|
* @param Exception $exception Character submission exception
|
|
*/
|
|
public function quest($seminary, $questgroup, $quest, $character, $exception)
|
|
{
|
|
// Nothing to do
|
|
}
|
|
|
|
|
|
/**
|
|
* Action: submission.
|
|
*
|
|
* Show the submission of a Character for a Quest.
|
|
*
|
|
* @param array $seminary Current Seminary data
|
|
* @param array $questgroup Current Questgroup data
|
|
* @param array $quest Current Quest data
|
|
* @param array $character Current Character data
|
|
*/
|
|
public function submission($seminary, $questgroup, $quest, $character)
|
|
{
|
|
// Nothing to do
|
|
}
|
|
|
|
}
|
|
|
|
?>
|