- Moved class APIv1_Controller from FHC_Controller.php to APIv1_Controller.php

- Moved class DB_Model from FHC_Model.php to DB_Model.php
- load method of class person (person.class.php) now is calling getPerson
  method of the class Person_model
- getAllForBewerbung method of class studiengang (studiengang.class.php) now is calling getAllForBewerbung
  method of the class Studiengang_model
- getStudienplaene method of class studienplan (studienplan.class.php) now is calling getStudienplaene
  method of the class Studienplan_model
This commit is contained in:
paolo
2016-04-25 18:25:03 +02:00
parent a3a9c42e99
commit 4cc83999ed
10 changed files with 177 additions and 174 deletions
+10 -9
View File
@@ -26,9 +26,9 @@ require_once(dirname(__FILE__).'/datum.class.php');
// CI
require_once(dirname(__FILE__).'/../ci_hack.php');
require_once(dirname(__FILE__).'/../application/models/studies/Course_model.php');
require_once(dirname(__FILE__).'/../application/models/lehre/Studiengang_model.php');
class studiengang extends Course_model
class studiengang extends Studiengang_model
{
use db_extra; //CI Hack
@@ -247,18 +247,19 @@ class studiengang extends Course_model
*/
public function getAllForBewerbung()
{
if(!$result = $this->db_query($this->_allForBewerbungQuery))
error_log("getAllForBewerbung called!!!");
$result = parent::getAllForBewerbung();
if(!is_object($result))
{
$this->errormsg = 'Datensatz konnte nicht geladen werden';
return false;
return FALSE;
}
while($row = $this->db_fetch_object($result))
{
$this->result[] = $row;
}
$this->result = $result->result();
return true;
return TRUE;
}
/**