Source for file class.BREVETS.php
Documentation is available at class.BREVETS.php
* Stellt die Verbindung zur Tabelle 'brevet' her
* @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-1a4ded3:10259d7c267:-7ff1-includes begin
// section -64--88-122--2-1a4ded3:10259d7c267:-7ff1-includes end
/* user defined constants */
// section -64--88-122--2-1a4ded3:10259d7c267:-7ff1-constants begin
// section -64--88-122--2-1a4ded3:10259d7c267:-7ff1-constants end
* Stellt die Verbindung zur Tabelle 'brevet' her
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_tables
* Beinhaltet den Datenbanknamen (brevet)
* beinhaltet einen Datensatz der zuständigen Tabelle aus der Datenbank
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[$this->brevet_id];
$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'] .
"'
// 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 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 name ASC";
self::$data =
$this->select($sql, true, "brevet_id");
// 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
* liefert eine Optionslist mit allen Brevets
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (string)
'';
// section -64--88-122--2-1a4ded3:10259d7c267:-7fef begin
foreach (self::$data as $arrTmp) {
$selected =
($arrTmp['brevet_id'] ==
$index) ?
"SELECTED" :
"";
$returnValue .=
"<option $selected value='" .
$arrTmp['brevet_id'] .
"'>" .
$arrTmp['name'] .
"</option>\n";
// section -64--88-122--2-1a4ded3:10259d7c267:-7fef end
return (string)
$returnValue;
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-1328c7a:102a6f94cac:-7feb begin
self::$data =
$this->select($sql, true, "brevet_id");
// section -64--88-122--2-1328c7a:102a6f94cac:-7feb end
* liefert den Inhalt eines Feldes mit Namen Index aus den Brevets
* @author Kay Koch, <kay.koch@gmx.de>
private function __get ($index)
$returnValue = (string)
'';
if (!isset
(self::$data[$this->brevet_id][$index]))
$returnValue =
self::$data[$this->brevet_id][$index];
* setzt die Daten für die aktuelle Bearbeitung
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-651443c0:1046f70e203:-7fed begin
// section -64--88-122--2-651443c0:1046f70e203:-7fed end
} /* end of class src_foundation_tables_BREVETS */
Documentation generated on Sat, 24 Mar 2007 09:58:57 +0100 by phpDocumentor 1.3.1