diff --git a/application/controllers/system/extensions/CLI_Manager.php b/application/controllers/system/extensions/CLI_Manager.php new file mode 100644 index 000000000..ed8a5f7a5 --- /dev/null +++ b/application/controllers/system/extensions/CLI_Manager.php @@ -0,0 +1,36 @@ +load->helper('form'); + + // Loads the extensions library + $this->load->library('ExtensionsLib'); + } + + /** + * Installiert eine Extension. + * Es wird davon ausgegangen, dass die Extension ueber einen Fileupload hochgeladen wird. + * alternativ kann hier auch der Name und Filename uebergeben werden um die installation ueber + * die Commandline ohne Upload durchzufuehren. + * @param $extensioName string Name der Extension + * @param $filename Url Encoded Pfad zum tgz File der Extension + */ + public function uploadExtension($extensionName = null, $filename = null) + { + $this->extensionslib->installExtension($extensionName, urldecode($filename)); + } +} diff --git a/application/models/education/Lehreinheit_model.php b/application/models/education/Lehreinheit_model.php index 7dba40153..22778cb6a 100644 --- a/application/models/education/Lehreinheit_model.php +++ b/application/models/education/Lehreinheit_model.php @@ -103,14 +103,13 @@ class Lehreinheit_model extends DB_Model */ public function getStudenten($lehreinheit_id) { - $query = 'SELECT uid, vorname, nachname ' + $query = 'SELECT uid, vorname, nachname, prestudent_id ' . 'FROM campus.vw_student_lehrveranstaltung ' . 'JOIN campus.vw_student ' . 'USING (uid) ' . 'WHERE lehreinheit_id = ?' . ' ORDER BY nachname'; - return $this->execQuery($query, array($lehreinheit_id)); } }