Source for file class.NACHTTERMINE.php
Documentation is available at class.NACHTTERMINE.php
* Ernöglicht den Zugang zur Datenbank Nachtauchen
* @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--264ee0f5:103e4c700eb:-7fdd-includes begin
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fdd-includes end
/* user defined constants */
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fdd-constants begin
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fdd-constants end
* Ernöglicht den Zugang zur Datenbank Nachtauchen
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_tables
* Beinhaltet den Datenbanknamen (nachttauchen)
* array mit allen Nachttauchterminen und dem geänderten Anmeldeschluss
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->see_id][$this->datum];
$returnValue =
self :: $data[$this->see_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
$sum =
$data['21:00'] +
$data['22:00'] +
$data['23:00'] +
$data['24:00'];
SET `see_id` = '" .
$data['see_id'] .
"',
`datum` = '" .
$data['datum'] .
"',
`uhrzeitEnde` = '" .
$data['uhrzeitEnde'] .
"',
`sumTag` = '" .
$sum .
"',
`21:00` = '" .
$data['21:00'] .
"',
`22:00` = '" .
$data['22:00'] .
"',
`23:00` = '" .
$data['23:00'] .
"',
`24:00` = '" .
$data['24:00'] .
"'
WHERE see_id = '$this->see_id' AND datum='$this->datum'";
// 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
$sum =
$data['21:00'] +
$data['22:00'] +
$data['23:00'] +
$data['24:00'];
SET `see_id` = '" .
$data['see_id'] .
"',
`datum` = '" .
$data['datum'] .
"',
`uhrzeitEnde` = '" .
$data['uhrzeitEnde'] .
"',
`sumTag` = '" .
$sum .
"',
`21:00` = '" .
$data['21:00'] .
"',
`22:00` = '" .
$data['22:00'] .
"',
`23:00` = '" .
$data['23:00'] .
"',
`24:00` = '" .
$data['24:00'] .
"'";
// 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
$whereit =
(empty ($this->datum)) ?
"" :
"AND datum='$this->datum'";
// 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
self :: $data =
$this->select($sql, true, "see_id", "datum");
// 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 die geänderten freien Plätze
* Wenn für das Datum kein Termin vorliegt, wird ein leeres array
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fd7 begin
if (isset
(self :: $data[$this->see_id][$this->datum]))
$returnValue =
self :: $data[$this->see_id][$this->datum];
unset
($returnValue['see_id']);
unset
($returnValue['datum']);
unset
($returnValue['uhrzeitEnde']);
foreach ($returnValue as $key =>
$places)
unset
($returnValue[$key]);
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fd7 end
return (array)
$returnValue;
* liefert das geänderte Ende des Tauchtages
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fcc begin
$returnValue =
self :: $data[$this->see_id][$this->datum]['uhrzeitEnde'];
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fcc end
* überprüft ob an dem aktuellen Tag ein Nachtauchgang durchgeführt werden
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fc1 begin
$returnValue = isset
(self :: $data[$this->see_id][$this->datum]);
else if(isset
(self :: $data[$this->see_id][$this->datum][$stunde]))
$returnValue =
self :: $data[$this->see_id][$this->datum][$stunde]>
0;
// section -64--88-122--2--264ee0f5:103e4c700eb:-7fc1 end
return (bool)
$returnValue;
* setzt die Daten für die aktuelle Bearbeitung
* @author Kay Koch, <kay.koch@gmx.de>
public function setParams($see_id, $datum =
null)
// section -64--88-122--2-339007d5:1043cd4e8c9:-7fa5 begin
// section -64--88-122--2-339007d5:1043cd4e8c9:-7fa5 end
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-7471698e:1046ab3b89c:-7fef begin
if (empty (self :: $data))
// section -64--88-122--2-7471698e:1046ab3b89c:-7fef end
} /* end of class src_foundation_tables_NACHTTERMINE */
Documentation generated on Sat, 24 Mar 2007 09:59:41 +0100 by phpDocumentor 1.3.1