Source for file class.BESTAETIGUNG.php
Documentation is available at class.BESTAETIGUNG.php
* Erstellt einen Link zur Bestätigung bzw. zum Löschen der Anmeldung
* @subpackage foundation_user
die('This file was generated for PHP 5');
* Basisklasse der ausführenden Klassen
* Stellt Methoden und Eigenschaften zur Ein- und Ausgabe über das Webinterface
require_once ('src/foundation/user/class.PARENTUSER.php');
/* user defined includes */
// section -64--88-122--2-1328c7a:100b87cbb1c:-7fd1-includes begin
// section -64--88-122--2-1328c7a:100b87cbb1c:-7fd1-includes end
/* user defined constants */
// section -64--88-122--2-1328c7a:100b87cbb1c:-7fd1-constants begin
// section -64--88-122--2-1328c7a:100b87cbb1c:-7fd1-constants end
* Erstellt einen Link zur Bestätigung bzw. zum Löschen der Anmeldung
* @subpackage foundation_user
* Array mit den Feldnamen der aktuellen Datebank
* Array mit Übergabewerten
* Objekt der Tabellenkalsse BUCHUNGEN
private $oBuchung =
null;
* Erstellt eine HTML-Seite zur Bestätigung bzw. zum Löschen der Anmeldung
* @author Kay Koch, <kay.koch@gmx.de>
private function makePage($control)
// section -64--88-122--2-1328c7a:100b87cbb1c:-7fa6 begin
$tpl =
$this->confirmBuchung($control);
// Formatieren der Ausgabe
// section -64--88-122--2-1328c7a:100b87cbb1c:-7fa6 end
* überprüft die übergebenen Werte auf Vollständigkeit
* und initialisiert den Seitenaufbau
* @author Kay Koch, <kay.koch@gmx.de>
public function __construct($buch_id, $pwd =
'', $control =
'')
// section -64--88-122--2-1328c7a:101ce91d1f9:-7fef begin
$this->arrKeys =
$this->oBuchung->getArrKeys();
$this->setInputVariables($buch_id, $pwd);
$this->makePage($control);
// section -64--88-122--2-1328c7a:101ce91d1f9:-7fef end
* Führt eine Änderung des Status der Buchung durch
* (bestätigt/nicht bestätigt/gelöscht) und liefert den Namen des Templates
* dass auf diese Änderung folgt
* @author Kay Koch, <kay.koch@gmx.de>
private function confirmBuchung($control)
$returnValue = (string)
'';
// section -64--88-122--2-1328c7a:10292f82497:-7fee begin
case "c" :
// Buchung bestätigen (confirm)
if (!$this->oBuchung->setAsTaken($this->data['buch_id'], $this->data['pwd']))
$this->pdflink =
$this->oBuchung->getPDFLink($this->data['buch_id'] .
$this->data['pwd']);
$returnValue =
"bestaetigung_ok";
case "d" :
// Buchung löschen (delete)
if (!$this->oBuchung->deleteBuchung($this->data['buch_id'], $this->data['pwd']))
$returnValue =
"bestaetigung_geloescht";
default :
// Startbildschirm /Bestätigung
$returnValue =
"bestaetigung";
// section -64--88-122--2-1328c7a:10292f82497:-7fee end
return (string)
$returnValue;
* wandelt die Daten in das notwendige Format zur Ausgabe um
* @author Kay Koch, <kay.koch@gmx.de>
private function setInputVariables($buch_id, $pwd)
// section -64--88-122--2-5a4368f4:103efc100ac:-7faa begin
$this->data =
$this->oBuchung->getBuchung($buch_id, $pwd);
$oVerein->setParams($this->data['verein_nr']);
$this->data['verein'] =
$oVerein->name;
if ($this->data['istAbgeholt'] ==
1)
{ // ist bereits bestätigt
$this->data['status'] =
"bestätigt";
$this->data['conform'] =
"";
$this->data['pdflink'] =
$this->oBuchung->getPDFLink($this->data['buch_id'] .
$this->data['pwd']); // Link des pdf-Dokumentes
{ // noch nicht bestätigt
$this->data['buch_id'] =
$buch_id;
$this->data['pwd'] =
$pwd;
$this->data['status'] =
"nicht bestätigt";
$this->data['conform'] =
"<input type=\"submit\" name=\"submit\" onClick=\"return setConfirm(this.form,'c')\" value=\"Bestätigen\">";
$this->data['pdflink'] =
"";
// section -64--88-122--2-5a4368f4:103efc100ac:-7faa end
} /* end of class src_foundation_user_BESTAETIGUNG */
Documentation generated on Sat, 24 Mar 2007 09:58:54 +0100 by phpDocumentor 1.3.1