- Modified FHC_Model contructor to get UID from vilesci authentication

- Copied functionalities from old libraries to controllers
- Ported old libraries to CI
- Modified codeception
This commit is contained in:
paolo
2016-06-03 16:19:06 +02:00
parent efe7355a4d
commit dabcf8188b
16 changed files with 697 additions and 202 deletions
+14 -11
View File
@@ -139,19 +139,22 @@ class organisationsform extends Orgform_model
*/
public function getOrgformLV()
{
$qry = "SELECT * FROM bis.tbl_orgform WHERE orgform_kurzbz NOT IN ('VBB', 'ZGS') ORDER BY orgform_kurzbz";
if($result = $this->db_query($qry))
$result = parent::getOrgformLV();
if (is_object($result) && $result->error == EXIT_SUCCESS && is_array($result->retval))
{
while($row = $this->db_fetch_object($result))
for ($i = 0; $i < count($result->retval); $i++)
{
$orgform = new organisationsform();
$row = $result->retval[$i];
$orgform->orgform_kurzbz = $row->orgform_kurzbz;
$orgform->code = $row->code;
$orgform->bezeichnung = $row->bezeichnung;
$orgform->rolle = $row->rolle;
$orgform = new organisationsform();
$this->result[] = $orgform;
$orgform->orgform_kurzbz = $row->orgform_kurzbz;
$orgform->code = $row->code;
$orgform->bezeichnung = $row->bezeichnung;
$orgform->rolle = $row->rolle;
$this->result[] = $orgform;
}
return true;
}
@@ -159,6 +162,6 @@ class organisationsform extends Orgform_model
{
$this->errormsg = 'Fehler beim Laden der Daten';
return false;
}
}
}
}
}