$models
$models : array
Required models
Model of the CharactergroupsquestsAgent to interact with Charactergroupsquests-table.
getQuestByUrl(integer $groupsgroupId, string $questUrl) : array
Get a Character groups Quest by its URL.
integer | $groupsgroupId | ID of the Character groups-group |
string | $questUrl | URL-title of the Character groups Quest |
Character groups Quest data
characterGroupsQuestTitleExists( $title, integer $questId = null) : boolean
Check if a Character groups Quest title already exists.
$title | ||
integer | $questId | Do not check this ID (for editing) |
Whether Character groups Quest title exists or not
uploadMediaForQuest(integer $userId, integer $seminaryId, integer $questId, array $file, string $filename) : boolean
Upload a media for a Character groups Quest.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
integer | $questId | ID of Quest to upload media for |
array | $file | File-array of file to upload |
string | $filename | Filename for media |
Whether upload succeeded or not
createQuest(integer $userId, integer $groupsgroupId, integer $questgroupId, string $title, string $description, integer $xps, string $rules, string $wonText, string $lostText) : integer
Create a new Character groups Quest.
integer | $userId | ID of user |
integer | $groupsgroupId | ID of Character groups-group |
integer | $questgroupId | ID of Quest group |
string | $title | Title of new Quest |
string | $description | Description of new Quset |
integer | $xps | Amount of XPs for new Quest |
string | $rules | Rules of new Quest |
string | $wonText | Won-text of new Quset |
string | $lostText | Lost-text of new Quest |
ID of newly created Quest
editQuest(integer $questId, integer $groupsgroupId, integer $questgroupId, string $title, string $description, integer $xps, string $rules, string $wonText, string $lostText)
Edit a Character groups Quest.
integer | $questId | ID of Character groups Quest to edit |
integer | $groupsgroupId | ID of Character groups-group |
integer | $questgroupId | ID of Quest group |
string | $title | Title of new Quest |
string | $description | Description of new Quset |
integer | $xps | Amount of XPs for new Quest |
string | $rules | Rules of new Quest |
string | $wonText | Won-text of new Quset |
string | $lostText | Lost-text of new Quest |