Source for file class.PARENTUSER.php

Documentation is available at class.PARENTUSER.php

  1. <?php
  2.  
  3. /**
  4.  * Basisklasse der ausführenden Klassen
  5.  * Stellt Methoden und Eigenschaften zur Ein- und Ausgabe über das Webinterface
  6.  * Verfügung
  7.  *
  8.  * @author Kay Koch
  9.  * @package src
  10.  * @since 15.12.04
  11.  * @subpackage foundation_user
  12.  * @version 1
  13.  */
  14.  
  15. if (version_compare(PHP_VERSION'5'))
  16. {
  17.     die('This file was generated for PHP 5');
  18. }
  19.  
  20. /**
  21.  * Interface für alle Klassen, die direkt aus dem Natz angesprochen werden
  22.  *
  23.  * @author Kay Koch, <kay.koch@gmx.de>
  24.  */
  25. require_once ('src/interfaces/interface.HTMLINTERFACE.php');
  26.  
  27. /* user defined includes */
  28. // section -64--88-122--2-1328c7a:100b87cbb1c:-7fe7-includes begin
  29. // section -64--88-122--2-1328c7a:100b87cbb1c:-7fe7-includes end
  30.  
  31. /* user defined constants */
  32. // section -64--88-122--2-1328c7a:100b87cbb1c:-7fe7-constants begin
  33. // section -64--88-122--2-1328c7a:100b87cbb1c:-7fe7-constants end
  34.  
  35. /**
  36.  * Basisklasse der ausführenden Klassen
  37.  * Stellt Methoden und Eigenschaften zur Ein- und Ausgabe über das Webinterface
  38.  * Verfügung
  39.  *
  40.  * @access public
  41.  * @author Kay Koch
  42.  * @package src
  43.  * @since 15.12.04
  44.  * @subpackage foundation_user
  45.  * @version 1
  46.  */
  47. class src_foundation_user_PARENTUSER implements src_interfaces_HTMLINTERFACE
  48. {
  49.     // --- ATTRIBUTES ---
  50.         /**
  51.      * @var src_foundation_tables_SEEN Alle Seen
  52.      * @access protected
  53.      */
  54.     protected $oSeen = null;
  55.  
  56.     /**
  57.      * @var src_foundation_tables_NOCHFREI Objekt der Tabellenklasse NOCHFREI
  58.      * @access protected
  59.      */
  60.     protected $oNF = null;
  61.  
  62.     /**
  63.      * @var src_foundation_tables_KONTAKTE Kontakte Objekt der Tabellenklasse NOCHFREI
  64.      * @access protected
  65.      */
  66.     protected $oKontakte = null;
  67.  
  68.     // --- OPERATIONS ---
  69.  
  70.     
  71.     /**
  72.      * gibt die Seite aus
  73.      *
  74.      * @access public
  75.      * @author Kay Koch, <kay.koch@gmx.de>
  76.      * @param string 
  77.      * @param boolean 
  78.      * @return void 
  79.      */
  80.     public function printPage($content$noHeader false)
  81.     {
  82.         // section -64--88-122--2-3f9fc877:104611dccfe:-7fce begin
  83.         $this->header ($noHeader"" $this->makeHeader();
  84.         // umspeichern des Inhaltes um sie im aktuellen Objekt verfügbar zu machen
  85.         $this->content1 $content;
  86.         // Footer einlesen
  87.         $this->footer $this->makeFooter();
  88.         // Header und Content in der Hauptvorlage verbinden
  89.         $page src_tools_TEMPLATE :: getTemplate('main'$this);
  90.         // Cache aktualisieren
  91.         src_tools_CACHE ::saveFile($page);
  92.         // Ausgabe der Seite
  93.         echo $page;
  94.         // section -64--88-122--2-3f9fc877:104611dccfe:-7fce end
  95.     }
  96.  
  97.     /**
  98.      * erstellt enn Header
  99.      *
  100.      * @access public
  101.      * @author Kay Koch, <kay.koch@gmx.de>
  102.      * @return string 
  103.      */
  104.     public function makeHeader()
  105.     {
  106.         $returnValue = (string) '';
  107.  
  108.         // section -64--88-122--2-3f9fc877:104611dccfe:-7fcc begin
  109.         // Stammverzeichnis der Infoseiten
  110.         $infoDir "infos/";
  111.         if (src_foundation_tables_PARENTTABLES::getSea(!= null)
  112.         // Headerinformationen aus aktuellem See laden
  113.             $this->name src_foundation_tables_PARENTTABLES::getSea()->name;
  114.             $this->filename src_tools_MULTI :: cleanUmlaute(src_foundation_tables_PARENTTABLES:: getSea()->name);
  115.         else
  116.         // Headerinformationen bei Start (Kein See ausgewählt)
  117.             $this->name "Anmelden";
  118.             $this->filename "anmeldung";
  119.         }
  120.         // Auswahlliste mit Seen erstellen für die schon Einträge vorliegen
  121.         $this->optListSeas $this->oSeen->getOptionList();
  122.         // Headerinformationen in Vorlage schreiben lassen
  123.         $returnValue src_tools_TEMPLATE :: getTemplate('header'$this);
  124.         // section -64--88-122--2-3f9fc877:104611dccfe:-7fcc end
  125.  
  126.         return (string) $returnValue;
  127.     }
  128.  
  129.     /**
  130.      * Short description of method makeFooter
  131.      *
  132.      * @access public
  133.      * @author Kay Koch, <kay.koch@gmx.de>
  134.      * @return string 
  135.      */
  136.     public function makeFooter()
  137.     {
  138.         $returnValue = (string) '';
  139.  
  140.         // section -64--88-0-1--1e6707e3:1048f065750:-7fdb begin
  141.         // Headerinformationen aus aktuellem See laden
  142.         if (src_foundation_tables_PARENTTABLES:: getSea(!= null)
  143.         {
  144.             $this->name src_foundation_tables_PARENTTABLES:: getSea()->oAnsprechpartner->vorname " " src_foundation_tables_PARENTTABLES:: getSea()->oAnsprechpartner->name;
  145.             $this->email src_foundation_tables_PARENTTABLES:: getSea()->oAnsprechpartner->email;
  146.             $this->telefon src_foundation_tables_PARENTTABLES:: getSea()->oAnsprechpartner->telefon;
  147.             $returnValue src_tools_TEMPLATE :: getTemplate('adresse'$this);
  148.         }
  149.         // section -64--88-0-1--1e6707e3:1048f065750:-7fdb end
  150.  
  151.         return (string) $returnValue;
  152.     }
  153.  
  154.     /**
  155.      * Konstructor - erstellt den aktuellen See und ermöglicht den Zugriff für
  156.      * Klassen des package 'bin'
  157.      *
  158.      * @access public
  159.      * @author Kay Koch, <kay.koch@gmx.de>
  160.      * @return void 
  161.      */
  162.     public function __construct()
  163.     {
  164.         // section -64--88-122--2-1328c7a:100b87cbb1c:-7fe6 begin
  165.         $this->oKontakte = new src_foundation_tables_KONTAKTE();
  166.         $this->oSeen = new src_foundation_tables_SEEN();
  167.         $this->oNF = new src_foundation_tables_NOCHFREI();
  168.         $this->disabled "";
  169.         // section -64--88-122--2-1328c7a:100b87cbb1c:-7fe6 end
  170.     }
  171.  
  172.  
  173. /* end of class src_foundation_user_PARENTUSER */
  174. ?>

Documentation generated on Sat, 24 Mar 2007 09:59:47 +0100 by phpDocumentor 1.3.1