$db
$db : \nre\models\DatabaseDriver
Database connection
Model to interact with Questtopics-table.
getCharacterQuestCountForQuesttopic(integer $questtopicId, integer $characterId) : integer
Get count of Quests that are linked to a Questtopic and are unlocked by a Character.
integer | $questtopicId | ID of Questtopic |
integer | $characterId | ID of Character |
Count of Quests
questtopicTitleExists(string $title, integer $questtopicId = null) : boolean
Check if a Questtopic title already exists.
string | $title | Questtopic title to check |
integer | $questtopicId | Do not check this ID (for editing) |
Whether Questtopic title exists or not
createQuesttopic(integer $userId, integer $seminaryId, string $title) : integer
Create a new Questtopic for a Seminary.
integer | $userId | ID of creating user |
integer | $seminaryId | ID of Seminary |
string | $title | Title for new Questtopic |
ID of newly created Questtopic
questsubtopicTitleExists(integer $questtopicId, string $title, integer $questsubtopicId = null) : boolean
Check if a Questsubtopic title already exists.
integer | $questtopicId | ID of Questtopic |
string | $title | Questsubtopic title to check |
integer | $questsubtopicId | Do not check this ID (for editing) |
Whether Questsubtopic title exists or not
createQuestsubtopic(integer $userId, integer $questtopicId, string $title) : integer
Create a new Questsubtopic for a Questtopic.
integer | $userId | ID of creating user |
integer | $questtopicId | ID of Qusttopic |
string | $title | Title for new Questtopic |
ID of newly created Questsubtopic