From ca40d233b0700c3de3171209774d2d9d02154f9d Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Tue, 8 Mar 2011 15:25:13 +0000 Subject: [PATCH] --- include/organisationsform.class.php | 78 +++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 include/organisationsform.class.php diff --git a/include/organisationsform.class.php b/include/organisationsform.class.php new file mode 100644 index 000000000..e0d9d2ee2 --- /dev/null +++ b/include/organisationsform.class.php @@ -0,0 +1,78 @@ +, + * Andreas Oesterreicher and + * Karl Burkhart . + */ + +/** + * Klasse Organisationsform + */ + +class organisationsform extends basis_db +{ + public $orgform_kurzbz; + public $code; + public $bezeichnung; + public $rolle; + + public $result = array(); + + /** + * + * Konstruktor + */ + public function __construct() + { + parent::__construct(); + } + + /** + * + * Liefert alle Organisationsformen zurück + */ + public function getAll() + { + $qry = "Select * from bis.tbl_orgform"; + + if($this->db_query($qry)) + { + while($row = $this->db_fetch_object()) + { + $orgform = new organisationsform(); + + $orgform->orgform_kurzbz = $row->orgform_kurzbz; + $orgform->code = $row->code; + $orgform->bezeichnung = $row->bezeichnung; + $orgform->rolle = $row->rolle; + + $result[] = $orgform; + } + } + else + { + $this->errormsg ="Fehler bei der Abfrage aufgetreten"; + return false; + } + } + + public function checkCode($orgform_kurzbz) + { + + } +}