- 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
+8 -6
View File
@@ -90,17 +90,19 @@ class person extends Person_model
public function load($personId)
{
//person_id auf gueltigkeit pruefen
if (is_numeric($personId) && $personId != '')
if(is_numeric($personId) && $personId != '')
{
$qry = str_replace('?', $this->db_add_param($personId, FHC_INTEGER), $this->_loadQuery);
if (!$this->db_query($qry))
$result = $this->getPerson($personId);
if(!is_object($result))
{
$this->errormsg = "Fehler beim Lesen der Personendaten\n";
return false;
return FALSE;
}
if ($row = $this->db_fetch_object())
$row = $result->row();
if(isset($row))
{
$this->person_id = $row->person_id;
$this->sprache = $row->sprache;