fix many docstrings and their formatting

This commit is contained in:
oliver 2016-05-28 12:30:53 +02:00
parent e50c2bb5e6
commit 7085de8fe2
36 changed files with 679 additions and 659 deletions

View file

@ -199,12 +199,12 @@
/** /**
* Save the answer of a Character group for a Station. * Save the answer of a Character group for a Station.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $group Current Character data * @param array $charactergroup Current Character group data
* @param array $answers Character answers for the Quest * @param array $answer Character group answer for the Station
*/ */
public function saveAnswer($seminary, $groupsgroup, $quest, $station, $group, $answer) public function saveAnswer($seminary, $groupsgroup, $quest, $station, $group, $answer)
{ {
@ -223,12 +223,12 @@
* Check if the answer of a Character group for a Station matches the * Check if the answer of a Character group for a Station matches the
* correct one. * correct one.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $group Current Character group data * @param array $charactergroup Current Character group data
* @param array $answers Character answers for the Quest * @param array $answer Character group answer for the Station
*/ */
public function matchAnswer($seminary, $groupsgroup, $quest, $station, $group, $answer) public function matchAnswer($seminary, $groupsgroup, $quest, $station, $group, $answer)
{ {

View file

@ -996,7 +996,7 @@
* *
* @param string $stationtypeClassname Name of the class for the Stationtype of a Station * @param string $stationtypeClassname Name of the class for the Stationtype of a Station
* @param array $seminary Seminary data * @param array $seminary Seminary data
* @param array $questgroup Questgroup data * @param array $groupsgroup Groups-group data
* @param array $quest Quest data * @param array $quest Quest data
* @param array $station Station data * @param array $station Station data
* @param array $charactergroup Charactergroup data * @param array $charactergroup Charactergroup data
@ -1164,7 +1164,7 @@
* Create a response for the Stationtype rendering. * Create a response for the Stationtype rendering.
* *
* @param string $action Action to run * @param string $action Action to run
* @param mixed $param Additional parameters to add to the response * @param mixed $param1 Additional parameters to add to the response
* @return \nre\core\Response Generated response * @return \nre\core\Response Generated response
*/ */
private function createStationtypeResponse($action, $param1) private function createStationtypeResponse($action, $param1)

View file

@ -67,7 +67,7 @@
* List Questtopics of a Seminary. * List Questtopics of a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
*/ */
public function index($seminaryUrl) public function index($seminaryUrl)
{ {
@ -111,7 +111,7 @@
* Show a Questtopic and its Quests with Questsubtopics. * Show a Questtopic and its Quests with Questsubtopics.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $eminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questtopicUrl URL-Title of Questtopic * @param string $questtopicUrl URL-Title of Questtopic
*/ */
public function topic($seminaryUrl, $questtopicUrl) public function topic($seminaryUrl, $questtopicUrl)
@ -159,7 +159,7 @@
* Manage a Questtopic and its Quests with Questsubtopics. * Manage a Questtopic and its Quests with Questsubtopics.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $eminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questtopicUrl URL-Title of Questtopic * @param string $questtopicUrl URL-Title of Questtopic
*/ */
public function manage($seminaryUrl, $questtopicUrl) public function manage($seminaryUrl, $questtopicUrl)
@ -233,7 +233,7 @@
* Create a new Questtopic for a Seminary. * Create a new Questtopic for a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
*/ */
public function create($seminaryUrl) public function create($seminaryUrl)
{ {
@ -296,7 +296,7 @@
* Edit a Questtopic of a Seminary and its Questsubtopics. * Edit a Questtopic of a Seminary and its Questsubtopics.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $eminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questtopicUrl URL-Title of Questtopic * @param string $questtopicUrl URL-Title of Questtopic
*/ */
public function edit($seminaryUrl, $questtopicUrl) public function edit($seminaryUrl, $questtopicUrl)
@ -472,7 +472,7 @@
* Delete a Questtopic of a Seminary. * Delete a Questtopic of a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $eminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questtopicUrl URL-Title of Questtopic * @param string $questtopicUrl URL-Title of Questtopic
*/ */
public function delete($seminaryUrl, $questtopicUrl) public function delete($seminaryUrl, $questtopicUrl)

View file

@ -45,7 +45,7 @@
* Generate a mail message to notify of a new user registration. * Generate a mail message to notify of a new user registration.
* *
* @param array $receiver User that the message will be send to * @param array $receiver User that the message will be send to
* @param array $neUser Newly registered user * @param array $newUser Newly registered user
*/ */
public function userregistration($receiver, $newUser) public function userregistration($receiver, $newUser)
{ {

View file

@ -27,7 +27,7 @@
/** /**
* Action: index. * Action: index.
* *
* @param $array $user User receiving mail * @param array $user User receiving mail
*/ */
public function index($user) public function index($user)
{ {

View file

@ -117,8 +117,8 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-title of the Seminary * @param string $seminaryUrl URL-title of the Seminary
* @param string $category Category to show moodpic of * @param string $category Category to show moodpic of
* @param string $action Action for processing the media * @param string $action Action for processing the media
*/ */
public function seminarymoodpic($seminaryUrl, $category=null, $action=null) public function seminarymoodpic($seminaryUrl, $category=null, $action=null)
{ {
@ -209,8 +209,8 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-title of the Seminary * @param string $seminaryUrl URL-title of the Seminary
* @param string $mediaUrl URL-name of the medium * @param string $mediaUrl URL-name of the medium
* @param string $action Action for processing the media * @param string $action Action for processing the media
*/ */
public function seminary($seminaryUrl, $mediaUrl, $action=null) public function seminary($seminaryUrl, $mediaUrl, $action=null)
{ {
@ -250,8 +250,8 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-title of the Seminary * @param string $seminaryUrl URL-title of the Seminary
* @param string $charactertypeUrl URL-title of Character type * @param string $charactertypeUrl URL-title of Character type
* @param int $xplevel XP-level * @param int $xplevel XP-level
* @param string $action Size to show (avatar or portrait) * @param string $action Size to show (avatar or portrait)
*/ */
public function avatar($seminaryUrl, $charactertypeUrl, $xplevel, $action='avatar') public function avatar($seminaryUrl, $charactertypeUrl, $xplevel, $action='avatar')
{ {
@ -301,7 +301,7 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-title of the Seminary * @param string $seminaryUrl URL-title of the Seminary
* @param string $achievementUrl URL-title of the Achievement * @param string $achievementUrl URL-title of the Achievement
* @param string $action Action for processing the media * @param string $locked Whether to display the locked version or not
*/ */
public function achievement($seminaryUrl, $achievementUrl, $locked=null) public function achievement($seminaryUrl, $achievementUrl, $locked=null)
{ {
@ -358,7 +358,7 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of a Seminary * @param string $seminaryUrl URL-Title of a Seminary
* @param string $groupsgroupUrl URL-Title of a Character groups-group * @param string $groupsgroupUrl URL-Title of a Character groups-group
* @param string $groupUrl URL-Title of a Character group * @param string $groupUrl URL-Title of a Character group
*/ */
public function charactergroup($seminaryUrl, $groupsgroupUrl, $groupUrl) public function charactergroup($seminaryUrl, $groupsgroupUrl, $groupUrl)
{ {
@ -403,7 +403,7 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of a Seminary * @param string $seminaryUrl URL-Title of a Seminary
* @param string $groupsgroupUrl URL-Title of a Character groups-group * @param string $groupsgroupUrl URL-Title of a Character groups-group
* @param string $questUrl URL-Title of a Character groups Quest * @param string $questUrl URL-Title of a Character groups Quest
*/ */
public function charactergroupsquest($seminaryUrl, $groupsgroupUrl, $questUrl) public function charactergroupsquest($seminaryUrl, $groupsgroupUrl, $questUrl)
{ {
@ -530,7 +530,7 @@
* @param string $seminaryUrl URL-title of Seminary * @param string $seminaryUrl URL-title of Seminary
* @param string $groupsgroupUrl URL-title of Character groups-group * @param string $groupsgroupUrl URL-title of Character groups-group
* @param string $achievementUrl URL-title of the Achievement * @param string $achievementUrl URL-title of the Achievement
* @param string $action Action for processing the media * @param string $locked Whether to show the locked version or not
*/ */
public function charactergroupsachievement($seminaryUrl, $groupsgroupUrl, $achievementUrl, $locked=null) public function charactergroupsachievement($seminaryUrl, $groupsgroupUrl, $achievementUrl, $locked=null)
{ {
@ -573,7 +573,7 @@
* caching accordingly. * caching accordingly.
* *
* @param string $fileName Filename * @param string $fileName Filename
* @return boolean HTTP-status 304 was set (in cache) * @return boolean HTTP-status 304 was set (in cache)
*/ */
private function setCacheHeaders($fileName) private function setCacheHeaders($fileName)
{ {

View file

@ -47,6 +47,7 @@
* Show moodpic of a Seminary. * Show moodpic of a Seminary.
* *
* @param string $seminaryUrl URL of Seminary to show moodpic of * @param string $seminaryUrl URL of Seminary to show moodpic of
* @param string $agentName Name of Agent to show moodpic for
*/ */
public function seminary($seminaryUrl, $agentName=null) public function seminary($seminaryUrl, $agentName=null)
{ {
@ -86,7 +87,7 @@
* Show moodpic of a Questgroup. * Show moodpic of a Questgroup.
* *
* @param string $seminaryUrl URL of Seminary * @param string $seminaryUrl URL of Seminary
* @param string $quesgroupUrl URL of Questgroup to show moodpic of * @param string $questgroupUrl URL of Questgroup to show moodpic of
*/ */
public function questgroup($seminaryUrl, $questgroupUrl) public function questgroup($seminaryUrl, $questgroupUrl)
{ {

View file

@ -53,8 +53,8 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of a Seminary * @param string $seminaryUrl URL-Title of a Seminary
* @param string $groupsgroupUrl URL-Title of a Character groups-group
* @param string $achievementUrl URL of Achievement * @param string $achievementUrl URL of Achievement
* @param int $size QR-code size
*/ */
public function achievement($seminaryUrl, $achievementUrl, $size=1) public function achievement($seminaryUrl, $achievementUrl, $size=1)
{ {
@ -129,6 +129,7 @@
* @param string $groupsgroupUrl URL-Title of a Character groups-group * @param string $groupsgroupUrl URL-Title of a Character groups-group
* @param string $questUrl URL-Title of a Character groups Quest * @param string $questUrl URL-Title of a Character groups Quest
* @param string $stationUrl URL of Character groups Quest station * @param string $stationUrl URL of Character groups Quest station
* @param int $size QR-code size
*/ */
public function charactergroupsqueststation($seminaryUrl, $groupsgroupUrl, $questUrl, $stationUrl, $size=1) public function charactergroupsqueststation($seminaryUrl, $groupsgroupUrl, $questUrl, $stationUrl, $size=1)
{ {
@ -166,6 +167,7 @@
* @param string $seminaryUrl URL-Title of a Seminary * @param string $seminaryUrl URL-Title of a Seminary
* @param string $groupsgroupUrl URL-Title of a Character groups-group * @param string $groupsgroupUrl URL-Title of a Character groups-group
* @param string $achievementUrl URL of Achievement * @param string $achievementUrl URL of Achievement
* @param int $size QR-code size
*/ */
public function charactergroupsachievements($seminaryUrl, $groupsgroupUrl, $achievementUrl, $size=1) public function charactergroupsachievements($seminaryUrl, $groupsgroupUrl, $achievementUrl, $size=1)
{ {
@ -201,7 +203,7 @@
* caching accordingly. * caching accordingly.
* *
* @param string $fileName Filename * @param string $fileName Filename
* @return boolean HTTP-status 304 was set (in cache) * @return boolean HTTP-status 304 was set (in cache)
*/ */
private function setCacheHeaders($fileName) private function setCacheHeaders($fileName)
{ {
@ -233,6 +235,13 @@
} }
/**
* Generate QR-code with given text and in given size.
*
* @param string $text QR-code content
* @param int $size QR-code size
* @return mixed Null
*/
private function generateQRcode($text, $size) private function generateQRcode($text, $size)
{ {
\hhu\z\lib\Phpqrcode::load(); \hhu\z\lib\Phpqrcode::load();
@ -250,7 +259,7 @@
* @throws \nre\exceptions\ParamsNotValidException * @throws \nre\exceptions\ParamsNotValidException
* @param array $media Medium to get file for * @param array $media Medium to get file for
* @param string $action Action for processing the media * @param string $action Action for processing the media
* @return object File for the medium (or null if medium is cached) * @return object File for the medium (or null if medium is cached)
*/ */
private function getMediaFile($media, $action=null) private function getMediaFile($media, $action=null)
{ {
@ -327,9 +336,9 @@
* *
* @param string $fileName Absolute pathname of image to resize * @param string $fileName Absolute pathname of image to resize
* @param string $mimeType Mimetype of target image * @param string $mimeType Mimetype of target image
* @param int $width Max. width to resize to * @param int $width Max. width to resize to
* @param int $height Max. height to resize to * @param int $height Max. height to resize to
* @return mixed Resized image * @return mixed Resized image
*/ */
private static function resizeImage($fileName, $mimeType, $width, $height) private static function resizeImage($fileName, $mimeType, $width, $height)
{ {

View file

@ -88,7 +88,7 @@
* List all Quests for a Seminary. * List all Quests for a Seminary.
* *
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $all Show all Quests * @param string $all Show all Quests
*/ */
public function index($seminaryUrl, $all=null) public function index($seminaryUrl, $all=null)
{ {
@ -155,9 +155,9 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
* @param string $questtexttypeUrl URL-Title of Questtexttype * @param string $questtexttypeUrl URL-Title of Questtexttype
* @param int $questtextPos Position of Questtext * @param int $questtextPos Position of Questtext
*/ */
public function quest($seminaryUrl, $questgroupUrl, $questUrl, $questtexttypeUrl=null, $questtextPos=1) public function quest($seminaryUrl, $questgroupUrl, $questUrl, $questtexttypeUrl=null, $questtextPos=1)
{ {
@ -366,7 +366,7 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
*/ */
public function submissions($seminaryUrl, $questgroupUrl, $questUrl) public function submissions($seminaryUrl, $questgroupUrl, $questUrl)
{ {
@ -414,7 +414,7 @@
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
* @param string $characterUrl URL-Title of Character * @param string $characterUrl URL-Title of Character
*/ */
public function submission($seminaryUrl, $questgroupUrl, $questUrl, $characterUrl) public function submission($seminaryUrl, $questgroupUrl, $questUrl, $characterUrl)
@ -616,8 +616,8 @@
* Edit a Quest of a Seminary. * Edit a Quest of a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
*/ */
public function edit($seminaryUrl, $questgroupUrl, $questUrl) public function edit($seminaryUrl, $questgroupUrl, $questUrl)
@ -790,8 +790,8 @@
* Edit the task of a Quest of a Seminary. * Edit the task of a Quest of a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
*/ */
public function edittask($seminaryUrl, $questgroupUrl, $questUrl) public function edittask($seminaryUrl, $questgroupUrl, $questUrl)
@ -833,8 +833,8 @@
* Edit the texts of a Quest of a Seminary. * Edit the texts of a Quest of a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
*/ */
public function edittexts($seminaryUrl, $questgroupUrl, $questUrl) public function edittexts($seminaryUrl, $questgroupUrl, $questUrl)
@ -1058,8 +1058,8 @@
* Delete a Quest of a Seminary. * Delete a Quest of a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of Seminary * @param string $seminaryUrl URL-Title of Seminary
* @param string $questgroupUrl URL-Title of Questgroup * @param string $questgroupUrl URL-Title of Questgroup
* @param string $questUrl URL-Title of Quest * @param string $questUrl URL-Title of Quest
*/ */
public function delete($seminaryUrl, $questgroupUrl, $questUrl) public function delete($seminaryUrl, $questgroupUrl, $questUrl)
@ -1112,11 +1112,11 @@
* Render and handle the task of a Quest. * Render and handle the task of a Quest.
* *
* @param string $questtypeClassname Name of the class for the Questtype of a Quest * @param string $questtypeClassname Name of the class for the Questtype of a Quest
* @param array $seminary Seminary data * @param array $seminary Seminary data
* @param array $questgroup Questgroup data * @param array $questgroup Questgroup data
* @param array $quest Quest data * @param array $quest Quest data
* @param array $character Character data * @param array $character Character data
* @return string Rendered output * @return string Rendered output
*/ */
private function renderTask($questtypeClassname, $seminary, $questgroup, $quest, $character) private function renderTask($questtypeClassname, $seminary, $questgroup, $quest, $character)
{ {
@ -1223,11 +1223,11 @@
* Render and handle a Character submission for a Quest. * Render and handle a Character submission for a Quest.
* *
* @param string $questtypeClassname Name of the class for the Questtype of a Quest * @param string $questtypeClassname Name of the class for the Questtype of a Quest
* @param array $seminary Seminary data * @param array $seminary Seminary data
* @param array $questgroup Questgroup data * @param array $questgroup Questgroup data
* @param array $quest Quest data * @param array $quest Quest data
* @param array $character Character data * @param array $character Character data
* @return string Rendered output * @return string Rendered output
*/ */
private function renderTaskSubmission($questtypeClassname, $seminary, $questgroup, $quest, $character) private function renderTaskSubmission($questtypeClassname, $seminary, $questgroup, $quest, $character)
{ {
@ -1303,10 +1303,10 @@
* Render editing of a Quest. * Render editing of a Quest.
* *
* @param string $questtypeClassname Name of the class for the Questtype of a Quest * @param string $questtypeClassname Name of the class for the Questtype of a Quest
* @param array $seminary Seminary data * @param array $seminary Seminary data
* @param array $questgroup Questgroup data * @param array $questgroup Questgroup data
* @param array $quest Quest data * @param array $quest Quest data
* @return string Rendered output * @return string Rendered output
*/ */
private function renderTaskEditing($questtypeClassname, $seminary, $questgroup, $quest) private function renderTaskEditing($questtypeClassname, $seminary, $questgroup, $quest)
{ {
@ -1356,9 +1356,9 @@
/** /**
* Create a response for the Questtype rendering. * Create a response for the Questtype rendering.
* *
* @param string $action Action to run * @param string $action Action to run
* @param mixed $param Additional parameters to add to the response * @param mixed $param1 Additional parameters to add to the response
* @return \nre\core\Response Generated response * @return \nre\core\Response Generated response
*/ */
private function createQuesttypeResponse($action, $param1) private function createQuesttypeResponse($action, $param1)
{ {
@ -1387,10 +1387,10 @@
/** /**
* Load and construct the QuesttypeAgent for a Questtype. * Load and construct the QuesttypeAgent for a Questtype.
* *
* @param string $questtypeClassname Name of the class for the Questtype of a Quest * @param string $questtypeClassname Name of the class for the Questtype of a Quest
* @param \nre\core\Request $request Request * @param \nre\core\Request $request Request
* @param \nre\core\Response $response Response * @param \nre\core\Response $response Response
* @return \hhu\z\agents\QuesttypeAgent Questtype Agent * @return \hhu\z\agents\QuesttypeAgent Questtype Agent
*/ */
private function loadQuesttypeAgent($questtypeClassname, $request, $response) private function loadQuesttypeAgent($questtypeClassname, $request, $response)
{ {
@ -1407,9 +1407,9 @@
* Run and render the Agent for a QuesttypeAgent and return ist output. * Run and render the Agent for a QuesttypeAgent and return ist output.
* *
* @param \nre\core\Agent $questtypeAgent QuesttypeAgent to run and render * @param \nre\core\Agent $questtypeAgent QuesttypeAgent to run and render
* @param \nre\core\Request $request Request * @param \nre\core\Request $request Request
* @param \nre\core\Response $response Response * @param \nre\core\Response $response Response
* @return string Rendered output * @return string Rendered output
*/ */
private function runQuesttypeAgent($questtypeAgent, $request, $response) private function runQuesttypeAgent($questtypeAgent, $request, $response)
{ {

View file

@ -46,7 +46,7 @@
* *
* @param mixed $input User input to validate * @param mixed $input User input to validate
* @param array $settings Validation setting * @param array $settings Validation setting
* @return mixed True or the settings the validation fails on * @return mixed True or the settings the validation fails on
*/ */
public function validate($input, $settings) public function validate($input, $settings)
{ {
@ -80,7 +80,7 @@
* *
* @param array $params User input parameters * @param array $params User input parameters
* @param array $index Names of parameter to validate and to validate against * @param array $index Names of parameter to validate and to validate against
* @return mixed True or the parameter with settings the validation failed on * @return mixed True or the parameter with settings the validation failed on
*/ */
public function validateParam($params, $index) public function validateParam($params, $index)
{ {
@ -104,7 +104,7 @@
* *
* @param array $params User input parameters * @param array $params User input parameters
* @param array $indices Names of parameters to validate and to validate against * @param array $indices Names of parameters to validate and to validate against
* @return mixed True or the parameters with settings the validation failed on * @return mixed True or the parameters with settings the validation failed on
*/ */
public function validateParams($params, $indices) public function validateParams($params, $indices)
{ {
@ -128,7 +128,7 @@
* @param string $index Name of parameter of the custom validation result * @param string $index Name of parameter of the custom validation result
* @param string $setting Name of setting of the custom validation result * @param string $setting Name of setting of the custom validation result
* @param mixed $result Validation result * @param mixed $result Validation result
* @return mixed The altered validation array * @return mixed The altered validation array
*/ */
public function addValidationResult($validation, $index, $setting, $result) public function addValidationResult($validation, $index, $setting, $result)
{ {
@ -155,8 +155,8 @@
* *
* @param mixed $validation Validation array to add result to * @param mixed $validation Validation array to add result to
* @param string $index Name of parameter of the custom validation result * @param string $index Name of parameter of the custom validation result
* @param mixed $result Validation result * @param mixed $results Validation result
* @return mixed The altered validation array * @return mixed The altered validation array
*/ */
public function addValidationResults($validation, $index, $results) public function addValidationResults($validation, $index, $results)
{ {

View file

@ -43,9 +43,9 @@
/** /**
* Get an Achievement by its URL. * Get an Achievement by its URL.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $achievementUrl URL-title of Achievement * @param string $achievementUrl URL-title of Achievement
* @return array Achievement data * @return array Achievement data
*/ */
public function getAchievementByUrl($seminaryId, $achievementUrl) public function getAchievementByUrl($seminaryId, $achievementUrl)
{ {
@ -69,8 +69,8 @@
/** /**
* Get an Achievement by its ID. * Get an Achievement by its ID.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @return array Achievement data * @return array Achievement data
*/ */
public function getAchievementById($achievementId) public function getAchievementById($achievementId)
{ {
@ -95,8 +95,8 @@
* Get all not yet achieved Achievements for a Seminary that can * Get all not yet achieved Achievements for a Seminary that can
* only be achieved once (only by one Character). * only be achieved once (only by one Character).
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @return array Achievements data * @return array Achievements data
*/ */
public function getUnachievedOnlyOnceAchievementsForSeminary($seminaryId) public function getUnachievedOnlyOnceAchievementsForSeminary($seminaryId)
{ {
@ -118,8 +118,8 @@
/** /**
* Get all Achievements that have a deadline. * Get all Achievements that have a deadline.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @return array Achievements data * @return array Achievements data
*/ */
public function getDeadlineAchievements($seminaryId) public function getDeadlineAchievements($seminaryId)
{ {
@ -138,10 +138,10 @@
/** /**
* Get seldom Achievements. * Get seldom Achievements.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $count Number of Achievements to retrieve * @param int $count Number of Achievements to retrieve
* @param bool $alsoWithDeadline Include Achievements with deadline (optional) * @param bool $alsoWithDeadline Include Achievements with deadline (optional)
* @return array List of seldom Achievements * @return array List of seldom Achievements
*/ */
public function getSeldomAchievements($seminaryId, $count, $alsoWithDeadline=true) public function getSeldomAchievements($seminaryId, $count, $alsoWithDeadline=true)
{ {
@ -167,9 +167,9 @@
/** /**
* Get all achieved Achievements for a Character. * Get all achieved Achievements for a Character.
* *
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @param bool $alsoWithDeadline Include Achievements with deadline (optional) * @param bool $alsoWithDeadline Include Achievements with deadline (optional)
* @return array Achievements data * @return array Achievements data
*/ */
public function getAchievedAchievementsForCharacter($characterId, $alsoWithDeadline=true) public function getAchievedAchievementsForCharacter($characterId, $alsoWithDeadline=true)
{ {
@ -189,11 +189,11 @@
/** /**
* Get all not yet achieved Achievements for a Character. * Get all not yet achieved Achievements for a Character.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @param boolean $includeOnlyOnce Include Achievements that can only be achieved by one Character * @param boolean $includeOnlyOnce Include Achievements that can only be achieved by one Character
* @param boolean $alsoWithDeadline Include milestone Achievements * @param boolean $alsoWithDeadline Include milestone Achievements
* @return array Achievements data * @return array Achievements data
*/ */
public function getUnachhievedAchievementsForCharacter($seminaryId, $characterId, $includeOnlyOnce=false, $alsoWithDeadline=true) public function getUnachhievedAchievementsForCharacter($seminaryId, $characterId, $includeOnlyOnce=false, $alsoWithDeadline=true)
{ {
@ -221,10 +221,10 @@
/** /**
* Get the amount of Achievement for a Seminary. * Get the amount of Achievement for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param boolean $includeOnlyOnce Include Achievements that can only be achieved by one Character * @param boolean $includeOnlyOnce Include Achievements that can only be achieved by one Character
* @param boolean $alsoWithDeadline Include milestone Achievements * @param boolean $alsoWithDeadline Include milestone Achievements
* @return int Count of Achievements * @return int Count of Achievements
*/ */
public function getAchievementsCountForSeminary($seminaryId, $includeOnlyOnce=false, $alsoWithDeadline=true) public function getAchievementsCountForSeminary($seminaryId, $includeOnlyOnce=false, $alsoWithDeadline=true)
{ {
@ -249,8 +249,8 @@
/** /**
* Get all Achievements for a Seminary. * Get all Achievements for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @return array List of Achievements * @return array List of Achievements
*/ */
public function getAchievementsForSeminary($seminaryId) public function getAchievementsForSeminary($seminaryId)
{ {
@ -270,8 +270,8 @@
* Get the rank for the number of achieved Achievements. * Get the rank for the number of achieved Achievements.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $xps Amount of achieved Achievements * @param int $count Amount of achieved Achievements
* @return int Rank of Achievements count * @return int Rank of Achievements count
*/ */
public function getCountRank($seminaryId, $count) public function getCountRank($seminaryId, $count)
{ {
@ -301,8 +301,8 @@
/** /**
* Get all date conditions for an Achievement. * Get all date conditions for an Achievement.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @return array Date conditions * @return array Date conditions
*/ */
public function getAchievementConditionsDate($achievementId) public function getAchievementConditionsDate($achievementId)
{ {
@ -319,7 +319,7 @@
/** /**
* Check a date condition. * Check a date condition.
* *
* @param string $select SELECT-string with date-functions * @param string $select SELECT-string with date-functions
* @return boolean Result * @return boolean Result
*/ */
public function checkAchievementConditionDate($select) public function checkAchievementConditionDate($select)
@ -339,9 +339,9 @@
/** /**
* Add a new date condition. * Add a new date condition.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $achievementId ID of Achievement to add condition to * @param int $achievementId ID of Achievement to add condition to
* @param string $select SELECT-string for condition * @param string $select SELECT-string for condition
*/ */
public function addAchievementConditionDate($userId, $achievementId, $select) public function addAchievementConditionDate($userId, $achievementId, $select)
{ {
@ -362,8 +362,8 @@
/** /**
* Edit a date condition. * Edit a date condition.
* *
* @param int $conditionId ID of condition to edit * @param int $conditionId ID of condition to edit
* @param string $select New SELECT-string for condition * @param string $select New SELECT-string for condition
*/ */
public function editAchievementConditionDate($conditionId, $select) public function editAchievementConditionDate($conditionId, $select)
{ {
@ -414,8 +414,8 @@
/** /**
* Get all Character conditions for an Achievement. * Get all Character conditions for an Achievement.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @return array Character conditions * @return array Character conditions
*/ */
public function getAchievementConditionsCharacter($achievementId) public function getAchievementConditionsCharacter($achievementId)
{ {
@ -432,10 +432,10 @@
/** /**
* Check a Character condition. * Check a Character condition.
* *
* @param string $field Field to check * @param string $field Field to check
* @param int $value The value the field has to match * @param int $value The value the field has to match
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return boolean Result * @return boolean Result
*/ */
public function checkAchievementConditionCharacter($field, $value, $characterId) public function checkAchievementConditionCharacter($field, $value, $characterId)
{ {
@ -470,10 +470,10 @@
/** /**
* Get the progress for a Character condition. * Get the progress for a Character condition.
* *
* @param string $field Field to check * @param string $field Field to check
* @param int $value The value the field has to match * @param int $value The value the field has to match
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return float Percentage progress * @return float Percentage progress
*/ */
public function getAchievementConditionCharacterProgress($field, $value, $characterId) public function getAchievementConditionCharacterProgress($field, $value, $characterId)
{ {
@ -505,10 +505,10 @@
/** /**
* Add a new Character condition. * Add a new Character condition.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $achievementId ID of Achievement to add condition to * @param int $achievementId ID of Achievement to add condition to
* @param string $field Field to match * @param string $field Field to match
* @param string $value Value to match * @param string $value Value to match
*/ */
public function addAchievementConditionCharacter($userId, $achievementId, $field, $value) public function addAchievementConditionCharacter($userId, $achievementId, $field, $value)
{ {
@ -530,9 +530,9 @@
/** /**
* Edit a Character condition. * Edit a Character condition.
* *
* @param int $conditionId ID of condition to edit * @param int $conditionId ID of condition to edit
* @param string $field Field to match * @param string $field Field to match
* @param string $value Value to match * @param string $value Value to match
*/ */
public function editAchievementConditionCharacter($conditionId, $field, $value) public function editAchievementConditionCharacter($conditionId, $field, $value)
{ {
@ -584,8 +584,8 @@
/** /**
* Get all Quest conditions for an Achievement. * Get all Quest conditions for an Achievement.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @return array Quest conditions * @return array Quest conditions
*/ */
public function getAchievementConditionsQuest($achievementId) public function getAchievementConditionsQuest($achievementId)
{ {
@ -602,14 +602,14 @@
/** /**
* Check a Quest condition. * Check a Quest condition.
* *
* @param string $field Field to check * @param string $field Field to check
* @param boolean $count Conut field-value * @param boolean $count Conut field-value
* @param int $value The value the field has to match * @param int $value The value the field has to match
* @param int $status Status of Quest or NULL * @param int $status Status of Quest or NULL
* @param string $groupby Field to group or NULL * @param string $groupby Field to group or NULL
* @param int $questId ID of related Quest or NULL * @param int $questId ID of related Quest or NULL
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return boolean Result * @return boolean Result
*/ */
public function checkAchievementConditionQuest($field, $count, $value, $status, $groupby, $questId, $characterId) public function checkAchievementConditionQuest($field, $count, $value, $status, $groupby, $questId, $characterId)
{ {
@ -644,14 +644,14 @@
/** /**
* Get the progress for a Quest condition. * Get the progress for a Quest condition.
* *
* @param string $field Field to check * @param string $field Field to check
* @param boolean $count Conut field-value * @param boolean $count Conut field-value
* @param int $value The value the field has to match * @param int $value The value the field has to match
* @param int $status Status of Quest or NULL * @param int $status Status of Quest or NULL
* @param string $groupby Field to group or NULL * @param string $groupby Field to group or NULL
* @param int $questId ID of related Quest or NULL * @param int $questId ID of related Quest or NULL
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return float Percentage progress * @return float Percentage progress
*/ */
public function getAchievementConditionQuestProgress($field, $count, $value, $status, $groupby, $questId, $characterId) public function getAchievementConditionQuestProgress($field, $count, $value, $status, $groupby, $questId, $characterId)
{ {
@ -688,14 +688,14 @@
/** /**
* Add a new Quest condition. * Add a new Quest condition.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $achievementId ID of Achievement to add condition to * @param int $achievementId ID of Achievement to add condition to
* @param string $field Field to match * @param string $field Field to match
* @param boolean $count Count the value * @param boolean $count Count the value
* @param string $value Value to match * @param string $value Value to match
* @param int $questId ID of Quest (optional) * @param int $questId ID of Quest (optional)
* @param int $status Quest status (optional) * @param int $status Quest status (optional)
* @param string $groupby Field to group by (optional) * @param string $groupby Field to group by (optional)
*/ */
public function addAchievementConditionQuest($userId, $achievementId, $field, $count, $value, $questId=null, $status=null, $groupby=null) public function addAchievementConditionQuest($userId, $achievementId, $field, $count, $value, $questId=null, $status=null, $groupby=null)
{ {
@ -721,13 +721,13 @@
/** /**
* Edit a Quest condition. * Edit a Quest condition.
* *
* @param int $conditionId ID of condition to edit * @param int $conditionId ID of condition to edit
* @param string $field Field to match * @param string $field Field to match
* @param boolean $count Count the value * @param boolean $count Count the value
* @param string $value Value to match * @param string $value Value to match
* @param int $questId ID of Quest (optional) * @param int $questId ID of Quest (optional)
* @param int $status Quest status (optional) * @param int $status Quest status (optional)
* @param string $groupby Field to group by (optional) * @param string $groupby Field to group by (optional)
*/ */
public function editAchievementConditionQuest($conditionId, $field, $count, $value, $questId=null, $status=null, $groupby=null) public function editAchievementConditionQuest($conditionId, $field, $count, $value, $questId=null, $status=null, $groupby=null)
{ {
@ -807,8 +807,8 @@
/** /**
* Get all Metaachievement conditions for an Achievement. * Get all Metaachievement conditions for an Achievement.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @return array Metaachievement conditions * @return array Metaachievement conditions
*/ */
public function getAchievementConditionsAchievement($achievementId) public function getAchievementConditionsAchievement($achievementId)
{ {
@ -825,13 +825,13 @@
/** /**
* Check a Metaachievement condition. * Check a Metaachievement condition.
* *
* @param string $field Field to check * @param string $field Field to check
* @param boolean $count Conut field-value * @param boolean $count Conut field-value
* @param int $value The value the field has to match * @param int $value The value the field has to match
* @param string $groupby Field to group or NULL * @param string $groupby Field to group or NULL
* @param int $metaAchievementId ID of related Achievement or NULL * @param int $metaAchievementId ID of related Achievement or NULL
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return boolean Result * @return boolean Result
*/ */
public function checkAchievementConditionAchievement($field, $count, $value, $groupby, $metaAchievementId, $characterId) public function checkAchievementConditionAchievement($field, $count, $value, $groupby, $metaAchievementId, $characterId)
{ {
@ -865,13 +865,13 @@
/** /**
* Get the progress for a Metaachievement condition. * Get the progress for a Metaachievement condition.
* *
* @param string $field Field to check * @param string $field Field to check
* @param boolean $count Conut field-value * @param boolean $count Conut field-value
* @param int $value The value the field has to match * @param int $value The value the field has to match
* @param string $groupby Field to group or NULL * @param string $groupby Field to group or NULL
* @param int $metaAchievementId ID of related Achievement or NULL * @param int $metaAchievementId ID of related Achievement or NULL
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return float Percentage progress * @return float Percentage progress
*/ */
public function getAchievementConditionAchievementProgress($field, $count, $value, $groupby, $metaAchievementId, $characterId) public function getAchievementConditionAchievementProgress($field, $count, $value, $groupby, $metaAchievementId, $characterId)
{ {
@ -907,13 +907,13 @@
/** /**
* Add a new Achievement condition. * Add a new Achievement condition.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $achievementId ID of Achievement to add condition to * @param int $achievementId ID of Achievement to add condition to
* @param string $field Field to match * @param string $field Field to match
* @param boolean $count Count the value * @param boolean $count Count the value
* @param string $value Value to match * @param string $value Value to match
* @param int $metaAchievementId ID of Meta-Achievement (optional) * @param int $metaAchievementId ID of Meta-Achievement (optional)
* @param string $groupby Field to group by (optional) * @param string $groupby Field to group by (optional)
*/ */
public function addAchievementConditionAchievement($userId, $achievementId, $field, $count, $value, $metaAchievementId=null, $groupby=null) public function addAchievementConditionAchievement($userId, $achievementId, $field, $count, $value, $metaAchievementId=null, $groupby=null)
{ {
@ -938,12 +938,12 @@
/** /**
* Edit a Achievement condition. * Edit a Achievement condition.
* *
* @param int $conditionId ID of condition to edit * @param int $conditionId ID of condition to edit
* @param string $field Field to match * @param string $field Field to match
* @param boolean $count Count the value * @param boolean $count Count the value
* @param string $value Value to match * @param string $value Value to match
* @param int $metaAchievementId ID of Achievement (optional) * @param int $metaAchievementId ID of Achievement (optional)
* @param string $groupby Field to group by (optional) * @param string $groupby Field to group by (optional)
*/ */
public function editAchievementConditionAchievement($conditionId, $field, $count, $value, $metaAchievementId=null, $groupby=null) public function editAchievementConditionAchievement($conditionId, $field, $count, $value, $metaAchievementId=null, $groupby=null)
{ {
@ -1022,8 +1022,8 @@
/** /**
* Get all QR-code conditions for an Achievement. * Get all QR-code conditions for an Achievement.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @return array List of QR-code conditions * @return array List of QR-code conditions
*/ */
public function getAchievementConditionsQrcode($achievementId) public function getAchievementConditionsQrcode($achievementId)
{ {
@ -1145,9 +1145,9 @@
/** /**
* Check if a Character has achieved an Achievement. * Check if a Character has achieved an Achievement.
* *
* @param int $achievementId ID of Achievement * @param int $achievementId ID of Achievement
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return boolean Whether Character has achieved the Achievement or not * @return boolean Whether Character has achieved the Achievement or not
*/ */
public function hasCharacterAchievedAchievement($achievementId, $characterId) public function hasCharacterAchievedAchievement($achievementId, $characterId)
{ {
@ -1184,10 +1184,10 @@
/** /**
* Check if an Achievement title already exists. * Check if an Achievement title already exists.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $title Achievement title to check * @param string $title Achievement title to check
* @param int $characterId Do not check this ID (for editing) * @param int $achievementId Do not check this ID (for editing)
* @return boolean Whether Achievement title exists or not * @return boolean Whether Achievement title exists or not
*/ */
public function achievementTitleExists($seminaryId, $title, $achievementId=null) public function achievementTitleExists($seminaryId, $title, $achievementId=null)
{ {
@ -1209,17 +1209,17 @@
/** /**
* Create a new Achievement for a Seminary. * Create a new Achievement for a Seminary.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $conditionId ID of Achievement condition * @param int $conditionId ID of Achievement condition
* @param string $title Title of new Achievement * @param string $title Title of new Achievement
* @param string $description Description of new Achievement * @param string $description Description of new Achievement
* @param boolean $progress Show progress * @param boolean $progress Show progress
* @param boolean $hidden Secret Achievement * @param boolean $hidden Secret Achievement
* @param boolean $onlyOnce Only achieveable by one user * @param boolean $onlyOnce Only achieveable by one user
* @param boolean $allConditions Achievement must match all conditions * @param boolean $allConditions Achievement must match all conditions
* @param string $deadline Deadline for Achievement * @param string $deadline Deadline for Achievement
* @return int ID of newly created Achievement * @return int ID of newly created Achievement
*/ */
public function createAchievement($userId, $seminaryId, $conditionId, $title, $description, $progress, $hidden, $onlyOnce, $allConditions, $deadline) public function createAchievement($userId, $seminaryId, $conditionId, $title, $description, $progress, $hidden, $onlyOnce, $allConditions, $deadline)
{ {
@ -1265,7 +1265,7 @@
* (increment position). * (increment position).
* *
* @param array $achievement Achievement to move * @param array $achievement Achievement to move
* @param boolean $up True for moving up, false for down * @param boolean $up True for moving up, false for down
*/ */
public function moveAchievement($achievement, $up) public function moveAchievement($achievement, $up)
{ {
@ -1313,15 +1313,15 @@
/** /**
* Edit an Achievement of a Seminary. * Edit an Achievement of a Seminary.
* *
* @param int $achievementId ID of Achievement to edit * @param int $achievementId ID of Achievement to edit
* @param int $conditionId ID of Achievement condition * @param int $conditionId ID of Achievement condition
* @param string $title New title of Achievement * @param string $title New title of Achievement
* @param string $description New description of Achievement * @param string $description New description of Achievement
* @param boolean $progress Show progress * @param boolean $progress Show progress
* @param boolean $hidden Secret Achievement * @param boolean $hidden Secret Achievement
* @param boolean $onlyOnce Only achieveable by one user * @param boolean $onlyOnce Only achieveable by one user
* @param boolean $allConditions Achievement must match all conditions * @param boolean $allConditions Achievement must match all conditions
* @param string $deadline Deadline for Achievement * @param string $deadline Deadline for Achievement
*/ */
public function editAchievement($achievementId, $conditionId, $title, $description, $progress, $hidden, $onlyOnce, $allConditions, $deadline) public function editAchievement($achievementId, $conditionId, $title, $description, $progress, $hidden, $onlyOnce, $allConditions, $deadline)
{ {
@ -1347,7 +1347,7 @@
/** /**
* Set unachieved media for an Achievement. * Set unachieved media for an Achievement.
* *
* @param int $achievementId ID of Achievement to set media for * @param int $achievementId ID of Achievement to set media for
* @param int $achievementsmediaId ID of achievementsmedia to set * @param int $achievementsmediaId ID of achievementsmedia to set
*/ */
public function setUnachievedMediaForAchievement($achievementId, $achievementsmediaId) public function setUnachievedMediaForAchievement($achievementId, $achievementsmediaId)
@ -1366,7 +1366,7 @@
/** /**
* Set achieved media for an Achievement. * Set achieved media for an Achievement.
* *
* @param int $achievementId ID of Achievement to set media for * @param int $achievementId ID of Achievement to set media for
* @param int $achievementsmediaId ID of achievementsmedia to set * @param int $achievementsmediaId ID of achievementsmedia to set
*/ */
public function setAchievedMediaForAchievement($achievementId, $achievementsmediaId) public function setAchievedMediaForAchievement($achievementId, $achievementsmediaId)

View file

@ -44,8 +44,8 @@
/** /**
* Get Character groups-groups of a Seminary. * Get Character groups-groups of a Seminary.
* *
* @param int $seminaryId ID of the corresponding Seminary * @param int $seminaryId ID of the corresponding Seminary
* @return array Character groups-groups data * @return array Character groups-groups data
*/ */
public function getGroupsroupsForSeminary($seminaryId) public function getGroupsroupsForSeminary($seminaryId)
{ {
@ -63,9 +63,9 @@
* Get a Character groups-group by its URL. * Get a Character groups-group by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryId ID of the corresponding Seminary * @param int $seminaryId ID of the corresponding Seminary
* @param string $groupsgroupUrl URL-name of the Character groups-group * @param string $groupsgroupUrl URL-name of the Character groups-group
* @return array Character groups-group data * @return array Character groups-group data
*/ */
public function getGroupsgroupByUrl($seminaryId, $groupsgroupUrl) public function getGroupsgroupByUrl($seminaryId, $groupsgroupUrl)
{ {
@ -90,7 +90,7 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $groupsgroupId ID of the Character groups-group * @param string $groupsgroupId ID of the Character groups-group
* @return array Character groups-group data * @return array Character groups-group data
*/ */
public function getGroupsgroupById($groupsgroupId) public function getGroupsgroupById($groupsgroupId)
{ {
@ -138,11 +138,11 @@
/** /**
* Create a new Character groups-group. * Create a new Character groups-group.
* *
* @param int $userId ID of user * @param int $userId ID of user
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $name Name of new groups-group * @param string $name Name of new groups-group
* @param boolean $preferred Whether groups-group is preferred or not * @param boolean $preferred Whether groups-group is preferred or not
* @return int ID of newly created groups-group * @return int ID of newly created groups-group
*/ */
public function createGroupsgroup($userId, $seminaryId, $name, $preferred) public function createGroupsgroup($userId, $seminaryId, $name, $preferred)
{ {
@ -167,9 +167,9 @@
/** /**
* Edit a Character groups-group. * Edit a Character groups-group.
* *
* @param int $groupsgroupId ID of groups-group to edit * @param int $groupsgroupId ID of groups-group to edit
* @param string $name New name of groups-group * @param string $name New name of groups-group
* @param boolean $preferred Whether groups-group is preferred or not * @param boolean $preferred Whether groups-group is preferred or not
*/ */
public function editGroupsgroup($groupsgroupId, $name, $preferred) public function editGroupsgroup($groupsgroupId, $name, $preferred)
{ {
@ -261,9 +261,9 @@
/** /**
* Get Character groups for a Character groups-group. * Get Character groups for a Character groups-group.
* *
* @param int $groupsgroupId ID of the Character groups-group * @param int $groupsgroupId ID of the Character groups-group
* @param string $sortorder Field to sort by (optional) * @param string $sortorder Field to sort by (optional)
* @return array Character groups * @return array Character groups
*/ */
public function getGroupsForGroupsgroup($groupsgroupId, $sortorder='name') public function getGroupsForGroupsgroup($groupsgroupId, $sortorder='name')
{ {
@ -297,8 +297,8 @@
/** /**
* Get Character groups for a Character. * Get Character groups for a Character.
* *
* @param int $characterId ID of the Character * @param int $characterId ID of the Character
* @return array Character groups * @return array Character groups
*/ */
public function getGroupsForCharacter($characterId) public function getGroupsForCharacter($characterId)
{ {
@ -322,9 +322,9 @@
* Get a Character group by its URL. * Get a Character group by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $groupsgroupId ID of the Character groups-group * @param int $groupsgroupId ID of the Character groups-group
* @param string $groupUrl URL-name of the Character group * @param string $groupUrl URL-name of the Character group
* @return array Character group data * @return array Character group data
*/ */
public function getGroupByUrl($groupsgroupId, $groupUrl) public function getGroupByUrl($groupsgroupId, $groupUrl)
{ {
@ -351,8 +351,8 @@
* Get a Character group by its ID. * Get a Character group by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $groupsgroupId ID of the Character group * @param int $groupId ID of the Character group
* @return array Character group data * @return array Character group data
*/ */
public function getGroupById($groupId) public function getGroupById($groupId)
{ {
@ -378,8 +378,8 @@
/** /**
* Get the Character groups for a Quest. * Get the Character groups for a Quest.
* *
* @param int $questId ID of the Character groups Quest * @param int $questId ID of the Character groups Quest
* @return array Character groups * @return array Character groups
*/ */
public function getGroupsForQuest($questId) public function getGroupsForQuest($questId)
{ {
@ -452,11 +452,11 @@
/** /**
* Create a new Character group. * Create a new Character group.
* *
* @param int $userId ID of user * @param int $userId ID of user
* @param int $groupsgroupId ID of Character groups-group * @param int $groupsgroupId ID of Character groups-group
* @param string $name Name of new group * @param string $name Name of new group
* @param string $motto Motto of new group * @param string $motto Motto of new group
* @return int ID of newly created group * @return int ID of newly created group
*/ */
public function createGroup($userId, $groupsgroupId, $name, $motto) public function createGroup($userId, $groupsgroupId, $name, $motto)
{ {
@ -500,7 +500,7 @@
/** /**
* Edit a Character group. * Edit a Character group.
* *
* @param int $groupId ID of Character group to edit * @param int $groupId ID of Character group to edit
* @param string $name New name of group * @param string $name New name of group
* @param string $motto New motto of group * @param string $motto New motto of group
*/ */
@ -544,9 +544,9 @@
/** /**
* Get the rank of a XP-value of a Character. * Get the rank of a XP-value of a Character.
* *
* @param int $seminaryId ID of Seminary * @param int $groupsgroupId ID of Seminary
* @param int $xps XP-value to get rank for * @param int $xps XP-value to get rank for
* @return int Rank of XP-value * @return int Rank of XP-value
*/ */
public function getXPRank($groupsgroupId, $xps) public function getXPRank($groupsgroupId, $xps)
{ {
@ -570,7 +570,7 @@
/** /**
* Add a Character to a Character group. * Add a Character to a Character group.
* *
* @param int $groupId ID of Character group * @param int $groupId ID of Character group
* @param int $characterId ID of Character to add * @param int $characterId ID of Character to add
*/ */
public function addCharacterToCharactergroup($groupId, $characterId) public function addCharacterToCharactergroup($groupId, $characterId)
@ -590,7 +590,7 @@
/** /**
* Remove a Character from a Character group. * Remove a Character from a Character group.
* *
* @param int $groupId ID of Character group * @param int $groupId ID of Character group
* @param int $characterId ID of Character to remove * @param int $characterId ID of Character to remove
*/ */
public function removeCharacterFromCharactergroup($groupId, $characterId) public function removeCharacterFromCharactergroup($groupId, $characterId)

View file

@ -269,7 +269,7 @@
* position). * position).
* *
* @param array $achievement Achievement to move * @param array $achievement Achievement to move
* @param boolean $up True for moving up, false for down * @param boolean $up True for moving up, false for down
*/ */
public function moveAchievement($achievement, $up) public function moveAchievement($achievement, $up)
{ {
@ -358,11 +358,9 @@
/** /**
* Copy all Achievements of a Seminary. * Copy all Achievements of a Seminary.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $sourceSeminaryId Seminary to copy from * @param array $characterGroupsgroupIds Mapping of Character groups-group IDs from source Seminary to target Seminary
* @param int $targetSeminaryId Seminary to copy to * @param array $seminaryMediaIds Mapping of Seminarymedia-IDs from source Seminary to target Seminary
* @param array $seminaryMediaIds Mapping of Seminarymedia-IDs from source Seminary to target Seminary
* @param array $questIds Mapping of Quest-IDs from source Seminary to target Seminary (optional)
*/ */
public function copyAchievementsOfSeminary($userId, $characterGroupsgroupIds, $seminaryMediaIds=null) public function copyAchievementsOfSeminary($userId, $characterGroupsgroupIds, $seminaryMediaIds=null)
{ {

View file

@ -44,8 +44,8 @@
/** /**
* Get Character groups Quests of a Character groups-groups. * Get Character groups Quests of a Character groups-groups.
* *
* @param int $groupsgroupId ID of the Character groups-group * @param int $groupsgroupId ID of the Character groups-group
* @return array Character groups Quest data * @return array Character groups Quest data
*/ */
public function getQuestsForCharactergroupsgroup($groupsgroupId) public function getQuestsForCharactergroupsgroup($groupsgroupId)
{ {
@ -64,9 +64,9 @@
* Get a Character groups Quest by its URL. * Get a Character groups Quest by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $groupsgroupId ID of the Character groups-group * @param int $groupsgroupId ID of the Character groups-group
* @param string $questUrl URL-title of the Character groups Quest * @param string $questUrl URL-title of the Character groups Quest
* @return array Character groups Quest data * @return array Character groups Quest data
*/ */
public function getQuestByUrl($groupsgroupId, $questUrl) public function getQuestByUrl($groupsgroupId, $questUrl)
{ {
@ -91,8 +91,8 @@
* Get a Character groups Quest by its ID. * Get a Character groups Quest by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $questId ID of the Character groups Quest * @param int $questId ID of the Character groups Quest
* @return array Character groups Quest data * @return array Character groups Quest data
*/ */
public function getQuestById($questId) public function getQuestById($questId)
{ {
@ -115,8 +115,8 @@
/** /**
* Get Character groups Quests for a Character group. * Get Character groups Quests for a Character group.
* *
* @param int $groupId ID of the Character group * @param int $groupId ID of the Character group
* @return array Character groups Quests * @return array Character groups Quests
*/ */
public function getQuestsForGroup($groupId) public function getQuestsForGroup($groupId)
{ {
@ -141,9 +141,9 @@
/** /**
* Get XPs of a Character group for a Character groups Quest. * Get XPs of a Character group for a Character groups Quest.
* *
* @param int $questId ID of Character groups Quest * @param int $questId ID of Character groups Quest
* @param int $groupId ID of Character group to get XPs of * @param int $groupId ID of Character group to get XPs of
* @return array XP-record * @return array XP-record
*/ */
public function getXPsOfGroupForQuest($questId, $groupId) public function getXPsOfGroupForQuest($questId, $groupId)
{ {
@ -171,8 +171,8 @@
/** /**
* Set XPs of a Character group for a Character groups Quest. * Set XPs of a Character group for a Character groups Quest.
* *
* @param int $questId ID of Character groups Quest * @param int $questId ID of Character groups Quest
* @param int $groupId ID of Character group to set XPs of * @param int $groupId ID of Character group to set XPs of
* @param float $xpsFactor XPs-factor * @param float $xpsFactor XPs-factor
*/ */
public function setXPsOfGroupForQuest($questId, $groupId, $xpsFactor) public function setXPsOfGroupForQuest($questId, $groupId, $xpsFactor)
@ -214,7 +214,7 @@
* Check if a Character groups Quest title already exists. * Check if a Character groups Quest title already exists.
* *
* @param int $groupsgroupId ID of Character groups-group * @param int $groupsgroupId ID of Character groups-group
* @param string $name Character groups Quest title to check * @param string $title Character groups Quest title to check
* @param int $questId Do not check this ID (for editing) * @param int $questId Do not check this ID (for editing)
* @return boolean Whether Character groups Quest title exists or not * @return boolean Whether Character groups Quest title exists or not
*/ */
@ -256,12 +256,12 @@
/** /**
* Upload a media for a Character groups Quest. * Upload a media for a Character groups Quest.
* *
* @param int $userId ID of user that does the upload * @param int $userId ID of user that does the upload
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questId ID of Quest to upload media for * @param int $questId ID of Quest to upload media for
* @param array $file File-array of file to upload * @param array $file File-array of file to upload
* @param string $filename Filename for media * @param string $filename Filename for media
* @return boolean Whether upload succeeded or not * @return boolean Whether upload succeeded or not
*/ */
public function uploadMediaForQuest($userId, $seminaryId, $questId, $file, $filename) public function uploadMediaForQuest($userId, $seminaryId, $questId, $file, $filename)
{ {
@ -289,8 +289,8 @@
/** /**
* Get uploaded Medai for a Character groups Quest. * Get uploaded Medai for a Character groups Quest.
* *
* @param int $questId ID of Quest to get media for * @param int $questId ID of Quest to get media for
* @return array Seminary uploads * @return array Seminary uploads
*/ */
public function getMediaForQuest($questId) public function getMediaForQuest($questId)
{ {
@ -307,16 +307,16 @@
/** /**
* Create a new Character groups Quest. * Create a new Character groups Quest.
* *
* @param int $userId ID of user * @param int $userId ID of user
* @param int $groupsgroupId ID of Character groups-group * @param int $groupsgroupId ID of Character groups-group
* @param int $questgroupId ID of Quest group * @param int $questgroupId ID of Quest group
* @param string $title Title of new Quest * @param string $title Title of new Quest
* @param string $description Description of new Quset * @param string $description Description of new Quset
* @param int $xps Amount of XPs for new Quest * @param int $xps Amount of XPs for new Quest
* @param string $rules Rules of new Quest * @param string $rules Rules of new Quest
* @param string $wonText Won-text of new Quset * @param string $wonText Won-text of new Quset
* @param string $lostText Lost-text of new Quest * @param string $lostText Lost-text of new Quest
* @return int ID of newly created Quest * @return int ID of newly created Quest
*/ */
public function createQuest($userId, $groupsgroupId, $questgroupId, $title, $description, $xps, $rules, $wonText, $lostText) public function createQuest($userId, $groupsgroupId, $questgroupId, $title, $description, $xps, $rules, $wonText, $lostText)
{ {

View file

@ -116,8 +116,8 @@
* Get a Station by its Hash. * Get a Station by its Hash.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $stationUrl Hash of Station to get * @param string $stationHash Hash of Station to get
* @return array Station data * @return array Station data
*/ */
public function getStationByHash($stationHash) public function getStationByHash($stationHash)
{ {
@ -332,7 +332,7 @@
/** /**
* Check if a Character group has solved a Station. * Check if a Character group has solved a Station.
* *
* @param int $questId ID of Quest to check * @param int $stationId ID of Quest to check
* @param int $groupId ID of Character to check * @param int $groupId ID of Character to check
* @result boolean Whether Character has solved the Quest or not * @result boolean Whether Character has solved the Quest or not
*/ */

View file

@ -37,8 +37,8 @@
/** /**
* Get all characterroles for a Character referenced by its ID. * Get all characterroles for a Character referenced by its ID.
* *
* @param int $userId ID of an user * @param int $characterId ID of Character
* @return array Characterroles for a Character * @return array Characterroles for a Character
*/ */
public function getCharacterrolesForCharacterById($characterId) public function getCharacterrolesForCharacterById($characterId)
{ {
@ -56,7 +56,7 @@
/** /**
* Add a role to a Character. * Add a role to a Character.
* *
* @param int $characterId ID of Character to add role to * @param int $characterId ID of Character to add role to
* @param string $characterrole Role to add * @param string $characterrole Role to add
*/ */
public function addCharacterroleToCharacter($characterId, $characterrole) public function addCharacterroleToCharacter($characterId, $characterrole)
@ -77,7 +77,7 @@
/** /**
* Remove a role from a Character. * Remove a role from a Character.
* *
* @param int $characterId ID of Character to remove role from * @param int $characterId ID of Character to remove role from
* @param string $characterrole Role to remove * @param string $characterrole Role to remove
*/ */
public function removeCharacterroleFromCharacter($characterId, $characterrole) public function removeCharacterroleFromCharacter($characterId, $characterrole)

View file

@ -37,8 +37,8 @@
/** /**
* Get all characters for an user. * Get all characters for an user.
* *
* @param int $userId ID of the user * @param int $userId ID of the user
* @return array Characters * @return array Characters
*/ */
public function getCharactersForUser($userId) public function getCharactersForUser($userId)
{ {
@ -63,9 +63,9 @@
/** /**
* Get count of Characters for a Seminary. * Get count of Characters for a Seminary.
* *
* @param int $seminaryId ID of the Seminary * @param int $seminaryId ID of the Seminary
* @param string $charactername Only get Characters with the given name (optional) * @param string $charactername Only get Characters with the given name (optional)
* @return int Count of Characters * @return int Count of Characters
*/ */
public function getCharactersForSeminaryCount($seminaryId, $charactername=null) public function getCharactersForSeminaryCount($seminaryId, $charactername=null)
{ {
@ -91,9 +91,9 @@
/** /**
* Get Characters for a Seminary. * Get Characters for a Seminary.
* *
* @param int $seminaryId ID of the Seminary * @param int $seminaryId ID of the Seminary
* @param bool $onlyWithRole Only Characters that have at least one role assigned (optional) * @param bool $onlyWithRole Only Characters that have at least one role assigned (optional)
* @return array Characters * @return array Characters
*/ */
public function getCharactersForSeminary($seminaryId, $onlyWithRole=false) public function getCharactersForSeminary($seminaryId, $onlyWithRole=false)
{ {
@ -119,12 +119,12 @@
/** /**
* Get Characters for a Seminary sorted and optionally limited. * Get Characters for a Seminary sorted and optionally limited.
* *
* @param int $seminaryId ID of the Seminary * @param int $seminaryId ID of the Seminary
* @param string $sort Field to sort by * @param string $sort Field to sort by
* @param string $charactername Only get Characters with the given name (optional) * @param string $charactername Only get Characters with the given name (optional)
* @param int $limit Limit amount of Characters (optional) * @param int $limit Limit amount of Characters (optional)
* @param int $offset Offset (optional) * @param int $offset Offset (optional)
* @return array Characters * @return array Characters
*/ */
public function getCharactersForSeminarySorted($seminaryId, $sort, $charactername='', $limit=null, $offset=0) public function getCharactersForSeminarySorted($seminaryId, $sort, $charactername='', $limit=null, $offset=0)
{ {
@ -215,8 +215,8 @@
/** /**
* Get Characters for a Character group. * Get Characters for a Character group.
* *
* @param int $groupId ID of the Character group * @param int $groupId ID of the Character group
* @return array Characters * @return array Characters
*/ */
public function getCharactersForGroup($groupId) public function getCharactersForGroup($groupId)
{ {
@ -242,9 +242,9 @@
* Get the character of a user for a Seminary. * Get the character of a user for a Seminary.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $userId ID of the user * @param int $userId ID of the user
* @param int $seminaryId ID of the Seminary * @param int $seminaryId ID of the Seminary
* @return array Character data * @return array Character data
*/ */
public function getCharacterForUserAndSeminary($userId, $seminaryId) public function getCharacterForUserAndSeminary($userId, $seminaryId)
{ {
@ -274,9 +274,9 @@
* Get a Character by its Url. * Get a Character by its Url.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryId ID of the Seminary * @param int $seminaryId ID of the Seminary
* @param string $characterUrl URL-name of the Character * @param string $characterUrl URL-name of the Character
* @return array Character data * @return array Character data
*/ */
public function getCharacterByUrl($seminaryId, $characterUrl) public function getCharacterByUrl($seminaryId, $characterUrl)
{ {
@ -307,7 +307,7 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $characterId ID of the Character * @param string $characterId ID of the Character
* @return array Character data * @return array Character data
*/ */
public function getCharacterById($characterId) public function getCharacterById($characterId)
{ {
@ -357,10 +357,10 @@
/** /**
* Get Characters with the most amount of Achievements. * Get Characters with the most amount of Achievements.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $conut Amount of Characters to retrieve * @param int $count Amount of Characters to retrieve
* @param bool $alsoWithDeadline Include Achievements with deadline (optional) * @param bool $alsoWithDeadline Include Achievements with deadline (optional)
* @return array List of Characters * @return array List of Characters
*/ */
public function getCharactersWithMostAchievements($seminaryId, $count, $alsoWithDeadline=true) public function getCharactersWithMostAchievements($seminaryId, $count, $alsoWithDeadline=true)
{ {
@ -396,7 +396,7 @@
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $xps XP-value to get rank for * @param int $xps XP-value to get rank for
* @return int Rank of XP-value * @return int Rank of XP-value
*/ */
public function getXPRank($seminaryId, $xps) public function getXPRank($seminaryId, $xps)
{ {
@ -424,10 +424,10 @@
/** /**
* Get the superior $count Characters in the ranking. * Get the superior $count Characters in the ranking.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $xps XP-value of Character * @param int $xps XP-value of Character
* @param int $count Count of Characters to determine * @param int $count Count of Characters to determine
* @return array List of superior Characters * @return array List of superior Characters
*/ */
public function getSuperiorCharacters($seminaryId, $xps, $count) public function getSuperiorCharacters($seminaryId, $xps, $count)
{ {
@ -459,11 +459,11 @@
/** /**
* Get the inferior $count Characters in the ranking. * Get the inferior $count Characters in the ranking.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int characterId ID of Character * @param int characterId ID of Character
* @param int $xps XP-value of Character * @param int $xps XP-value of Character
* @param int $count Count of Characters to determine * @param int $count Count of Characters to determine
* @return array List of inferior Characters * @return array List of inferior Characters
*/ */
public function getInferiorCharacters($seminaryId, $characterId, $xps, $count) public function getInferiorCharacters($seminaryId, $characterId, $xps, $count)
{ {
@ -491,8 +491,8 @@
/** /**
* Get Characters that solved a Quest. * Get Characters that solved a Quest.
* *
* @param int $questId ID of Quest to get Characters for * @param int $questId ID of Quest to get Characters for
* @return array Characters data * @return array Characters data
*/ */
public function getCharactersSolvedQuest($questId) public function getCharactersSolvedQuest($questId)
{ {
@ -522,8 +522,8 @@
/** /**
* Get Characters that did not solv a Quest. * Get Characters that did not solv a Quest.
* *
* @param int $questId ID of Quest to get Characters for * @param int $questId ID of Quest to get Characters for
* @return array Characters data * @return array Characters data
*/ */
public function getCharactersUnsolvedQuest($questId) public function getCharactersUnsolvedQuest($questId)
{ {
@ -553,8 +553,8 @@
/** /**
* Get Characters that sent a submission for a Quest. * Get Characters that sent a submission for a Quest.
* *
* @param int $questId ID of Quest to get Characters for * @param int $questId ID of Quest to get Characters for
* @return array Characters data * @return array Characters data
*/ */
public function getCharactersSubmittedQuest($questId) public function getCharactersSubmittedQuest($questId)
{ {
@ -584,9 +584,9 @@
/** /**
* Get Characters with the given Character role. * Get Characters with the given Character role.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $characterrole Character role * @param string $characterrole Character role
* @return array List of users * @return array List of users
*/ */
public function getCharactersWithCharacterRole($seminaryId, $characterrole) public function getCharactersWithCharacterRole($seminaryId, $characterrole)
{ {
@ -613,9 +613,9 @@
/** /**
* Check if a Character name already exists. * Check if a Character name already exists.
* *
* @param string $name Character name to check * @param string $name Character name to check
* @param int $characterId Do not check this ID (for editing) * @param int $characterId Do not check this ID (for editing)
* @return boolean Whether Character name exists or not * @return boolean Whether Character name exists or not
*/ */
public function characterNameExists($name, $characterId=null) public function characterNameExists($name, $characterId=null)
{ {

View file

@ -37,8 +37,8 @@
/** /**
* Get all Character types of a Seminary. * Get all Character types of a Seminary.
* *
* @param int $seminaryId ID of Seminary to get types of * @param int $seminaryId ID of Seminary to get types of
* @return array Character types * @return array Character types
*/ */
public function getCharacterTypesForSeminary($seminaryId) public function getCharacterTypesForSeminary($seminaryId)
{ {
@ -56,9 +56,9 @@
/** /**
* Get Character type by its URL. * Get Character type by its URL.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $charactretypeUrl URL-title of Character type * @param string $charactertypeUrl URL-title of Character type
* @return array Character type data * @return array Character type data
*/ */
public function getCharactertypeByUrl($seminaryId, $charactertypeUrl) public function getCharactertypeByUrl($seminaryId, $charactertypeUrl)
{ {
@ -83,7 +83,7 @@
* Get Character type by its ID. * Get Character type by its ID.
* *
* @param string $charactertypeId ID of Character type * @param string $charactertypeId ID of Character type
* @return array Character type data * @return array Character type data
*/ */
public function getCharactertypeById($charactertypeId) public function getCharactertypeById($charactertypeId)
{ {
@ -106,10 +106,10 @@
/** /**
* Check if a Charactertype name already exists. * Check if a Charactertype name already exists.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $name Charactertype name to check * @param string $name Charactertype name to check
* @param int $charactertypeId Do not check this ID (for editing) * @param int $charactertypeId Do not check this ID (for editing)
* @return boolean Whether Charactertype name exists or not * @return boolean Whether Charactertype name exists or not
*/ */
public function charactertypeNameExists($seminaryId, $name, $charactertypeId=null) public function charactertypeNameExists($seminaryId, $name, $charactertypeId=null)
{ {
@ -130,10 +130,10 @@
/** /**
* Create a new Charactertype for a Seminary. * Create a new Charactertype for a Seminary.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $name Name for new Charactertype * @param string $name Name for new Charactertype
* @return int ID of newly created Charactertype * @return int ID of newly created Charactertype
*/ */
public function createCharactertype($userId, $seminaryId, $name) public function createCharactertype($userId, $seminaryId, $name)
{ {
@ -184,8 +184,8 @@
/** /**
* Edit a Charactertype. * Edit a Charactertype.
* *
* @param int $charactertypeId ID of Charactertype to edit * @param int $charactertypeId ID of Charactertype to edit
* @param string $name New name of Charactertype * @param string $name New name of Charactertype
*/ */
public function editCharactertype($charactertypeId, $name) public function editCharactertype($charactertypeId, $name)
{ {

View file

@ -38,7 +38,7 @@
* Get a medium by its URL. * Get a medium by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $mediaURL URL-name of the Medium * @param string $mediaUrl URL-name of the Medium
* @return array Medium data * @return array Medium data
*/ */
public function getMediaByUrl($mediaUrl) public function getMediaByUrl($mediaUrl)
@ -63,8 +63,8 @@
* Get a medium by its ID. * Get a medium by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $mediaId ID of the Medium * @param int $mediaId ID of the Medium
* @return array Medium data * @return array Medium data
*/ */
public function getMediaById($mediaId) public function getMediaById($mediaId)
{ {
@ -115,8 +115,8 @@
* Get a Seminary medium by its ID. * Get a Seminary medium by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryMediaId ID of the Seminary medium * @param int $mediaId ID of the Seminary medium
* @return array Seminary medium data * @return array Seminary medium data
*/ */
public function getSeminaryMediaById($mediaId) public function getSeminaryMediaById($mediaId)
{ {
@ -326,7 +326,7 @@
* Copy an Avatar picture. * Copy an Avatar picture.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryMediaId ID of Seminary media to copy * @param int $avatarpictureId ID of Avatar picture
*/ */
public function copyAvatarpicture($userId, $avatarpictureId) public function copyAvatarpicture($userId, $avatarpictureId)
{ {
@ -402,8 +402,8 @@
/** /**
* Copy a Questgroup picture. * Copy a Questgroup picture.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryMediaId ID of Seminary media to copy * @param int $questgroupspictureId ID of Questgroup picture
*/ */
public function copyQuestgroupspicture($userId, $questgroupspictureId) public function copyQuestgroupspicture($userId, $questgroupspictureId)
{ {

View file

@ -68,7 +68,7 @@
/** /**
* Get a page by its ID. * Get a page by its ID.
* *
* @param string $pageid ID of page to get * @param string $pageId ID of page to get
* @return array Page data * @return array Page data
*/ */
public function getPageById($pageId) public function getPageById($pageId)
@ -216,10 +216,10 @@
/* /**
* Mask parameters to be used in an URL. * Mask parameters to be used in an URL.
* *
* @param string $param1 First parameter * @param string $param First parameter
* @return string Masked parameters as string * @return string Masked parameters as string
*/ */
private static function createLinkParam($param) private static function createLinkParam($param)

View file

@ -52,7 +52,7 @@
* *
* @param int $hierarchyId ID of the Questgroup hierarchy to get Questgroups for * @param int $hierarchyId ID of the Questgroup hierarchy to get Questgroups for
* @param int $parentQuestgroupId ID of the parent Questgroup hierarchy * @param int $parentQuestgroupId ID of the parent Questgroup hierarchy
* @return array Questgroups for the given hierarchy * @return array Questgroups for the given hierarchy
*/ */
public function getQuestgroupsForHierarchy($hierarchyId, $parentQuestgroupId=null) public function getQuestgroupsForHierarchy($hierarchyId, $parentQuestgroupId=null)
{ {
@ -112,8 +112,8 @@
* Get a Questgroup by its ID. * Get a Questgroup by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $questgroupId ID of a Questgroup * @param int $questgroupId ID of a Questgroup
* @return array Questgroup data * @return array Questgroup data
*/ */
public function getQuestgroupById($questgroupId) public function getQuestgroupById($questgroupId)
{ {
@ -137,9 +137,9 @@
* Get a Questgroup by its URL. * Get a Questgroup by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryId ID of the corresponding seminary * @param int $seminaryId ID of the corresponding seminary
* @param string $questgroupURL URL-title of a Questgroup * @param string $questgroupUrl URL-title of a Questgroup
* @return array Questgroup data * @return array Questgroup data
*/ */
public function getQuestgroupByUrl($seminaryId, $questgroupUrl) public function getQuestgroupByUrl($seminaryId, $questgroupUrl)
{ {
@ -166,9 +166,9 @@
* on the same level as the given Quest then the followed-up * on the same level as the given Quest then the followed-up
* Questgroup from a higher hierarchy level is returned. * Questgroup from a higher hierarchy level is returned.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questgroupId ID of Questgroup to get next Questgroup of * @param int $questgroupId ID of Questgroup to get next Questgroup of
* @return array Questgroup data * @return array Questgroup data
*/ */
public function getNextQuestgroup($seminaryId, $questgroupId) public function getNextQuestgroup($seminaryId, $questgroupId)
{ {
@ -196,9 +196,9 @@
* followed-up Questgroup from a higher hierarchy level is * followed-up Questgroup from a higher hierarchy level is
* returned. * returned.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questgroupId ID of Questgroup to get previous Questgroup of * @param int $questgroupId ID of Questgroup to get previous Questgroup of
* @return array Questgroup data * @return array Questgroup data
*/ */
public function getPreviousQuestgroup($seminaryId, $questgroupId) public function getPreviousQuestgroup($seminaryId, $questgroupId)
{ {
@ -221,7 +221,7 @@
/** /**
* Mark a Questgroup as entered for a Character. * Mark a Questgroup as entered for a Character.
* *
* @param int $questId ID of Quest to mark as entered * @param int $questgroupId ID of Questgroup to mark as entered
* @param int $characterId ID of Character that entered the Quest * @param int $characterId ID of Character that entered the Quest
*/ */
public function setQuestgroupEntered($questgroupId, $characterId) public function setQuestgroupEntered($questgroupId, $characterId)
@ -235,7 +235,7 @@
* *
* @param int $questgroupId ID of Questgroup to check * @param int $questgroupId ID of Questgroup to check
* @param int $characterId ID of Character to check * @param int $characterId ID of Character to check
* @result boolean Whether Character has entered the Questgroup or not * @result boolean Whether Character has entered the Questgroup or not
*/ */
public function hasCharacterEnteredQuestgroup($questgroupId, $characterId) public function hasCharacterEnteredQuestgroup($questgroupId, $characterId)
{ {
@ -259,7 +259,7 @@
* *
* @param int $questgroupId ID of Questgroup to check * @param int $questgroupId ID of Questgroup to check
* @param int $characterId ID of Character to check * @param int $characterId ID of Character to check
* @result boolean Whether Character has solved the Questgroup or not * @result boolean Whether Character has solved the Questgroup or not
*/ */
public function hasCharacterSolvedQuestgroup($questgroupId, $characterId) public function hasCharacterSolvedQuestgroup($questgroupId, $characterId)
{ {
@ -321,8 +321,8 @@
/** /**
* Get all related Questgroups of a Questtext. * Get all related Questgroups of a Questtext.
* *
* @param int $questtextId ID of the Questtext * @param int $questtextId ID of the Questtext
* @return array Related Questgroups for the Questtext * @return array Related Questgroups for the Questtext
*/ */
public function getRelatedQuestsgroupsOfQuesttext($questtextId) public function getRelatedQuestsgroupsOfQuesttext($questtextId)
{ {
@ -340,8 +340,8 @@
/** /**
* Get all related Questgroups of a Quest. * Get all related Questgroups of a Quest.
* *
* @param int $questId ID of the Quest * @param int $questId ID of the Quest
* @return array Related Quests for the Quest * @return array Related Quests for the Quest
*/ */
public function getRelatedQuestsgroupsOfQuest($questId) public function getRelatedQuestsgroupsOfQuest($questId)
{ {
@ -361,8 +361,8 @@
/** /**
* Get all related Questgroups of a Questgroup. * Get all related Questgroups of a Questgroup.
* *
* @param int $questgroupId ID of the Questgroup * @param int $questgroupId ID of the Questgroup
* @return array Related Questgroups for the Questgroup * @return array Related Questgroups for the Questgroup
*/ */
public function getRelatedQuestsgroupsOfQuestgroup($questgroupId) public function getRelatedQuestsgroupsOfQuestgroup($questgroupId)
{ {
@ -385,7 +385,7 @@
* *
* @param int $questgroupId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return int Sum of XPs * @return int Sum of XPs
*/ */
public function getAchievedXPsForQuestgroup($questgroupId, $characterId) public function getAchievedXPsForQuestgroup($questgroupId, $characterId)
{ {
@ -419,10 +419,10 @@
/** /**
* Check if a Questgroups title already exists for a Seminary. * Check if a Questgroups title already exists for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $title Questgroup title to check * @param string $title Questgroup title to check
* @param int $questgroupId Do not check this ID (for editing) * @param int $questgroupId Do not check this ID (for editing)
* @return boolean Whether Questgroup title exists or not * @return boolean Whether Questgroup title exists or not
*/ */
public function questgroupTitleExists($seminaryId, $title, $questgroupId=null) public function questgroupTitleExists($seminaryId, $title, $questgroupId=null)
{ {
@ -443,10 +443,10 @@
/** /**
* Create a new Questgroup. * Create a new Questgroup.
* *
* @param int $userId User-ID that creates the new character * @param int $userId User-ID that creates the new character
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $title Title for new Questgroup * @param string $title Title for new Questgroup
* @return int ID of new Questgroup * @return int ID of new Questgroup
*/ */
public function createQuestgroup($userId, $seminaryId, $title) public function createQuestgroup($userId, $seminaryId, $title)
{ {
@ -471,7 +471,7 @@
* Set the moodpic for a Questgroup. * Set the moodpic for a Questgroup.
* *
* @param int $questgroupId ID of Questgroup to set moodpic for * @param int $questgroupId ID of Questgroup to set moodpic for
* @param int $mediaId ID of moodpic media * @param int $mediaId ID of moodpic media
*/ */
public function setMoodpicForQuestgroup($questgroupId, $mediaId) public function setMoodpicForQuestgroup($questgroupId, $mediaId)
{ {
@ -599,7 +599,7 @@
* position). * position).
* *
* @param array $questgroup Questgroup to move * @param array $questgroup Questgroup to move
* @param boolean $up True for moving up, false for down * @param boolean $up True for moving up, false for down
*/ */
public function moveQuestgroup($questgroup, $up) public function moveQuestgroup($questgroup, $up)
{ {
@ -662,8 +662,8 @@
* Edit a Questgroup. * Edit a Questgroup.
* *
* @throws \nre\exceptions\DatamodelException * @throws \nre\exceptions\DatamodelException
* @param int $questgroupId ID of Questgroup to edit * @param int $questgroupId ID of Questgroup to edit
* @param string $title New title of Questgroup * @param string $title New title of Questgroup
*/ */
public function editQuestgroup($questgroupId, $title) public function editQuestgroup($questgroupId, $title)
{ {
@ -800,10 +800,10 @@
/** /**
* Get the next (direct) Questgroup. * Get the next (direct) Questgroup.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $parentQuestgroupId ID of parent Questgroup to get next Questgroup of * @param int $parentQuestgroupId ID of parent Questgroup to get next Questgroup of
* @param int $questgroupPos Position of Questgroup to get next Questgroup of * @param int $questgroupPos Position of Questgroup to get next Questgroup of
* @return array Data of next Questgroup or NULL * @return array Data of next Questgroup or NULL
*/ */
private function _getNextQuestgroup($seminaryId, $parentQuestgroupId, $questgroupPos) private function _getNextQuestgroup($seminaryId, $parentQuestgroupId, $questgroupPos)
{ {
@ -841,10 +841,10 @@
/** /**
* Get the previous (direct) Questgroup. * Get the previous (direct) Questgroup.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $parentQuestgroupId ID of parent Questgroup to get previous Questgroup of * @param int $parentQuestgroupId ID of parent Questgroup to get previous Questgroup of
* @param int $questgroupPos Position of Questgroup to get previous Questgroup of * @param int $questgroupPos Position of Questgroup to get previous Questgroup of
* @return array Data of previous Questgroup or NULL * @return array Data of previous Questgroup or NULL
*/ */
private function _getPreviousQuestgroup($seminaryId, $parentQuestgroupId, $questgroupPos) private function _getPreviousQuestgroup($seminaryId, $parentQuestgroupId, $questgroupPos)
{ {
@ -882,10 +882,10 @@
/** /**
* Mark a Questgroup for a Character. * Mark a Questgroup for a Character.
* *
* @param int $questgroupId ID of Questgroup to mark * @param int $questgroupId ID of Questgroup to mark
* @param int $characterId ID of Character to mark the Questgroup for * @param int $characterId ID of Character to mark the Questgroup for
* @param int $status Questgroup status to mark * @param int $status Questgroup status to mark
* @param boolean $repeated Insert although status is already set for this Questgroup and Character * @param boolean $repeated Insert although status is already set for this Questgroup and Character
*/ */
private function setQuestgroupStatus($questgroupId, $characterId, $status, $repeated=true) private function setQuestgroupStatus($questgroupId, $characterId, $status, $repeated=true)
{ {
@ -925,9 +925,9 @@
* Questgroup, its sub-Questgroups, related Questgroups etc. and * Questgroup, its sub-Questgroups, related Questgroups etc. and
* store this value in the database. * store this value in the database.
* *
* @param int $questgroupId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @param array $calculatedQuests Already calculated Quests * @param array $calculatedQuests Already calculated Quests
* @return int Sum of calculated XPs * @return int Sum of calculated XPs
*/ */
public function calculateXPsForQuestgroup($questgroupId, &$calculatedQuests=array()) public function calculateXPsForQuestgroup($questgroupId, &$calculatedQuests=array())
{ {
@ -969,7 +969,7 @@
* *
* @param int $questgroupId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return int Sum of XPs of Quests * @return int Sum of XPs of Quests
*/ */
private function _getAchievedXPsForQuestgroup($questgroupId, $characterId) private function _getAchievedXPsForQuestgroup($questgroupId, $characterId)
{ {
@ -994,9 +994,9 @@
* its following Quests by choosing the path with the highest * its following Quests by choosing the path with the highest
* amount of XPs. * amount of XPs.
* *
* @param int $quest Quest data * @param int $quest Quest data
* @param array $calculatedQuests Already calculated Quests * @param array $calculatedQuests Already calculated Quests
* @return int Sum of calculated XPs * @return int Sum of calculated XPs
*/ */
private function _calculateXPsForQuestgroup($quest, &$calculatedQuests=array()) private function _calculateXPsForQuestgroup($quest, &$calculatedQuests=array())
{ {
@ -1029,7 +1029,7 @@
* Set achievable XPs for a Questgroup. * Set achievable XPs for a Questgroup.
* *
* @param int $questgroupId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @param int $xps XPs to set * @param int $xps XPs to set
*/ */
private function setXPsForQuestgroup($questgroupId, $xps) private function setXPsForQuestgroup($questgroupId, $xps)
{ {

View file

@ -38,8 +38,8 @@
* Get a Questgroup hierarchy by its ID. * Get a Questgroup hierarchy by its ID.
* *
* throws \nre\exceptions\IdNotFoundException * throws \nre\exceptions\IdNotFoundException
* @param int $questgroupshierarchyId ID of a Questgroup hierarchy * @param int $questgroupshierarchyId ID of a Questgroup hierarchy
* @return array Questgroup hierarchy * @return array Questgroup hierarchy
*/ */
public function getHierarchyById($questgroupshierarchyId) public function getHierarchyById($questgroupshierarchyId)
{ {
@ -63,9 +63,9 @@
* Get a Questgroup hierarchy by its URL. * Get a Questgroup hierarchy by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questgroupshierarchyURL URL of a Questgroup hierarchy * @param int $questgroupshierarchyUrl URL of a Questgroup hierarchy
* @return array Questgroup hierarchy * @return array Questgroup hierarchy
*/ */
public function getHierarchyByUrl($seminaryId, $questgroupshierarchyUrl) public function getHierarchyByUrl($seminaryId, $questgroupshierarchyUrl)
{ {
@ -89,8 +89,8 @@
/** /**
* Get the toplevel hierarchy entries of a Seminary. * Get the toplevel hierarchy entries of a Seminary.
* *
* @param int $seminaryId ID of the seminary to get hierarchy for * @param int $seminaryId ID of the seminary to get hierarchy for
* @return array Toplevel hierarchy * @return array Toplevel hierarchy
*/ */
public function getHierarchyOfSeminary($seminaryId) public function getHierarchyOfSeminary($seminaryId)
{ {
@ -110,8 +110,8 @@
/** /**
* Get the Questgroup-Hierarchy for a Questgroup. * Get the Questgroup-Hierarchy for a Questgroup.
* *
* @param int $questgroupId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @return array Hierarchy for Questgroup * @return array Hierarchy for Questgroup
*/ */
public function getHierarchyForQuestgroup($questgroupId) public function getHierarchyForQuestgroup($questgroupId)
{ {
@ -135,8 +135,8 @@
/** /**
* Get the child hierarchy entries of a Questgroup hierarchy. * Get the child hierarchy entries of a Questgroup hierarchy.
* *
* @param int $questgroupshierarchyId ID of a Questgroup hierarchy * @param int $questgroupshierarchyId ID of a Questgroup hierarchy
* @return array Child Questgroup hierarchy entries * @return array Child Questgroup hierarchy entries
*/ */
public function getChildQuestgroupshierarchy($questgroupshierarchyId) public function getChildQuestgroupshierarchy($questgroupshierarchyId)
{ {
@ -155,10 +155,10 @@
* Check if a title for a Questgroupshierarchy already exists * Check if a title for a Questgroupshierarchy already exists
* for a Seminary. * for a Seminary.
* *
* @param string $title * @param string $title Title to check
* @param int $seminaryId * @param int $seminaryId ID of Seminary
* @param int $questgroupshierarchyId Do not check this Questgroupshierarchy (for editing) * @param int $questgroupshierarchyId Do not check this Questgroupshierarchy (for editing)
* @return Whether title already exists or not * @return Whether title already exists or not
*/ */
public function questgroupshierarchyTitleSingularExists($title, $seminaryId, $questgroupshierarchyId=null) public function questgroupshierarchyTitleSingularExists($title, $seminaryId, $questgroupshierarchyId=null)
{ {
@ -180,11 +180,11 @@
/** /**
* Create a new Questgroupshierarchy for a Seminary * Create a new Questgroupshierarchy for a Seminary
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $parentQuestgroupsierarchyId ID of parent Questgroupshierarchy * @param int $parentQuestgroupsierarchyId ID of parent Questgroupshierarchy
* @param string $title Title (singular) * @param string $titleSingular Title (singular)
* @param string $course Title (plural) * @param string $titlePlural Title (plural)
*/ */
public function createQuestgroupshierarchy($userId, $seminaryId, $parentQuestgroupsierarchyId, $titleSingular, $titlePlural) public function createQuestgroupshierarchy($userId, $seminaryId, $parentQuestgroupsierarchyId, $titleSingular, $titlePlural)
{ {
@ -223,9 +223,9 @@
/** /**
* Edit a Questgroupshierarchy. * Edit a Questgroupshierarchy.
* *
* @param int $questgroupshierarchyId ID of Questgroupshierarchy to edit * @param int $questgroupshierarchyId ID of Questgroupshierarchy to edit
* @param string $title New title (singular) * @param string $titleSingular New title (singular)
* @param string $course New title (plural) * @param string $titlePlural New title (plural)
*/ */
public function editQuestgroupshierarchy($questgroupshierarchyId, $titleSingular, $titlePlural) public function editQuestgroupshierarchy($questgroupshierarchyId, $titleSingular, $titlePlural)
{ {
@ -247,7 +247,7 @@
* (increment position). * (increment position).
* *
* @param array $questgroupshierarchy Questgroupshierarchy to move * @param array $questgroupshierarchy Questgroupshierarchy to move
* @param boolean $up True for moving up, false for down * @param boolean $up True for moving up, false for down
*/ */
public function moveQuestgroupshierarchy($questgroupshierarchy, $up) public function moveQuestgroupshierarchy($questgroupshierarchy, $up)
{ {
@ -331,7 +331,7 @@
/** /**
* Delete a Questgroupshierarchy. * Delete a Questgroupshierarchy.
* *
* @param int $seminaryId ID of the seminary to delete * @param int $questgroupshierarchyId ID of Questgroups hierarchy to delete
*/ */
public function deleteQuestgroupshierarchy($questgroupshierarchyId) public function deleteQuestgroupshierarchy($questgroupshierarchyId)
{ {
@ -359,7 +359,7 @@
* @param int $sourceSeminaryId ID of Seminary to copy hierarchy from * @param int $sourceSeminaryId ID of Seminary to copy hierarchy from
* @param int $targetSeminaryId ID of Seminary to copy hierarchy to * @param int $targetSeminaryId ID of Seminary to copy hierarchy to
* @param array $hierarchy Hierarchy to copy * @param array $hierarchy Hierarchy to copy
* @return array $hierarchyIds Mapping of hierarchy IDs from source Seminary to target Seminary * @param array $hierarchyIds Mapping of hierarchy IDs from source Seminary to target Seminary
*/ */
private function copyHierarchy($userId, $sourceSeminaryId, $targetSeminaryId, $hierarchy, &$hierarchyIds) private function copyHierarchy($userId, $sourceSeminaryId, $targetSeminaryId, $hierarchy, &$hierarchyIds)
{ {

View file

@ -69,10 +69,10 @@
* Get a Quest and its data by its URL. * Get a Quest and its data by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryId ID of the corresponding Seminary * @param int $seminaryId ID of the corresponding Seminary
* @param int $questgroupId ID of the corresponding Questgroup * @param int $questgroupId ID of the corresponding Questgroup
* @param string $questURL URL-title of a Quest * @param string $questUrl URL-title of a Quest
* @return array Quest data * @return array Quest data
*/ */
public function getQuestByUrl($seminaryId, $questgroupId, $questUrl) public function getQuestByUrl($seminaryId, $questgroupId, $questUrl)
{ {
@ -98,7 +98,7 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $questId ID of a Quest * @param string $questId ID of a Quest
* @return array Quest data * @return array Quest data
*/ */
public function getQuestById($questId) public function getQuestById($questId)
{ {
@ -122,8 +122,8 @@
/** /**
* Get the first Quest of a Qusetgroup. * Get the first Quest of a Qusetgroup.
* *
* @param int $questId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @return array Data of first Quest * @return array Data of first Quest
*/ */
public function getFirstQuestOfQuestgroup($questgroupId) public function getFirstQuestOfQuestgroup($questgroupId)
{ {
@ -148,8 +148,8 @@
* Get all Quests a Qusetgroup that do not have a following * Get all Quests a Qusetgroup that do not have a following
* Quest. * Quest.
* *
* @param int $questId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @return array List of last Quests * @return array List of last Quests
*/ */
public function getLastQuestsOfQuestgroup($questgroupId) public function getLastQuestsOfQuestgroup($questgroupId)
{ {
@ -170,8 +170,8 @@
/** /**
* Get Quests that follow-up a Quest. * Get Quests that follow-up a Quest.
* *
* @param int $questId ID of Quest to get next Quests of * @param int $questId ID of Quest to get next Quests of
* @return array Quests data * @return array Quests data
*/ */
public function getNextQuests($questId) public function getNextQuests($questId)
{ {
@ -190,8 +190,8 @@
/** /**
* Get Quests that the given Quests follows-up to. * Get Quests that the given Quests follows-up to.
* *
* @param int $questId ID of Quest to get previous Quests of * @param int $questId ID of Quest to get previous Quests of
* @return array Quests data * @return array Quests data
*/ */
public function getPreviousQuests($questId) public function getPreviousQuests($questId)
{ {
@ -210,7 +210,7 @@
/** /**
* Set the previous Quest for a Quest. * Set the previous Quest for a Quest.
* *
* @param int $questId ID of Quest to set previous Quest for * @param int $questId ID of Quest to set previous Quest for
* @param int $previousQuestId Id of previous Quest * @param int $previousQuestId Id of previous Quest
*/ */
public function setPreviousQuest($questId, $previousQuestId) public function setPreviousQuest($questId, $previousQuestId)
@ -230,7 +230,7 @@
/** /**
* Mark a Quest as entered for a Character. * Mark a Quest as entered for a Character.
* *
* @param int $questId ID of Quest to mark as entered * @param int $questId ID of Quest to mark as entered
* @param int $characterId ID of Character that entered the Quest * @param int $characterId ID of Character that entered the Quest
*/ */
public function setQuestEntered($questId, $characterId) public function setQuestEntered($questId, $characterId)
@ -242,7 +242,7 @@
/** /**
* Mark a Quest as submitted for a Character. * Mark a Quest as submitted for a Character.
* *
* @param int $questId ID of Quest to mark as unsolved * @param int $questId ID of Quest to mark as unsolved
* @param int $characterId ID of Character that unsolved the Quest * @param int $characterId ID of Character that unsolved the Quest
*/ */
public function setQuestSubmitted($questId, $characterId) public function setQuestSubmitted($questId, $characterId)
@ -254,7 +254,7 @@
/** /**
* Mark a Quest as unsolved for a Character. * Mark a Quest as unsolved for a Character.
* *
* @param int $questId ID of Quest to mark as unsolved * @param int $questId ID of Quest to mark as unsolved
* @param int $characterId ID of Character that unsolved the Quest * @param int $characterId ID of Character that unsolved the Quest
*/ */
public function setQuestUnsolved($questId, $characterId) public function setQuestUnsolved($questId, $characterId)
@ -266,7 +266,7 @@
/** /**
* Mark a Quest as solved for a Character. * Mark a Quest as solved for a Character.
* *
* @param int $questId ID of Quest to mark as solved * @param int $questId ID of Quest to mark as solved
* @param int $characterId ID of Character that solved the Quest * @param int $characterId ID of Character that solved the Quest
*/ */
public function setQuestSolved($questId, $characterId) public function setQuestSolved($questId, $characterId)
@ -278,9 +278,9 @@
/** /**
* Determine if the given Character has entered a Quest. * Determine if the given Character has entered a Quest.
* *
* @param int $questId ID of Quest to check * @param int $questId ID of Quest to check
* @param int $characterId ID of Character to check * @param int $characterId ID of Character to check
* @result boolean Whether Character has entered the Quest or not * @result boolean Whether Character has entered the Quest or not
*/ */
public function hasCharacterEnteredQuest($questId, $characterId) public function hasCharacterEnteredQuest($questId, $characterId)
{ {
@ -302,9 +302,9 @@
/** /**
* Determine if the given Character has tried to solve a Quest. * Determine if the given Character has tried to solve a Quest.
* *
* @param int $questId ID of Quest to check * @param int $questId ID of Quest to check
* @param int $characterId ID of Character to check * @param int $characterId ID of Character to check
* @result boolean Whether Character has tried to solved the Quest or not * @result boolean Whether Character has tried to solved the Quest or not
*/ */
public function hasCharacterTriedQuest($questId, $characterId) public function hasCharacterTriedQuest($questId, $characterId)
{ {
@ -326,9 +326,9 @@
/** /**
* Determine if the given Character has solved the given Quest. * Determine if the given Character has solved the given Quest.
* *
* @param int $questId ID of Quest to check * @param int $questId ID of Quest to check
* @param int $characterId ID of Character to check * @param int $characterId ID of Character to check
* @result boolean Whether Character has solved the Quest or not * @result boolean Whether Character has solved the Quest or not
*/ */
public function hasCharacterSolvedQuest($questId, $characterId) public function hasCharacterSolvedQuest($questId, $characterId)
{ {
@ -350,8 +350,8 @@
/** /**
* Get the last Quests for a Character. * Get the last Quests for a Character.
* *
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @retrun array Quest data * @retrun array Quest data
*/ */
public function getLastQuestForCharacter($characterId) public function getLastQuestForCharacter($characterId)
{ {
@ -378,8 +378,8 @@
/** /**
* Get all Quests for a Seminary. * Get all Quests for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @return array Quests for this Seminary * @return array Quests for this Seminary
*/ */
public function getQuestsForSeminary($seminaryId) public function getQuestsForSeminary($seminaryId)
{ {
@ -398,11 +398,11 @@
/** /**
* Get count of all Quests for a Seminary. * Get count of all Quests for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questgroupId ID of Questgroup (optional) * @param int $questgroupId ID of Questgroup (optional)
* @param int $questtypeId ID of Questtype (optional) * @param int $questtypeId ID of Questtype (optional)
* @param string $title Part of the title to filter for (optional) * @param string $title Part of the title to filter for (optional)
* @return int Count of Quests for this Seminary * @return int Count of Quests for this Seminary
*/ */
public function getCountForQuestsForSeminaryByOpenSubmissions($seminaryId, $questgroupId=null, $questtypeId=null, $title=null) public function getCountForQuestsForSeminaryByOpenSubmissions($seminaryId, $questgroupId=null, $questtypeId=null, $title=null)
{ {
@ -430,13 +430,13 @@
* Get all Quests for a Seminary order by their count of open * Get all Quests for a Seminary order by their count of open
* submissions. * submissions.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questgroupId ID of Questgroup (optional) * @param int $questgroupId ID of Questgroup (optional)
* @param int $questtypeId ID of Questtype (optional) * @param int $questtypeId ID of Questtype (optional)
* @param string $title Part of title to filter for (optional) * @param string $title Part of title to filter for (optional)
* @param int $limit Limit amount of Quests (optional) * @param int $limit Limit amount of Quests (optional)
* @param int $offset Offset (optional) * @param int $offset Offset (optional)
* @return array Quests for this Seminary * @return array Quests for this Seminary
*/ */
public function getQuestsForSeminaryByOpenSubmissions($seminaryId, $questgroupId=null, $questtypeId=null, $title=null, $limit=null, $offset=0) public function getQuestsForSeminaryByOpenSubmissions($seminaryId, $questgroupId=null, $questtypeId=null, $title=null, $limit=null, $offset=0)
{ {
@ -468,8 +468,8 @@
/** /**
* Get all Quests that are linked to a Questtopic. * Get all Quests that are linked to a Questtopic.
* *
* @param int $questtopicId ID of Questtopic * @param int $questtopicId ID of Questtopic
* @return array Quests for this Questtopic * @return array Quests for this Questtopic
*/ */
public function getQuestsForQuesttopic($questtopicId) public function getQuestsForQuesttopic($questtopicId)
{ {
@ -491,10 +491,10 @@
/** /**
* Mark a Quest for a Character. * Mark a Quest for a Character.
* *
* @param int $questId ID of Quest to mark * @param int $questId ID of Quest to mark
* @param int $characterId ID of Character to mark the Quest for * @param int $characterId ID of Character to mark the Quest for
* @param int $status Quest status to mark * @param int $status Quest status to mark
* @param boolean $repeated Insert although status is already set for this Quest and Character * @param boolean $repeated Insert although status is already set for this Quest and Character
*/ */
private function setQuestStatus($questId, $characterId, $status, $repeated=true) private function setQuestStatus($questId, $characterId, $status, $repeated=true)
{ {
@ -532,9 +532,9 @@
/** /**
* Get the last status of a Quest for a Character. * Get the last status of a Quest for a Character.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @param int $characterId ID of Character to get status for * @param int $characterId ID of Character to get status for
* @return int Last status * @return int Last status
*/ */
public function getLastQuestStatus($questId, $characterId) public function getLastQuestStatus($questId, $characterId)
{ {
@ -560,9 +560,9 @@
* Check if a Quest title already exists. * Check if a Quest title already exists.
* *
* @param string $title Quest title to check * @param string $title Quest title to check
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $questId Do not check this ID (for editing) * @param int $questId Do not check this ID (for editing)
* @return boolean Whether Quest title exists or not * @return boolean Whether Quest title exists or not
*/ */
public function questTitleExists($title, $seminaryId, $questId=null) public function questTitleExists($title, $seminaryId, $questId=null)
{ {
@ -584,15 +584,15 @@
/** /**
* Create a new Quest. * Create a new Quest.
* *
* @param int $userId User-ID that creates the new character * @param int $userId User-ID that creates the new character
* @param int $questgroupId ID of Questgroup * @param int $questgroupId ID of Questgroup
* @param int $questtypeId ID of Questtype * @param int $questtypeId ID of Questtype
* @param string $title Title for new Quest * @param string $title Title for new Quest
* @param int $xps XPs for new Quest * @param int $xps XPs for new Quest
* @param string $task Task for new Quest * @param string $task Task for new Quest
* @param string $entrytext Entrytext for new Quest * @param string $entrytext Entrytext for new Quest
* @param string $wrongtext Wrongtext for new Quest * @param string $wrongtext Wrongtext for new Quest
* @return int ID of new Quest * @return int ID of new Quest
*/ */
public function createQuest($userId, $questgroupId, $questtypeId, $title, $xps, $task, $entrytext, $wrongtext) public function createQuest($userId, $questgroupId, $questtypeId, $title, $xps, $task, $entrytext, $wrongtext)
{ {
@ -636,8 +636,8 @@
/** /**
* Set the media for a Quest. * Set the media for a Quest.
* *
* @param int $questId ID of Quest to set media for * @param int $questId ID of Quest to set media for
* @param int $questmediaId ID of Questsmedia to set * @param int $questsmediaId ID of Questsmedia to set
*/ */
public function setQuestmedia($questId, $questsmediaId) public function setQuestmedia($questId, $questsmediaId)
{ {
@ -655,13 +655,13 @@
/** /**
* Edit a new Quest. * Edit a new Quest.
* *
* @param int $questId ID of Quest to edit * @param int $questId ID of Quest to edit
* @param int $questtypeId ID of Questtype * @param int $questtypeId ID of Questtype
* @param string $title New title for Quest * @param string $title New title for Quest
* @param int $xps XPs for Quest * @param int $xps XPs for Quest
* @param string $task New task for Quest * @param string $task New task for Quest
* @param string $entrytext New entrytext for Quest * @param string $entrytext New entrytext for Quest
* @param string $wrongtext New wrongtext for Quest * @param string $wrongtext New wrongtext for Quest
*/ */
public function editQuest($questId, $questtypeId, $title, $xps, $task, $entrytext, $wrongtext) public function editQuest($questId, $questtypeId, $title, $xps, $task, $entrytext, $wrongtext)
{ {
@ -686,7 +686,7 @@
* Copy all Quests from a Seminary. * Copy all Quests from a Seminary.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryId ID of Seminary to copy from * @param int $sourceSeminaryId ID of Seminary to copy from
* @param array $questgroupIds Mapping of Questgroup-IDs from source Seminary to target Seminary * @param array $questgroupIds Mapping of Questgroup-IDs from source Seminary to target Seminary
* @param array $seminaryMediaIds Mapping of Seminary-media-IDs from source Seminary to target Seminary (optional) * @param array $seminaryMediaIds Mapping of Seminary-media-IDs from source Seminary to target Seminary (optional)
* @return array Mapping of Quest-IDs from source Seminary to target Seminary * @return array Mapping of Quest-IDs from source Seminary to target Seminary

View file

@ -43,8 +43,8 @@
/** /**
* Get the first text of a Quest. * Get the first text of a Quest.
* *
* @param int $questId ID of a Quest * @param int $questId ID of a Quest
* @return string First text of this Quest or NULL * @return string First text of this Quest or NULL
*/ */
public function getFirstQuestText($questId) public function getFirstQuestText($questId)
{ {
@ -61,9 +61,9 @@
/** /**
* Get all Questtexts for a Quest. * Get all Questtexts for a Quest.
* *
* @param int $questId ID of the Quest * @param int $questId ID of the Quest
* @param string $questtexttypeUrl URL of the Questtexttype * @param string $questtexttypeUrl URL of the Questtexttype
* @return array All Questtexts for a Quest * @return array All Questtexts for a Quest
*/ */
public function getQuesttextsOfQuest($questId, $questtexttypeUrl=null) public function getQuesttextsOfQuest($questId, $questtexttypeUrl=null)
{ {
@ -96,9 +96,9 @@
/** /**
* Get count of Questtexts for a Quest. * Get count of Questtexts for a Quest.
* *
* @param int $questId ID of the Quest * @param int $questId ID of the Quest
* @param string $questtexttypeUrl URL of the Questtexttype * @param string $questtexttypeUrl URL of the Questtexttype
* @return int Amount of Questtexts for a Quest * @return int Amount of Questtexts for a Quest
*/ */
public function getQuesttextCountOfQuest($questId, $questtexttypeUrl=null) public function getQuesttextCountOfQuest($questId, $questtexttypeUrl=null)
{ {
@ -138,8 +138,8 @@
* Get corresponding Questtexts for a Questgroup. * Get corresponding Questtexts for a Questgroup.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $questgroupId ID of Questgroup to get the Questtexst for * @param int $questgroupId ID of Questgroup to get the Questtexst for
* @param array List of Questtexts * @param array List of Questtexts
*/ */
public function getRelatedQuesttextsForQuestgroup($questgroupId) public function getRelatedQuesttextsForQuestgroup($questgroupId)
{ {
@ -158,9 +158,9 @@
/** /**
* Get the Questtext that was last entered by a Character. * Get the Questtext that was last entered by a Character.
* *
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @param array $questtexts List of Questtexts to look into * @param array $questtexts List of Questtexts to look into
* @return array Questtext data * @return array Questtext data
*/ */
public function pickQuesttextLastEnteredByCharacter($characterId, $questtexts) public function pickQuesttextLastEnteredByCharacter($characterId, $questtexts)
{ {
@ -212,7 +212,7 @@
* Get a Questtexttype by its URL. * Get a Questtexttype by its URL.
* *
* @param string $questtexttypeUrl URL-type of Questtexttype * @param string $questtexttypeUrl URL-type of Questtexttype
* @return array Questtexttype data * @return array Questtexttype data
*/ */
public function getQuesttexttypeByUrl($questtexttypeUrl) public function getQuesttexttypeByUrl($questtexttypeUrl)
{ {
@ -235,10 +235,10 @@
/** /**
* Add a Questtexts to a Quest. * Add a Questtexts to a Quest.
* *
* @param int $userId ID of user * @param int $userId ID of user
* @param int $questId ID of Quest to add texts to * @param int $questId ID of Quest to add texts to
* @param string $questtexttypeUrl URL-type of Questtexttype of texts * @param string $questtexttypeUrl URL-type of Questtexttype of texts
* @param string $text Text to add. * @param string $text Text to add.
*/ */
public function addQuesttextToQuest($userId, $questId, $questtexttypeUrl, $text) public function addQuesttextToQuest($userId, $questId, $questtexttypeUrl, $text)
{ {
@ -278,7 +278,7 @@
* Set the media for a Quest text. * Set the media for a Quest text.
* *
* @param int $questtextId ID of Quest text to set media for * @param int $questtextId ID of Quest text to set media for
* @param int $questmediaId ID of Questsmedia to set * @param int $questsmediaId ID of Questsmedia to set
*/ */
public function setQuestmedia($questtextId, $questsmediaId) public function setQuestmedia($questtextId, $questsmediaId)
{ {

View file

@ -37,9 +37,9 @@
/** /**
* Get a Questtopic by its URL. * Get a Questtopic by its URL.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $questtopicUrl URL-Title of Questtopic * @param string $questtopicUrl URL-Title of Questtopic
* @return array Questtopic data * @return array Questtopic data
*/ */
public function getQuesttopicByUrl($seminaryId, $questtopicUrl) public function getQuesttopicByUrl($seminaryId, $questtopicUrl)
{ {
@ -62,8 +62,8 @@
/** /**
* Get a Questtopic by its ID. * Get a Questtopic by its ID.
* *
* @param int $questtopicId ID of Questtopic * @param int $questtopicId ID of Questtopic
* @return array Questtopic data * @return array Questtopic data
*/ */
public function getQuesttopicById($questtopicId) public function getQuesttopicById($questtopicId)
{ {
@ -86,8 +86,8 @@
/** /**
* Get all Questtopics for a Seminary. * Get all Questtopics for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @return array List of Questtopics * @return array List of Questtopics
*/ */
public function getQuesttopicsForSeminary($seminaryId) public function getQuesttopicsForSeminary($seminaryId)
{ {
@ -181,7 +181,7 @@
* Get count of Quests that are linked to a Questtopic. * Get count of Quests that are linked to a Questtopic.
* *
* @param int $questtopicId ID of Questtopic * @param int $questtopicId ID of Questtopic
* @return int Count of Quests * @return int Count of Quests
*/ */
public function getQuestCountForQuesttopic($questtopicId) public function getQuestCountForQuesttopic($questtopicId)
{ {
@ -208,7 +208,7 @@
* *
* @param int $questtopicId ID of Questtopic * @param int $questtopicId ID of Questtopic
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return int Count of Quests * @return int Count of Quests
*/ */
public function getCharacterQuestCountForQuesttopic($questtopicId, $characterId) public function getCharacterQuestCountForQuesttopic($questtopicId, $characterId)
{ {
@ -234,8 +234,8 @@
/** /**
* Get alle Questsubtopics for a Questtopic. * Get alle Questsubtopics for a Questtopic.
* *
* @param int $questtopicId ID of Questtopic * @param int $questtopicId ID of Questtopic
* @return array List of Questsubtopics for this Questtopic * @return array List of Questsubtopics for this Questtopic
*/ */
public function getSubtopicsForQuesttopic($questtopicId) public function getSubtopicsForQuesttopic($questtopicId)
{ {
@ -253,8 +253,8 @@
/** /**
* Get all Questsubtopics for a Quest. * Get all Questsubtopics for a Quest.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @return array List of Questsubtopics * @return array List of Questsubtopics
*/ */
public function getQuestsubtopicsForQuest($questId) public function getQuestsubtopicsForQuest($questId)
{ {
@ -273,7 +273,7 @@
/** /**
* Set Questsubtopics for a Quest. * Set Questsubtopics for a Quest.
* *
* @param int $questId ID of Quest to set subtopics for * @param int $questId ID of Quest to set subtopics for
* @param array $questsubtopicIds List of IDs of subtopics to set * @param array $questsubtopicIds List of IDs of subtopics to set
*/ */
public function setQuestsubtopicsForQuest($questId, $questsubtopicIds) public function setQuestsubtopicsForQuest($questId, $questsubtopicIds)
@ -314,9 +314,9 @@
/** /**
* Check if a Questtopic title already exists. * Check if a Questtopic title already exists.
* *
* @param string $title Questtopic title to check * @param string $title Questtopic title to check
* @param int $questtopicId Do not check this ID (for editing) * @param int $questtopicId Do not check this ID (for editing)
* @return boolean Whether Questtopic title exists or not * @return boolean Whether Questtopic title exists or not
*/ */
public function questtopicTitleExists($title, $questtopicId=null) public function questtopicTitleExists($title, $questtopicId=null)
{ {
@ -336,10 +336,10 @@
/** /**
* Create a new Questtopic for a Seminary. * Create a new Questtopic for a Seminary.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $title Title for new Questtopic * @param string $title Title for new Questtopic
* @return int ID of newly created Questtopic * @return int ID of newly created Questtopic
*/ */
public function createQuesttopic($userId, $seminaryId, $title) public function createQuesttopic($userId, $seminaryId, $title)
{ {
@ -362,8 +362,8 @@
/** /**
* Edit a Questtopic. * Edit a Questtopic.
* *
* @param int $questtopicId ID of Questtopic to edit * @param int $questtopicId ID of Questtopic to edit
* @param string $title New title of Questtopic * @param string $title New title of Questtopic
*/ */
public function editQuesttopic($questtopicId, $title) public function editQuesttopic($questtopicId, $title)
{ {
@ -393,10 +393,10 @@
/** /**
* Check if a Questsubtopic title already exists. * Check if a Questsubtopic title already exists.
* *
* @param int $questtopicId ID of Questtopic * @param int $questtopicId ID of Questtopic
* @param string $title Questsubtopic title to check * @param string $title Questsubtopic title to check
* @param int $questsubtopicId Do not check this ID (for editing) * @param int $questsubtopicId Do not check this ID (for editing)
* @return boolean Whether Questsubtopic title exists or not * @return boolean Whether Questsubtopic title exists or not
*/ */
public function questsubtopicTitleExists($questtopicId, $title, $questsubtopicId=null) public function questsubtopicTitleExists($questtopicId, $title, $questsubtopicId=null)
{ {
@ -417,10 +417,10 @@
/** /**
* Create a new Questsubtopic for a Questtopic. * Create a new Questsubtopic for a Questtopic.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param int $questtopicId ID of Qusttopic * @param int $questtopicId ID of Qusttopic
* @param string $title Title for new Questtopic * @param string $title Title for new Questtopic
* @return int ID of newly created Questsubtopic * @return int ID of newly created Questsubtopic
*/ */
public function createQuestsubtopic($userId, $questtopicId, $title) public function createQuestsubtopic($userId, $questtopicId, $title)
{ {
@ -443,8 +443,8 @@
/** /**
* Edit a Questsubtopic. * Edit a Questsubtopic.
* *
* @param int $questsubtopicId ID of Questsubtopic to edit * @param int $questsubtopicId ID of Questsubtopic to edit
* @param string $title New title of Questsubtopic * @param string $title New title of Questsubtopic
*/ */
public function editQuestsubtopic($questsubtopicId, $title) public function editQuestsubtopic($questsubtopicId, $title)
{ {
@ -463,7 +463,7 @@
/** /**
* Delete a Questsubtopic. * Delete a Questsubtopic.
* *
* @param int $questsubtopicId ID of Questsubtopic to delete * @param int $questtopicId ID of Questsubtopic to delete
*/ */
public function deleteQuestsubtopic($questtopicId) public function deleteQuestsubtopic($questtopicId)
{ {

View file

@ -61,7 +61,7 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryId ID of a seminary * @param string $seminaryId ID of a seminary
* @return array Seminary * @return array Seminary
*/ */
public function getSeminaryById($seminaryId) public function getSeminaryById($seminaryId)
{ {
@ -86,7 +86,7 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $seminaryUrl URL-Title of a seminary * @param string $seminaryUrl URL-Title of a seminary
* @return array Seminary * @return array Seminary
*/ */
public function getSeminaryByUrl($seminaryUrl) public function getSeminaryByUrl($seminaryUrl)
{ {
@ -110,7 +110,7 @@
* Calculate sum of XPs for a Seminary. * Calculate sum of XPs for a Seminary.
* *
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @return int Total sum of XPs * @return int Total sum of XPs
*/ */
public function getTotalXPs($seminaryId) public function getTotalXPs($seminaryId)
{ {
@ -136,8 +136,8 @@
* Check if a Seminary title already exists. * Check if a Seminary title already exists.
* *
* @param string $title Seminary title to check * @param string $title Seminary title to check
* @param int $seminaryId Do not check this ID (for editing) * @param int $seminaryId Do not check this ID (for editing)
* @return boolean Whether Seminary title exists or not * @return boolean Whether Seminary title exists or not
*/ */
public function seminaryTitleExists($title, $seminaryId=null) public function seminaryTitleExists($title, $seminaryId=null)
{ {
@ -157,11 +157,11 @@
/** /**
* Create a new Seminary. * Create a new Seminary.
* *
* @param int $userId ID of creating user * @param int $userId ID of creating user
* @param string $title Title of Seminary to create * @param string $title Title of Seminary to create
* @param string $course Course of Seminary * @param string $course Course of Seminary
* @param string $description Description of new Seminary * @param string $description Description of new Seminary
* @return int ID of the newly created Seminary * @return int ID of the newly created Seminary
*/ */
public function createSeminary($userId, $title, $course, $description) public function createSeminary($userId, $title, $course, $description)
{ {
@ -304,10 +304,12 @@
* Edit a seminary. * Edit a seminary.
* *
* @throws \nre\exceptions\DatamodelException * @throws \nre\exceptions\DatamodelException
* @param int $seminaryId ID of Seminary to edit * @param int $seminaryId ID of Seminary to edit
* @param string $title New title of Seminary * @param string $title New title of Seminary
* @param string $course New course of Seminary * @param string $course New course of Seminary
* @param string $description New description of Seminary * @param string $description New description of Seminary
* @param float $latitude GPS-latitude of point to zoom map to
* @param float $longitude GPS-longitude of point to zoom map to
*/ */
public function editSeminary($seminaryId, $title, $course, $description, $latitude, $longitude) public function editSeminary($seminaryId, $title, $course, $description, $latitude, $longitude)
{ {

View file

@ -57,9 +57,9 @@
/** /**
* Set the value of a Seminary field for a Character. * Set the value of a Seminary field for a Character.
* *
* @param int $characterId ID of Character * @param int $seminarycharacterfieldId ID of seminarycharacterfield to set value of
* @param int $seminarycharacterfieldId ID of seminarycharacterfield to set value of * @param int $characterId ID of Character
* @param string $value Value to set * @param string $value Value to set
*/ */
public function setSeminaryFieldOfCharacter($seminarycharacterfieldId, $characterId, $value) public function setSeminaryFieldOfCharacter($seminarycharacterfieldId, $characterId, $value)
{ {

View file

@ -37,13 +37,13 @@
/** /**
* Upload a file and create a database record. * Upload a file and create a database record.
* *
* @param int $userId ID of user that uploads the file * @param int $userId ID of user that uploads the file
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param string $name Name of file to upload * @param string $name Name of file to upload
* @param string $filename Filename of file to upload * @param string $filename Filename of file to upload
* @param string $tmpFilename Name of temporary uploaded file * @param string $tmpFilename Name of temporary uploaded file
* @param string $mimetype Mimetype of file to upload * @param string $mimetype Mimetype of file to upload
* @return mixed ID of database record or false * @return mixed ID of database record or false
*/ */
public function uploadSeminaryFile($userId, $seminaryId, $name, $filename, $tmpFilename, $mimetype) public function uploadSeminaryFile($userId, $seminaryId, $name, $filename, $tmpFilename, $mimetype)
{ {
@ -89,8 +89,8 @@
* Get an upload by its ID. * Get an upload by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $uploadId ID of the uploaded file * @param int $seminaryuploadId ID of the uploaded file
* @return array Upload data * @return array Upload data
*/ */
public function getSeminaryuploadById($seminaryuploadId) public function getSeminaryuploadById($seminaryuploadId)
{ {
@ -114,9 +114,9 @@
* Get an upload by its URL. * Get an upload by its URL.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $seminaryId ID of Seminary * @param int $seminaryId ID of Seminary
* @param int $uploadId ID of the uploaded file * @param int $seminaryuploadUrl ID of the uploaded file
* @return array Upload data * @return array Upload data
*/ */
public function getSeminaryuploadByUrl($seminaryId, $seminaryuploadUrl) public function getSeminaryuploadByUrl($seminaryId, $seminaryuploadUrl)
{ {

View file

@ -38,7 +38,9 @@
* Get count of registered users. * Get count of registered users.
* *
* @param string $username Only get users with the given username (optional) * @param string $username Only get users with the given username (optional)
* @return int Count of users * @param string $name Only get users with the given name (optional)
* @param string $email Only get users with the given email address (optional)
* @return int Count of users
*/ */
public function getUsersCount($username=null, $name=null, $email=null) public function getUsersCount($username=null, $name=null, $email=null)
{ {
@ -75,9 +77,11 @@
* @throws \nre\exceptions\ParamsNotValidException * @throws \nre\exceptions\ParamsNotValidException
* @param string $sort Field to sort by * @param string $sort Field to sort by
* @param string $username Only get users with the given username (optional) * @param string $username Only get users with the given username (optional)
* @param int $limit Limit amount of Characters (optional) * @param string $name Only get users with the given name (optional)
* @param int $offset Offset (optional) * @param string $email Only get users with the given email address (optional)
* @return array Users * @param int $limit Limit amount of Characters (optional)
* @param int $offset Offset (optional)
* @return array Users
*/ */
public function getUsers($sort, $username=null, $name=null, $email=null, $limit=null, $offset=0) public function getUsers($sort, $username=null, $name=null, $email=null, $limit=null, $offset=0)
{ {
@ -133,7 +137,7 @@
* Get users with the given user role. * Get users with the given user role.
* *
* @param string $userrole User role * @param string $userrole User role
* @return array List of users * @return array List of users
*/ */
public function getUsersWithRole($userrole) public function getUsersWithRole($userrole)
{ {
@ -154,8 +158,8 @@
* Get a user and its data by its ID. * Get a user and its data by its ID.
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param int $userId ID of an user * @param int $userId ID of an user
* @return array Userdata * @return array Userdata
*/ */
public function getUserById($userId) public function getUserById($userId)
{ {
@ -181,7 +185,7 @@
* *
* @throws \nre\exceptions\IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @param string $userUrl URL-Username of an user * @param string $userUrl URL-Username of an user
* @return array Userdata * @return array Userdata
*/ */
public function getUserByUrl($userUrl) public function getUserByUrl($userUrl)
{ {
@ -229,8 +233,8 @@
* Check if an username already exists. * Check if an username already exists.
* *
* @param string $username Username to check * @param string $username Username to check
* @param int $userId Do not check this ID (for editing) * @param int $userId Do not check this ID (for editing)
* @return boolean Whether username exists or not * @return boolean Whether username exists or not
*/ */
public function usernameExists($username, $userId=null) public function usernameExists($username, $userId=null)
{ {
@ -252,8 +256,8 @@
* Check if an email address already exists. * Check if an email address already exists.
* *
* @param string $email Email address to check * @param string $email Email address to check
* @param int $userId Do not check this ID (for editing) * @param int $userId Do not check this ID (for editing)
* @return boolean Whether email address exists or not * @return boolean Whether email address exists or not
*/ */
public function emailExists($email, $userId=null) public function emailExists($email, $userId=null)
{ {
@ -278,7 +282,7 @@
* @param string $surname Surname of the user to create * @param string $surname Surname of the user to create
* @param string $email EMail-Address of the user to create * @param string $email EMail-Address of the user to create
* @param string $password Password of the user to create * @param string $password Password of the user to create
* @return int ID of the newly created user * @return int ID of the newly created user
*/ */
public function createUser($username, $prename, $surname, $email, $password) public function createUser($username, $prename, $surname, $email, $password)
{ {
@ -329,7 +333,7 @@
* Edit a user. * Edit a user.
* *
* @throws \nre\exceptions\DatamodelException * @throws \nre\exceptions\DatamodelException
* @param int $userId ID of the user to delete * @param int $userId ID of the user to delete
* @param string $username New name of user * @param string $username New name of user
* @param string $prename Prename of the user to create * @param string $prename Prename of the user to create
* @param string $surname Surname of the user to create * @param string $surname Surname of the user to create
@ -395,7 +399,7 @@
* Hash a password. * Hash a password.
* *
* @param string $password Plaintext password * @param string $password Plaintext password
* @return string Hashed password * @return string Hashed password
*/ */
public function hash($password) public function hash($password)
{ {
@ -413,7 +417,7 @@
* *
* @param string $password Plaintext password to verify * @param string $password Plaintext password to verify
* @param string $hash Hashed password to match with * @param string $hash Hashed password to match with
* @return boolean Verified * @return boolean Verified
*/ */
private function verify($password, $hash) private function verify($password, $hash)
{ {

View file

@ -22,6 +22,7 @@
</logging> </logging>
<files> <files>
<directory>.</directory> <directory>.</directory>
<ignore>app/lib/*</ignore>
<ignore>doc/*</ignore> <ignore>doc/*</ignore>
<ignore>logs/*</ignore> <ignore>logs/*</ignore>
<ignore>media/*</ignore> <ignore>media/*</ignore>

View file

@ -82,8 +82,8 @@
/** /**
* Get a Boss-Fight. * Get a Boss-Fight.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @return array Boss-Fight data * @return array Boss-Fight data
*/ */
public function getBossFight($questId) public function getBossFight($questId)
{ {
@ -105,8 +105,8 @@
/** /**
* Get the first Stage to begin the Boss-Fight with. * Get the first Stage to begin the Boss-Fight with.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @return array Data of first Stage * @return array Data of first Stage
*/ */
public function getFirstStage($questId) public function getFirstStage($questId)
{ {
@ -129,8 +129,8 @@
/** /**
* Get a Stage by its ID. * Get a Stage by its ID.
* *
* @param int $stageId ID of Stage * @param int $stageId ID of Stage
* @return array Stage data or null * @return array Stage data or null
*/ */
public function getStageById($stageId) public function getStageById($stageId)
{ {
@ -153,8 +153,8 @@
/** /**
* Get the follow-up Stages for a Stage. * Get the follow-up Stages for a Stage.
* *
* @param int $parentStageId ID of Stage to get follow-up Stages for * @param int $parentStageId ID of Stage to get follow-up Stages for
* @return array List of follow-up Stages * @return array List of follow-up Stages
*/ */
public function getChildStages($parentStageId) public function getChildStages($parentStageId)
{ {
@ -171,7 +171,7 @@
/** /**
* Reset all Character submissions of a Boss-Fight. * Reset all Character submissions of a Boss-Fight.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @param int $characterId ID of Character * @param int $characterId ID of Character
*/ */
public function clearCharacterSubmissions($questId, $characterId) public function clearCharacterSubmissions($questId, $characterId)
@ -193,7 +193,7 @@
/** /**
* Save Characters submitted answer for one Boss-Fight-Stage. * Save Characters submitted answer for one Boss-Fight-Stage.
* *
* @param int $regexId ID of list * @param int $stageId ID of list
* @param int $characterId ID of Character * @param int $characterId ID of Character
*/ */
public function setCharacterSubmission($stageId, $characterId) public function setCharacterSubmission($stageId, $characterId)
@ -214,9 +214,9 @@
/** /**
* Get answer of one Boss-Fight-Stage submitted by Character. * Get answer of one Boss-Fight-Stage submitted by Character.
* *
* @param int $regexId ID of list * @param int $stageId ID of list
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return boolean Stage taken * @return boolean Stage taken
*/ */
public function getCharacterSubmission($stageId, $characterId) public function getCharacterSubmission($stageId, $characterId)
{ {

View file

@ -111,8 +111,8 @@
/** /**
* Get choiceinput-text for a Quest. * Get choiceinput-text for a Quest.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @return array Choiceinput-text * @return array Choiceinput-text
*/ */
public function getChoiceinputQuest($questId) public function getChoiceinputQuest($questId)
{ {
@ -135,8 +135,8 @@
/** /**
* Get all lists of input values for a choiceinput-text. * Get all lists of input values for a choiceinput-text.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @return array List * @return array List
*/ */
public function getChoiceinputLists($questId) public function getChoiceinputLists($questId)
{ {
@ -154,8 +154,8 @@
/** /**
* Get the list of values for a choiceinput-list. * Get the list of values for a choiceinput-list.
* *
* @param int $listId ID of list * @param int $listId ID of list
* @return array Input values * @return array Input values
*/ */
public function getChoiceinputChoices($listId) public function getChoiceinputChoices($listId)
{ {
@ -173,9 +173,9 @@
/** /**
* Save Characters submitted answer for one choiceinput-list. * Save Characters submitted answer for one choiceinput-list.
* *
* @param int $regexId ID of list * @param int $listId ID of list
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @param string $answer Submitted answer for this list * @param string $answer Submitted answer for this list
*/ */
public function setCharacterSubmission($listId, $characterId, $answer) public function setCharacterSubmission($listId, $characterId, $answer)
{ {
@ -211,9 +211,9 @@
/** /**
* Get answer of one choiceinput-list submitted by Character. * Get answer of one choiceinput-list submitted by Character.
* *
* @param int $regexId ID of list * @param int $listId ID of list
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return int Submitted answer for this list or null * @return int Submitted answer for this list or null
*/ */
public function getCharacterSubmission($listId, $characterId) public function getCharacterSubmission($listId, $characterId)
{ {
@ -236,8 +236,8 @@
/** /**
* Set the text for a Quest and correct choice input lists count. * Set the text for a Quest and correct choice input lists count.
* *
* @param int $userId ID of user setting text * @param int $userId ID of user setting text
* @param int $questId ID of Quest to set text for * @param int $questId ID of Quest to set text for
* @param string $text Text for Quest * @param string $text Text for Quest
*/ */
public function setTextForQuest($userId, $questId, $text) public function setTextForQuest($userId, $questId, $text)
@ -300,10 +300,10 @@
/** /**
* Set list of choices for a text. * Set list of choices for a text.
* *
* @param int $questId ID of Quest to set choices for * @param int $questId ID of Quest to set choices for
* @param int $number List number * @param int $number List number
* @param array $choices List of choices * @param array $choices List of choices
* @param int $correctPos Position of correct answer * @param int $correctPos Position of correct answer
*/ */
public function setListForText($questId, $number, $choices, $correctPos) public function setListForText($questId, $number, $choices, $correctPos)
{ {

View file

@ -61,8 +61,8 @@
/** /**
* Get all words for a crossword-Quest. * Get all words for a crossword-Quest.
* *
* @param int $questId ID of Quest * @param int $questId ID of Quest
* @return array Words * @return array Words
*/ */
public function getWordsForQuest($questId) public function getWordsForQuest($questId)
{ {
@ -79,9 +79,9 @@
/** /**
* Save Characters submitted answer for one crossword-word. * Save Characters submitted answer for one crossword-word.
* *
* @param int $regexId ID of word * @param int $wordId ID of word
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @param string $answer Submitted answer for this word * @param string $answer Submitted answer for this word
*/ */
public function setCharacterSubmission($wordId, $characterId, $answer) public function setCharacterSubmission($wordId, $characterId, $answer)
{ {
@ -102,9 +102,9 @@
/** /**
* Get answer of one crossword-word submitted by Character. * Get answer of one crossword-word submitted by Character.
* *
* @param int $regexId ID of lisword * @param int $wordId ID of word
* @param int $characterId ID of Character * @param int $characterId ID of Character
* @return int Submitted answer for this word or null * @return int Submitted answer for this word or null
*/ */
public function getCharacterSubmission($wordId, $characterId) public function getCharacterSubmission($wordId, $characterId)
{ {

View file

@ -32,6 +32,11 @@
*/ */
const KEY_QUESTTYPEDATA_N_CORRECT_ANSWRES = 'nCorrectAnswers'; const KEY_QUESTTYPEDATA_N_CORRECT_ANSWRES = 'nCorrectAnswers';
/**
* Number of correct answers
*
* @var int
*/
private $nCorrectAnswers = null; private $nCorrectAnswers = null;

View file

@ -31,7 +31,7 @@
* Save the answer of a Character group for a Station. * Save the answer of a Character group for a Station.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $charactergroup Current Character group data * @param array $charactergroup Current Character group data
@ -53,7 +53,7 @@
* Check if answer of a Character group for a Station matches the correct one. * Check if answer of a Character group for a Station matches the correct one.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $charactergroup Current Character group data * @param array $charactergroup Current Character group data
@ -92,11 +92,11 @@
* *
* Show the task of a Station. * Show the task of a Station.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $charactergroup Current Character group data * @param array $charactergroup Current Character group data
*/ */
public function quest($seminary, $groupsgroup, $quest, $station, $charactergroup) public function quest($seminary, $groupsgroup, $quest, $station, $charactergroup)
{ {

View file

@ -31,7 +31,7 @@
* Save the answer of a Character group for a Station. * Save the answer of a Character group for a Station.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $charactergroup Current Character group data * @param array $charactergroup Current Character group data
@ -51,7 +51,7 @@
* Check if answer of a Character group for a Station matches the correct one. * Check if answer of a Character group for a Station matches the correct one.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $charactergroup Current Character group data * @param array $charactergroup Current Character group data
@ -74,11 +74,11 @@
* *
* Show the task of a Station. * Show the task of a Station.
* *
* @param array $seminary Current Seminary data * @param array $seminary Current Seminary data
* @param array $questgroup Current Questgroup data * @param array $groupsgroup Current Groups group data
* @param array $quest Current Quest data * @param array $quest Current Quest data
* @param array $station Current Station data * @param array $station Current Station data
* @param array $charactergroup Current Character group data * @param array $charactergroup Current Character group data
*/ */
public function quest($seminary, $groupsgroup, $quest, $station, $charactergroup) public function quest($seminary, $groupsgroup, $quest, $station, $charactergroup)
{ {