$db
$db : \nre\models\DatabaseDriver
Database connection
Model of the CharactergroupsAgent to interact with Charactergroups-table.
getGroupsgroupByUrl(integer $seminaryId, string $groupsgroupUrl) : array
Get a Character groups-group by its URL.
integer | $seminaryId | ID of the corresponding Seminary |
string | $groupsgroupUrl | URL-name of the Character groups-group |
Character groups-group data
characterGroupsgroupNameExists(string $name, integer $groupsgroupId = null) : boolean
Check if a Character groups-group name already exists.
string | $name | Name to check |
integer | $groupsgroupId | Do not check this ID (for editing) |
Whether name exists or not
createGroupsgroup(integer $userId, integer $seminaryId, string $name, boolean $preferred) : integer
Create a new Character groups-group.
integer | $userId | ID of user |
integer | $seminaryId | ID of Seminary |
string | $name | Name of new groups-group |
boolean | $preferred | Whether groups-group is preferred or not |
ID of newly created groups-group
getGroupsForGroupsgroup(integer $groupsgroupId, string $sortorder = 'name') : array
Get Character groups for a Character groups-group.
integer | $groupsgroupId | ID of the Character groups-group |
string | $sortorder | Field to sort by (optional) |
Character groups
getGroupByUrl(integer $groupsgroupId, string $groupUrl) : array
Get a Character group by its URL.
integer | $groupsgroupId | ID of the Character groups-group |
string | $groupUrl | URL-name of the Character group |
Character group data
createGroup(integer $userId, integer $groupsgroupId, string $name, string $motto) : integer
Create a new Character group.
integer | $userId | ID of user |
integer | $groupsgroupId | ID of Character groups-group |
string | $name | Name of new group |
string | $motto | Motto of new group |
ID of newly created group