Source for file class.ADMINSEE.php
Documentation is available at class.ADMINSEE.php
* Verwaltet die Adminitration der Datenbanktabelle 'seen'
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_admin
die('This file was generated for PHP 5');
* Parentklasse zur Administration der Tabellen
* @author Kay Koch, <kay.koch@gmx.de>
require_once ('src/foundation/admin/class.PARENTADMIN.php');
* Interface zur Administration der Datenbank
require_once ('src/interfaces/interface.ADMININTERFACE.php');
/* user defined includes */
// section -64--88-122--2-66879486:104007981a3:-7f99-includes begin
// section -64--88-122--2-66879486:104007981a3:-7f99-includes end
/* user defined constants */
// section -64--88-122--2-66879486:104007981a3:-7f99-constants begin
// section -64--88-122--2-66879486:104007981a3:-7f99-constants end
* Verwaltet die Adminitration der Datenbanktabelle 'seen'
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_admin
* Objekt der aktellen Datenbankklasse
* Array mit den Feldnamen der aktuellen Datebank
* Name des Haupttemplates
* zeigt alle Einträge einer Tabelle
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--6176e79b:103fa06a375:-7fad begin
$this->oSeen->unsetParams();
$arrTmp =
$this->oSeen->getRow();
foreach ($arrTmp as $this->tmp) {
$this->aktivitaet =
$this->getBoolName($this->tmp->isActive);
$this->ansprechpartner =
$this->tmp->oAnsprechpartner->name .
", " .
$this->tmp->oAnsprechpartner->vorname;
$this->vorOrtKontakt =
$this->tmp->oVorOrtKontakt->name .
", " .
$this->tmp->oVorOrtKontakt->vorname;
$this->data =
$this->tmp->all;
// section -64--88-122--2--6176e79b:103fa06a375:-7fad end
* liefert ein Formular zur Änderung bzw. Neueingabe eines Datensatzes
* Wenn die Tabellenspezifischen Parameter vorhergesetzt wurden wird der
* Datensatz ausgegeben. Ansonsten erscheint ein leeres Formular
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--6176e79b:103fa06a375:-7fa9 begin
if ((!empty ($this->oSeen->see_id))) {
$this->data =
$this->oSeen->getRow();
$vok_id =
$this->data->oVorOrtKontakt->kontakt_id;
$ap_id =
$this->data->oAnsprechpartner->kontakt_id;
$bpt =
$this->data->buchbarProTag;
$akt =
$this->data->isActive;
$this->data =
$this->data->all;
$this->vorOrtKontaktOL =
$oKontakt->getOptionList($vok_id);
$this->ansprechpartnerOL =
$oKontakt->getOptionList($ap_id);
// section -64--88-122--2--6176e79b:103fa06a375:-7fa9 end
* Aktualisiert den vorher durch setzen der Parameter ausgewählten
* Die Neuen Daten befinden sich im Übergabefeld $data
* @author Kay Koch, <kay.koch@gmx.de>
public function update($data) {
// section -64--88-122--2--6176e79b:103fa06a375:-7f83 begin
$this->oSeen->updateRow($data);
// section -64--88-122--2--6176e79b:103fa06a375:-7f83 end
* Löscht den Datensatz der vorher durch Parameter ausgewählt wurde
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--6176e79b:103fa06a375:-7f7f begin
$oMaxfrei->setParams($this->oSeen->see_id);
$oPermit->setParams($this->oSeen->see_id);
$oBlocks->setParams($this->oSeen->see_id);
$oNT->setParams($this->oSeen->see_id);
$oNF->deleteEntriesFromSea($this->oSeen->see_id);
$this->oSeen->deleteRow();
// section -64--88-122--2--6176e79b:103fa06a375:-7f7f end
* Fügt einen neuen Datensatz mit den Werten des Übergabeparameter $data
* @author Kay Koch, <kay.koch@gmx.de>
public function insert($data) {
// section -64--88-122--2--6176e79b:103fa06a375:-7f7d begin
if ($this->oSeen->insertRow($data)) {
$oMaxfrei->setParams($this->oSeen->see_id);
$oMaxfrei->insertRow($data);
$oPermit->setParams($this->oSeen->see_id);
$oPermit->insertRow($data);
// section -64--88-122--2--6176e79b:103fa06a375:-7f7d end
* überprüft die Korrektheit der eingebenen bzw. geänderten Daten
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (bool)
false;
// section -64--88-122--2--62c31de:1048594e50f:-7fef begin
throw
new Exception("20,Name");
throw
new Exception("19,Aktiv");
throw
new Exception("19,Kontakt am See");
throw
new Exception("19,Kontakt beim LVST");
throw
new Exception("19,Ganztägig");
throw
new Exception("50,Max");
throw
new Exception("50,Wochen");
throw
new Exception("51,Saison Start");
throw
new Exception("51,Saison Ende");
throw
new Exception("52,Tauchbeginn [Mo-Fr]");
throw
new Exception("52,Tauchende [Mo-Fr]");
throw
new Exception("52,Tauchbeginn [Sa-So]");
throw
new Exception("52,Tauchende [Sa-So]");
throw
new Exception("53,Infoseite");
$message =
explode(",", $e->getMessage());
// section -64--88-122--2--62c31de:1048594e50f:-7fef end
return (bool)
$returnValue;
* erstellt ein Obejkt der zu beabeitenden Klassen
* list alle erlaubten Datenbankschlüssel ein
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2-66879486:104007981a3:-7f84 begin
$this->oSeen->setParams($see_id);
// section -64--88-122--2-66879486:104007981a3:-7f84 end
} /* end of class src_foundation_admin_ADMINSEE */
Documentation generated on Sat, 24 Mar 2007 09:58:47 +0100 by phpDocumentor 1.3.1