diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:07:19 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:19:12 +0200 |
| commit | a3da1483a9e689846179159355badfec8073dbec (patch) | |
| tree | 770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /lib/models/MvvOverlappingExclude.php | |
current code from svn, revision 62608
Diffstat (limited to 'lib/models/MvvOverlappingExclude.php')
| -rw-r--r-- | lib/models/MvvOverlappingExclude.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/models/MvvOverlappingExclude.php b/lib/models/MvvOverlappingExclude.php new file mode 100644 index 0000000..12b5cb0 --- /dev/null +++ b/lib/models/MvvOverlappingExclude.php @@ -0,0 +1,42 @@ +<?php + +/** + * MvvOverlappingExclude.class.php - model class for table mvv_ovl_excludes + * + * 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 Peter Thienel <thienel@data-quest.de> + * @copyright 2018 Stud.IP Core-Group + * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 + * @category Stud.IP + * @since 4.4 + */ + +class MvvOverlappingExclude extends SimpleORMap +{ + + /** + * Configures the model. + * + * @param array $config Configuration + */ + protected static function configure($config = array()) { + + $config['db_table'] = 'mvv_ovl_excludes'; + $config['belongs_to']['selection'] = [ + 'class_name' => 'MvvOverlappingSelection', + 'foreign_key' => 'selection_id' + ]; + $config['belongs_to']['course'] = [ + 'class_name' => 'Course', + 'foreign_key' => 'course_id' + ]; + + parent::configure($config); + } + +} + |
