diff --git a/include/lehrstunde.class.php b/include/lehrstunde.class.php index 00147e537..b4b102fe4 100644 --- a/include/lehrstunde.class.php +++ b/include/lehrstunde.class.php @@ -1,5 +1,5 @@ , - * Andreas Oesterreicher and - * Rudolf Hangl . */ + /** - * @class Lehrstunde - * @author Christian Paminger - * @date 2004/8/21 - * @version $Revision: 1.2 $ - * Update: 21.10.2004 von Christian Paminger - * @brief Beschreibung einer Unterrichts-Stunde der Tabelle tbl_stundenplan + * @class lehrstunde + * @brief Beschreibung einer Unterrichts-Stunde der Tabelle tbl_stundenplan + * @author Christian Paminger, Andreas Österreicher + * @date 2004/8/21 + * @version $Revision: 1.2 $ + * Update: 21.10.2009 von Christian Paminger + * @bug Ein Fehler + * @todo Noch zu tun + * @warning Eine Warnung */ + require_once(dirname(__FILE__).'/basis_db.class.php'); require_once(dirname(__FILE__).'/studiensemester.class.php'); require_once(dirname(__FILE__).'/variable.class.php'); class lehrstunde extends basis_db { - public $stundenplan_id; // @brief id in der Datenbank - public $lehreinheit_id; // @brief id der Lehreinheit in der DB + public $stundenplan_id; /// @brief ID in der Datenbank + public $lehreinheit_id; /// @brief id der Lehreinheit in der DB public $unr; // @brief Unterrichtsnummer public $lektor_uid; // @brief UID des Lektors public $lektor_kurzbz; // @brief Kurzbezeichnung des Lektors @@ -65,7 +66,7 @@ class lehrstunde extends basis_db public $lastqry=null; - /** + /* * Konstruktor * */ @@ -76,10 +77,11 @@ class lehrstunde extends basis_db $this->new=TRUE; } - /** - * Einen Datensatz laden - * @param stundenplan_id - * @param stpl_table + /** + * @brief Einen Datensatz aus optional angegebener Stundenplan-Tabelle laden + * \param stundenplan_id ID in der Datenbank + * \param stpl_table Name der Tabelle in der DB + * \return Boolean, Fehlermeldung kommt in das Attribut errormsg */ public function load($stundenplan_id,$stpl_table='stundenplandev') { @@ -239,14 +241,14 @@ class lehrstunde extends basis_db $stpl_view='lehre.'.VIEW_BEGIN.$stpl_view; // Datum im Format YYYY-MM-TT ? - if (!mb_ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})",$datum_von) ) + if (!preg_match("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/",$datum_von) ) { $this->errormsg='Fehler: Startdatum hat falsches Format!'; return -1; } if ($datum_bis!=null) { - if (!mb_ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})",$datum_bis) ) + if (!preg_match("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/",$datum_bis) ) { $this->errormsg='Fehler: Enddatum hat falsches Format!'; return -1; diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php index ba7dbf286..f7307d4d6 100644 --- a/include/wochenplan.class.php +++ b/include/wochenplan.class.php @@ -104,6 +104,8 @@ class wochenplan extends basis_db $this->link='stpl_week.php?type='.$type; $this->kal_link='stpl_kalender.php?type='.$type; + // Timezone setzten + date_default_timezone_set('Europe/Vienna'); $this->datum=mktime(); $this->init_stdplan(); $this->crlf=crlf(); diff --git a/include/zeugnisnote.class.php b/include/zeugnisnote.class.php index 7bbbadb5d..916ca5934 100644 --- a/include/zeugnisnote.class.php +++ b/include/zeugnisnote.class.php @@ -31,7 +31,7 @@ class zeugnisnote extends basis_db public $result=array(); //Tabellenspalten - public $lehrveranstaltung_id; // integer + public $lehrveranstaltung_id; /// \brief ID der Lehrveranstaltung in der DB public $student_uid; // varchar(16) public $studiensemester_kurzbz; // varchar(16) public $note; // smalint