Source for file class.PARENTADMIN.php
Documentation is available at class.PARENTADMIN.php
* Parentklasse zur Administration der Tabellen
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_admin
die('This file was generated for PHP 5');
* Interface für alle Klassen, die direkt aus dem Natz angesprochen werden
* @author Kay Koch, <kay.koch@gmx.de>
require_once ('src/interfaces/interface.HTMLINTERFACE.php');
/* user defined includes */
// section -64--88-122--2--759b93b2:10397a7591b:-7fdf-includes begin
// section -64--88-122--2--759b93b2:10397a7591b:-7fdf-includes end
/* user defined constants */
// section -64--88-122--2--759b93b2:10397a7591b:-7fdf-constants begin
// section -64--88-122--2--759b93b2:10397a7591b:-7fdf-constants end
* Parentklasse zur Administration der Tabellen
* @author Kay Koch, <kay.koch@gmx.de>
* @subpackage foundation_admin
* Flag zur Bearbeitungsgenehmigung
* Name des Arrays in dem die Token gespeichert werden
private $arrToken =
array ();
* Name der aktuellen Tabelle, die bearbeitet wird
* Obeject der Klasse Seen
* Objekt der Klasse Kontakte
* @author Kay Koch, <kay.koch@gmx.de>
public function printPage($content, $noHeader =
false) {
// section -64--88-122--2-3f9fc877:104611dccfe:-7fce begin
$this->header =
($noHeader) ?
"" :
$this->makeHeader();
// umspeichern des Inhaltes um sie im aktuellen Objekt verfügbar zu machen
$this->content1 =
$content;
// Header und Content in der Hauptvorlage verbinden
// section -64--88-122--2-3f9fc877:104611dccfe:-7fce end
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (string)
'';
// section -64--88-122--2-3f9fc877:104611dccfe:-7fcc begin
// Headerinformationen in Vorlge schreiben lassen
// section -64--88-122--2-3f9fc877:104611dccfe:-7fcc end
return (string)
$returnValue;
* Short description of method makeFooter
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (string)
'';
// section -64--88-0-1--1e6707e3:1048f065750:-7fdb begin
// section -64--88-0-1--1e6707e3:1048f065750:-7fdb end
return (string)
$returnValue;
* überprüft anhand des Übergabeparameters $_token die Anmeldung
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--759b93b2:10397a7591b:-7fdd begin
$this->hiddenToken =
$this->arrToken['POST'];
$this->token =
$this->arrToken['GET'];
// section -64--88-122--2--759b93b2:10397a7591b:-7fdd end
* erstellt die HTML_Seite zur Bearbeitung der Kontakte
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--759b93b2:10397a7591b:-7fd5 begin
// Formatieren der Ausgabe
// section -64--88-122--2--759b93b2:10397a7591b:-7fd5 end
* überprüft Benutzernemen und Passwort
* @author Kay Koch, <kay.koch@gmx.de>
private function checkPWD($login, $pwd) {
$returnValue = (bool)
false;
// section -64--88-122--2--759b93b2:10397a7591b:-7fcd begin
if ($this->oKontakte->isAdmin($login, $pwd)) {
// section -64--88-122--2--759b93b2:10397a7591b:-7fcd end
return (bool)
$returnValue;
* erstellt die EIingabemaske zur Anmeldung
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--759b93b2:10397a7591b:-7fc9 begin
$this->hiddenToken =
$this->arrToken['POST'];
// section -64--88-122--2--759b93b2:10397a7591b:-7fc9 end
* erstellt die Startseite
* @author Kay Koch, <kay.koch@gmx.de>
private function showAdminPage() {
// section -64--88-122--2--759b93b2:10397a7591b:-7fc5 begin
// section -64--88-122--2--759b93b2:10397a7591b:-7fc5 end
* beendet die Session und veranlasst die Anmeldung
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--759b93b2:10397a7591b:-7fb4 begin
// section -64--88-122--2--759b93b2:10397a7591b:-7fb4 end
* @author Kay Koch, <kay.koch@gmx.de>
// section -64--88-122--2--55b78af2:103c6aa601f:-7fb0 begin
if (empty ($data['login']))
if (empty ($data['newpwd1']) OR empty ($data['newpwd2']))
throw
new Exception(106);
if (!($data['newpwd1'] ==
$data['newpwd2']))
throw
new Exception(107);
if ($data['newpwd1'] ==
$data['pwd'])
throw
new Exception(108);
$kontakt =
new src_foundation_tables_KONTAKT();
if (!$kontakt->setPWD($data['login'], $data['pwd'], $data['newpwd1']))
throw
new Exception(109);
if ($e->getMessage() !=
"") {
// section -64--88-122--2--55b78af2:103c6aa601f:-7fb0 end
* überprüft die Übergabeparameter zum Einloggen und führt dieses durch
* @author Kay Koch, <kay.koch@gmx.de>
public function login($login, $pwd) {
// section -64--88-122--2-501b4c2c:104388b59c9:-7fd3 begin
throw
new Exception("pwd-falsch");
throw
new Exception("name");
if (!$this->checkPWD($login, $pwd))
throw
new Exception("pwd");
// section -64--88-122--2-501b4c2c:104388b59c9:-7fd3 end
* liefert ein Optionlist aus Ja und Nein
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (string)
'';
// section -64--88-122--2-339007d5:1043cd4e8c9:-7f92 begin
$returnValue =
"<option selected value=1>Ja</option>\n <option value=0>Nein</option>";
$returnValue =
"<option value=1>Ja</option>\n <option selected value=0>Nein</option>";
// section -64--88-122--2-339007d5:1043cd4e8c9:-7f92 end
return (string)
$returnValue;
/** liefert das Objekt oSeen
* @author Kay Koch, <kay.koch@gmx.de>
* @return src_foundation_tables_SEEN
$returnValue =
(empty($id))?
$this->oSeen:
$this->oSeen->$id;
* liefert Ja bzw Nein für einen boolschen Wert
* @author Kay Koch, <kay.koch@gmx.de>
$returnValue = (string)
'';
// section -64--88-122--2-7471698e:1046ab3b89c:-7fe0 begin
$returnValue =
($index ==
"1") ?
"Ja" :
"Nein";
// section -64--88-122--2-7471698e:1046ab3b89c:-7fe0 end
return (string)
$returnValue;
$o->action =
$oTable->getTableName();
$o->arrKeys =
$oTable->getArrKeys();
foreach ($o->arrKeys as $key)
$o->pageTemplate =
$oTable->getTableName();
if (!empty ($todo) AND $todo ==
"totalrestart"){
// Alle freien Plätze werden neu angelegt
$oNochfrei->insertNewEntries();
// Blockaden und Nachttermine werden neu eingelesen
$oNochfrei->insertSpecials();
if ($e->getMessage() !=
"") {
} /* end of class src_foundation_admin_PARENTADMIN */
Documentation generated on Sat, 24 Mar 2007 09:59:45 +0100 by phpDocumentor 1.3.1