Source for file class.VERBAENDE.php
Documentation is available at class.VERBAENDE.php
* Stellt die Verbindung zur Tabelle 'verbaende' her
* Verwaltet die Verbaende +
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_tables
die('This file was generated for PHP 5');
* Basisklasse aller Klassen mit Datenbankzugriff.
* stellt Methoden und Objekte zur Fehlermeldung und zum Datenbankzugriff zur
require_once('src/foundation/tables/class.PARENTTABLES.php');
* Interface für die Klassen zur Manipulation der Datenbanktabellen
* @author Kay Koch, <kay.koch@gmx.de>
require_once('src/interfaces/interface.TABLEINTERFACE.php');
/* user defined includes */
// section -64--88-122--2-651443c0:1046f70e203:-7fcf-includes begin
// section -64--88-122--2-651443c0:1046f70e203:-7fcf-includes end
/* user defined constants */
// section -64--88-122--2-651443c0:1046f70e203:-7fcf-constants begin
// section -64--88-122--2-651443c0:1046f70e203:-7fcf-constants end
* Stellt die Verbindung zur Tabelle 'verbaende' her
* Verwaltet die Verbaende +
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_tables
* Beinhaltet den Datenbanknamen (verbaende)
* array mit allen Verbänden
private static $data =
array();
* liefert einen (mehrere) Datensatz die durch setzen ser Parameter
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7fab begin
$returnValue =
self::$data;
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7fab end
return (array)
$returnValue;
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7fa9 begin
SET name = '" .
$data['name'] .
"',
verband_nr = '" .
$data['verband_nr'] .
"'
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7fa9 end
return (bool)
$returnValue;
* fügt einen neuen Datensatz ein
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7fa6 begin
SET verband_nr = '" .
$data['verband_nr'] .
"',
name = '" .
$data['name'] .
"'";
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7fa6 end
return (bool)
$returnValue;
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7f9e begin
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7f9e end
return (bool)
$returnValue;
* aktualisiert die Daten im gegenwertigen Objekt
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7f9c begin
$sql =
"SELECT * FROM $this->dbTableName ORDER by verband_nr ASC";
self::$data =
$this->select($sql, true, "verband_nr");
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7f9c end
return (bool)
$returnValue;
* löscht die Parameter, die den gegenwärtigen Datensatz identifizieren
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7f97 begin
// section -64--88-122--2--3d9a0b58:1040f000f1b:-7f97 end
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-651443c0:1046f70e203:-7fcb begin
if (empty(self::$data)) {
// section -64--88-122--2-651443c0:1046f70e203:-7fcb end
* setzt die Daten für die aktuelle Bearbeitung
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-651443c0:1046f70e203:-7fc9 begin
// section -64--88-122--2-651443c0:1046f70e203:-7fc9 end
* liefert eine Optionslist mit allen Verbänden
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (string)
'';
// section -64--88-122--2-651443c0:1046f70e203:-7fb7 begin
foreach (self::$data as $arrTmp) {
$selected =
($arrTmp['verband_nr'] ==
$index) ?
"SELECTED" :
"";
$returnValue .=
"<option $selected value='" .
$arrTmp['verband_nr'] .
"'>" .
$arrTmp['name'] .
"</option>\n";
// section -64--88-122--2-651443c0:1046f70e203:-7fb7 end
return (string)
$returnValue;
* liefert den Inhalt eines Feldes mit Namen Index aus den Vereinen
* @author Kay Koch, <kay.koch@gmx.de>
private function __get ($index)
$returnValue = (string)
'';
if (isset
(self::$data[$this->verband_nr][$index]))
$returnValue =
self::$data[$this->verband_nr][$index];
* liefert die Konstanten IDs
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-4192cb24:1047709aeea:-7ff7 begin
// section -64--88-122--2-4192cb24:1047709aeea:-7ff7 end
return (array)
$returnValue;
* Überprpüft ob ein Verband existiert
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2-4192cb24:1047709aeea:-7ff5 begin
$verband_nr =
substr($vereinNr, 0, 2);
foreach(self::$data as $key =>
$row) {
if ($verband_nr ==
$row['verband_nr']) {
// section -64--88-122--2-4192cb24:1047709aeea:-7ff5 end
return (bool)
$returnValue;
} /* end of class src_foundation_tables_VERBAENDE */
Documentation generated on Sat, 24 Mar 2007 10:00:12 +0100 by phpDocumentor 1.3.1