diff options
| author | Michaela Brückner <brueckner@data-quest.de> | 2022-12-08 09:22:36 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-12-08 09:22:36 +0000 |
| commit | e4fc6d026969a5a161711495b612d1ee4b9b5e5f (patch) | |
| tree | 95146830678f6b95aed8463b72bce161fadd810d /lib/models/OERPostUpload.php | |
| parent | 5e590653ebe63d46170f2ed9167f2591cd83e991 (diff) | |
resolves #853
Closes #853
Merge request studip/studip!1191
Diffstat (limited to 'lib/models/OERPostUpload.php')
| -rw-r--r-- | lib/models/OERPostUpload.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/models/OERPostUpload.php b/lib/models/OERPostUpload.php new file mode 100644 index 0000000..8bf7386 --- /dev/null +++ b/lib/models/OERPostUpload.php @@ -0,0 +1,35 @@ +<?php + +/** + * Model class to handle reminder for possible OER upload files + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * @author Michaela Brückner <brueckner@data-quest.de> + * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 + * @category Stud.IP + * @since 5.3 + * @property string file_ref_id database column + * @property string user_id database column + * @property int reminder_date database column + * @property string mkdate database column + * @property string chdate database column + */ +class OERPostUpload extends SimpleORMap +{ + protected static function configure($config = []) + { + $config['db_table'] = 'oer_post_upload'; + $config['belongs_to']['file'] = [ + 'class_name' => File::class, + 'foreign_key' => 'id', + 'on_delete' => 'delete' + ]; + + parent::configure($config); + } + +} |
