mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-23 06:59:28 +00:00
Merge branch 'master' into cleanci
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class CLI_Manager extends CLI_Controller
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Load helpers to upload files
|
||||
$this->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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user