mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- 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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user