$db
$db : \nre\models\DatabaseDriver
Database connection
Model to interact with the Media-tables.
getSeminaryMediaByUrl(integer $seminaryId, string $seminaryMediaUrl) : array
Get a Seminary medium by its URL.
integer | $seminaryId | ID of the seminary |
string | $seminaryMediaUrl | URL-name of the Seminary medium |
Seminary medium data
createMoodpic(integer $userId, integer $seminaryId, string $filename, string $description, string $mimetype, string $tmpFilename) : mixed
Create a new moodpic.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
string | $tmpFilename | Name of temporary uploaded file |
ID of media record or false if upload failed
createAvatarpicture(integer $userId, integer $seminaryId, string $filename, string $description, string $mimetype, string $tmpFilename) : mixed
Create a new Avatar picture for a Charactertype by creating a new Seminarymedia and adding it to the list of Avatar pictures.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
string | $tmpFilename | Name of temporary uploaded file |
ID of media record or false if upload failed
createQuestgrouppicture(integer $userId, integer $seminaryId, integer $questgroupId, string $filename, string $description, string $mimetype, string $tmpFilename) : mixed
Create a new Questgroup picture (Moodpic).
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
integer | $questgroupId | ID of Questgroup to create picture for |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
string | $tmpFilename | Name of temporary uploaded file |
ID of media record or false if upload failed
createQuestMedia(integer $userId, integer $seminaryId, string $filename, string $description, string $mimetype, string $tmpFilename) : mixed
Create a new Quests media by creating a new Seminarymedia and adding it to the list of Quests media.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
string | $tmpFilename | Name of temporary uploaded file |
ID of media record or false if upload failed
createCharactergroupMedia(integer $userId, integer $seminaryId, string $filename, string $description, string $mimetype, string $tmpFilename) : mixed
Create a new Character groups media by creating a new Seminarymedia and adding it to the list of media for Character groups.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
string | $tmpFilename | Name of temporary uploaded file |
ID of media record or false if upload failed
createAchievementMedia(integer $userId, integer $seminaryId, string $filename, string $description, string $mimetype, string $tmpFilename) : mixed
Create a new Achievement media by creating a new Seminarymedia and adding it to the list of media for Achievements.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
string | $tmpFilename | Name of temporary uploaded file |
ID of media record or false if upload failed
createSeminaryMedia(integer $userId, integer $seminaryId, string $filename, string $description, string $mimetype) : mixed
Create a new Seminary media.
integer | $userId | ID of user that does the upload |
integer | $seminaryId | ID of Seminary |
string | $filename | Filename of uploading media |
string | $description | Description for media |
string | $mimetype | Mimetype of media |
ID of media record or false if upload failed