• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Services/Calendar/classes/class.ilCalendarUtil.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2007 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00024 
00033 class ilCalendarUtil
00034 {
00035         static $init_done;
00036         
00040         static function initJSCalendar()
00041         {
00042                 global $tpl, $lng;
00043                 
00044                 if (self::$init_done == "done")
00045                 {
00046                         return;
00047                 }
00048                 
00049                 $lng->loadLanguageModule("jscalendar");
00050                 $tpl->addBlockFile("CALENDAR_LANG_JAVASCRIPT", "calendar_javascript", "tpl.calendar.html");
00051                 $tpl->setCurrentBlock("calendar_javascript");
00052                 $tpl->setVariable("FULL_SUNDAY", $lng->txt("l_su"));
00053                 $tpl->setVariable("FULL_MONDAY", $lng->txt("l_mo"));
00054                 $tpl->setVariable("FULL_TUESDAY", $lng->txt("l_tu"));
00055                 $tpl->setVariable("FULL_WEDNESDAY", $lng->txt("l_we"));
00056                 $tpl->setVariable("FULL_THURSDAY", $lng->txt("l_th"));
00057                 $tpl->setVariable("FULL_FRIDAY", $lng->txt("l_fr"));
00058                 $tpl->setVariable("FULL_SATURDAY", $lng->txt("l_sa"));
00059                 $tpl->setVariable("SHORT_SUNDAY", $lng->txt("s_su"));
00060                 $tpl->setVariable("SHORT_MONDAY", $lng->txt("s_mo"));
00061                 $tpl->setVariable("SHORT_TUESDAY", $lng->txt("s_tu"));
00062                 $tpl->setVariable("SHORT_WEDNESDAY", $lng->txt("s_we"));
00063                 $tpl->setVariable("SHORT_THURSDAY", $lng->txt("s_th"));
00064                 $tpl->setVariable("SHORT_FRIDAY", $lng->txt("s_fr"));
00065                 $tpl->setVariable("SHORT_SATURDAY", $lng->txt("s_sa"));
00066                 $tpl->setVariable("FULL_JANUARY", $lng->txt("l_01"));
00067                 $tpl->setVariable("FULL_FEBRUARY", $lng->txt("l_02"));
00068                 $tpl->setVariable("FULL_MARCH", $lng->txt("l_03"));
00069                 $tpl->setVariable("FULL_APRIL", $lng->txt("l_04"));
00070                 $tpl->setVariable("FULL_MAY", $lng->txt("l_05"));
00071                 $tpl->setVariable("FULL_JUNE", $lng->txt("l_06"));
00072                 $tpl->setVariable("FULL_JULY", $lng->txt("l_07"));
00073                 $tpl->setVariable("FULL_AUGUST", $lng->txt("l_08"));
00074                 $tpl->setVariable("FULL_SEPTEMBER", $lng->txt("l_09"));
00075                 $tpl->setVariable("FULL_OCTOBER", $lng->txt("l_10"));
00076                 $tpl->setVariable("FULL_NOVEMBER", $lng->txt("l_11"));
00077                 $tpl->setVariable("FULL_DECEMBER", $lng->txt("l_12"));
00078                 $tpl->setVariable("SHORT_JANUARY", $lng->txt("s_01"));
00079                 $tpl->setVariable("SHORT_FEBRUARY", $lng->txt("s_02"));
00080                 $tpl->setVariable("SHORT_MARCH", $lng->txt("s_03"));
00081                 $tpl->setVariable("SHORT_APRIL", $lng->txt("s_04"));
00082                 $tpl->setVariable("SHORT_MAY", $lng->txt("s_05"));
00083                 $tpl->setVariable("SHORT_JUNE", $lng->txt("s_06"));
00084                 $tpl->setVariable("SHORT_JULY", $lng->txt("s_07"));
00085                 $tpl->setVariable("SHORT_AUGUST", $lng->txt("s_08"));
00086                 $tpl->setVariable("SHORT_SEPTEMBER", $lng->txt("s_09"));
00087                 $tpl->setVariable("SHORT_OCTOBER", $lng->txt("s_10"));
00088                 $tpl->setVariable("SHORT_NOVEMBER", $lng->txt("s_11"));
00089                 $tpl->setVariable("SHORT_DECEMBER", $lng->txt("s_12"));
00090                 $tpl->setVariable("ABOUT_CALENDAR", $lng->txt("about_calendar"));
00091                 $tpl->setVariable("ABOUT_CALENDAR_LONG", $lng->txt("about_calendar_long"));
00092                 $tpl->setVariable("ABOUT_TIME_LONG", $lng->txt("about_time"));
00093                 $tpl->setVariable("PREV_YEAR", $lng->txt("prev_year"));
00094                 $tpl->setVariable("PREV_MONTH", $lng->txt("prev_month"));
00095                 $tpl->setVariable("GO_TODAY", $lng->txt("go_today"));
00096                 $tpl->setVariable("NEXT_MONTH", $lng->txt("next_month"));
00097                 $tpl->setVariable("NEXT_YEAR", $lng->txt("next_year"));
00098                 $tpl->setVariable("SEL_DATE", $lng->txt("select_date"));
00099                 $tpl->setVariable("DRAG_TO_MOVE", $lng->txt("drag_to_move"));
00100                 $tpl->setVariable("PART_TODAY", $lng->txt("part_today"));
00101                 $tpl->setVariable("DAY_FIRST", $lng->txt("day_first"));
00102                 $tpl->setVariable("CLOSE", $lng->txt("close"));
00103                 $tpl->setVariable("TODAY", $lng->txt("today"));
00104                 $tpl->setVariable("TIME_PART", $lng->txt("time_part"));
00105                 $tpl->setVariable("DEF_DATE_FORMAT", $lng->txt("def_date_format"));
00106                 $tpl->setVariable("TT_DATE_FORMAT", $lng->txt("tt_date_format"));
00107                 $tpl->setVariable("WK", $lng->txt("wk"));
00108                 $tpl->setVariable("TIME", $lng->txt("time"));
00109                 $tpl->parseCurrentBlock();
00110                 $tpl->setCurrentBlock("CalendarJS");
00111                 $tpl->setVariable("LOCATION_JAVASCRIPT_CALENDAR", "./Services/Calendar/js/calendar.js");
00112                 $tpl->setVariable("LOCATION_JAVASCRIPT_CALENDAR_SETUP", "./Services/Calendar/js/calendar-setup.js");
00113                 $tpl->setVariable("LOCATION_JAVASCRIPT_CALENDAR_STYLESHEET", "./Services/Calendar/css/calendar.css");
00114                 $tpl->parseCurrentBlock();
00115                 
00116                 self::$init_done = "done";
00117         }
00118 }
00119 ?>

Generated on Fri Dec 13 2013 17:56:55 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1