QUEST_STATUS_ENTERED
QUEST_STATUS_ENTERED
Quest-status: Entered
Model to interact with Quests-table.
getQuestByUrl(integer $seminaryId, integer $questgroupId, $questUrl) : array
Get a Quest and its data by its URL.
integer | $seminaryId | ID of the corresponding Seminary |
integer | $questgroupId | ID of the corresponding Questgroup |
$questUrl |
Quest data
getCountForQuestsForSeminaryByOpenSubmissions(integer $seminaryId, integer $questgroupId = null, integer $questtypeId = null, string $title = null) : integer
Get count of all Quests for a Seminary.
integer | $seminaryId | ID of Seminary |
integer | $questgroupId | ID of Questgroup (optional) |
integer | $questtypeId | ID of Questtype (optional) |
string | $title | Part of the title to filter for (optional) |
Count of Quests for this Seminary
getQuestsForSeminaryByOpenSubmissions(integer $seminaryId, integer $questgroupId = null, integer $questtypeId = null, string $title = null, integer $limit = null, integer $offset) : array
Get all Quests for a Seminary order by their count of open submissions.
integer | $seminaryId | ID of Seminary |
integer | $questgroupId | ID of Questgroup (optional) |
integer | $questtypeId | ID of Questtype (optional) |
string | $title | Part of title to filter for (optional) |
integer | $limit | Limit amount of Quests (optional) |
integer | $offset | Offset (optional) |
Quests for this Seminary
questTitleExists(string $title, integer $seminaryId, integer $questId = null) : boolean
Check if a Quest title already exists.
string | $title | Quest title to check |
integer | $seminaryId | ID of Seminary |
integer | $questId | Do not check this ID (for editing) |
Whether Quest title exists or not
createQuest(integer $userId, integer $questgroupId, integer $questtypeId, string $title, integer $xps, string $task, string $entrytext, string $wrongtext) : integer
Create a new Quest.
integer | $userId | User-ID that creates the new character |
integer | $questgroupId | ID of Questgroup |
integer | $questtypeId | ID of Questtype |
string | $title | Title for new Quest |
integer | $xps | XPs for new Quest |
string | $task | Task for new Quest |
string | $entrytext | Entrytext for new Quest |
string | $wrongtext | Wrongtext for new Quest |
ID of new Quest
editQuest(integer $questId, integer $questtypeId, string $title, integer $xps, string $task, string $entrytext, string $wrongtext)
Edit a new Quest.
integer | $questId | ID of Quest to edit |
integer | $questtypeId | ID of Questtype |
string | $title | New title for Quest |
integer | $xps | XPs for Quest |
string | $task | New task for Quest |
string | $entrytext | New entrytext for Quest |
string | $wrongtext | New wrongtext for Quest |
setQuestStatus(integer $questId, integer $characterId, integer $status, boolean $repeated = true)
Mark a Quest for a Character.
integer | $questId | ID of Quest to mark |
integer | $characterId | ID of Character to mark the Quest for |
integer | $status | Quest status to mark |
boolean | $repeated | Insert although status is already set for this Quest and Character |