$db
$db : \nre\models\DatabaseDriver
Database connection
Model to interact with Questgroupshierarchy-table.
questgroupshierarchyTitleSingularExists(string $title, integer $seminaryId, integer $questgroupshierarchyId = null) : \hhu\z\models\Whether
Check if a title for a Questgroupshierarchy already exists for a Seminary.
| string | $title | |
| integer | $seminaryId | |
| integer | $questgroupshierarchyId | Do not check this Questgroupshierarchy (for editing) |
title already exists or not
createQuestgroupshierarchy(integer $userId, integer $seminaryId, integer $parentQuestgroupsierarchyId, $titleSingular, $titlePlural)
Create a new Questgroupshierarchy for a Seminary
| integer | $userId | ID of creating user |
| integer | $seminaryId | ID of Seminary |
| integer | $parentQuestgroupsierarchyId | ID of parent Questgroupshierarchy |
| $titleSingular | ||
| $titlePlural |