From 8309dfb3cae78bca886ee183ff8ff8ab65b9814e Mon Sep 17 00:00:00 2001 From: Cris Date: Tue, 22 Dec 2020 16:00:07 +0100 Subject: [PATCH] Created CONTROLLER Anrechnungen for students (CIS) Signed-off-by: cris-technikum --- .../lehre/anrechnung/RequestAnrechnung.php | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 application/controllers/lehre/anrechnung/RequestAnrechnung.php diff --git a/application/controllers/lehre/anrechnung/RequestAnrechnung.php b/application/controllers/lehre/anrechnung/RequestAnrechnung.php new file mode 100644 index 000000000..368a463df --- /dev/null +++ b/application/controllers/lehre/anrechnung/RequestAnrechnung.php @@ -0,0 +1,66 @@ + 'admin:rw', + 'uploadFile' => 'admin:rw', + ) + ); + + // Load models + $this->load->model('system/Benutzerrolle_model', 'BenutzerrolleModel'); + + // Load libraries + $this->load->library('WidgetLib'); + $this->load->library('PermissionLib'); + + // Load helpers + $this->load->helper('form'); + $this->load->helper('url'); + $this->load->helper('hlp_sancho_helper'); + + // Load language phrases + $this->loadPhrases( + array( + 'global', + 'ui', + 'anrechnung' + ) + ); + + $this->_setAuthUID(); + + $this->setControllerId(); + } + + public function index() + { + $this->load->view('lehre/anrechnung/requestAnrechnung.php'); + + } + + public function uploadFile($filename = null) + { +// $this->extensionslib->installExtension(urldecode($filename)); + } + + + /** + * Retrieve the UID of the logged user and checks if it is valid + */ + private function _setAuthUID() + { + $this->_uid = getAuthUID(); + + if (!$this->_uid) show_error('User authentification failed'); + } + + +} \ No newline at end of file