ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjCalendarSettingsGUI Class Reference
+ Inheritance diagram for ilObjCalendarSettingsGUI:
+ Collaboration diagram for ilObjCalendarSettingsGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor.
 executeCommand ()
 Execute command.
 getAdminTabs ()
 Get tabs.
 settings ()
 Edit settings.
 addToExternalSettingsForm ($a_form_id)
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui
 getCreationMode ()
 get creation mode
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getHTML ()
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 createObject ()
 create new object form
 cancelCreation ()
 cancel create action and go back to repository parent
 saveObject ()
 save object
 editObject ()
 edit object
 updateObject ()
 updates object entry in object_data
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 isVisible ($a_ref_id, $a_type)
 viewObject ()
 list childs of current object
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Protected Member Functions

 save ()
 save settings
 initCalendarSettings ()
 init calendar settings
 initFormSettings ()
 Init settings property form.
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu.
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 setTabs ()
 set admin tabs public
 setAdminTabs ()
 set admin tabs public
 setLocator ()
 set Locator
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 omitLocator ($a_omit=true)
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 initCreationForms ($a_new_type)
 Init creation froms.
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initCreateForm ($a_new_type)
 Init object creation form.
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types.
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates.
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 initEditForm ()
 Init object edit form.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormValues ()
 Get values for edit form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 afterUpdate ()
 Post (successful) object update hook.
 initImportForm ($a_new_type)
 Init object import form.
 importFileObject ($parent_id=null)
 Import.
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook.
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g.
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g.
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu)
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste
 getTabs (&$tabs_gui)
 get tabs abstract method.
 __showButton ($a_cmd, $a_text, $a_target= '')
 hitsperpageObject ()
__initTableGUI ()
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false
const CFORM_NEW = 1
const CFORM_IMPORT = 2
const CFORM_CLONE = 3

Detailed Description

Constructor & Destructor Documentation

ilObjCalendarSettingsGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

Constructor.

public

Definition at line 43 of file class.ilObjCalendarSettingsGUI.php.

References ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().

{
global $lng;
$this->type = 'cals';
parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
$this->lng = $lng;
$this->lng->loadLanguageModule('dateplaner');
$this->lng->loadLanguageModule('jscalendar');
}

+ Here is the call graph for this function:

Member Function Documentation

ilObjCalendarSettingsGUI::addToExternalSettingsForm (   $a_form_id)

Definition at line 467 of file class.ilObjCalendarSettingsGUI.php.

References ilAdministrationSettingsFormHandler\FORM_COURSE, ilAdministrationSettingsFormHandler\FORM_GROUP, initCalendarSettings(), settings(), and ilAdministrationSettingsFormHandler\VALUE_BOOL.

{
switch($a_form_id)
{
$fields = array();
$subitems = array('cal_setting_global_crs_vis' => array($this->settings->isCourseCalendarEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL));
$fields['cal_setting_global_vis_repos'] = array(null, null, $subitems);
$subitems = array(
'cal_notification_crsgrp' => array($this->settings->isNotificationEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
'cal_notification_users' => array($this->settings->isUserNotificationEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL)
);
$fields['cal_notification'] = array(null, null, $subitems);
$fields['cal_cg_registrations'] = array($this->settings->isCGRegistrationEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL);
return array(array("settings", $fields));
$fields = array();
$subitems = array('cal_setting_global_grp_vis' => array($this->settings->isGroupCalendarEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL));
$fields['cal_setting_global_vis_repos'] = array(null, null, $subitems);
$subitems = array(
'cal_notification_crsgrp' => array($this->settings->isNotificationEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
'cal_notification_users' => array($this->settings->isUserNotificationEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL)
);
$fields['cal_notification'] = array(null, null, $subitems);
$fields['cal_cg_registrations'] = array($this->settings->isCGRegistrationEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL);
return array(array("settings", $fields));
}
}

+ Here is the call graph for this function:

ilObjCalendarSettingsGUI::executeCommand ( )

Execute command.

public

Reimplemented from ilObjectGUI.

Definition at line 61 of file class.ilObjCalendarSettingsGUI.php.

References $cmd, $ilErr, $ret, initCalendarSettings(), and ilObjectGUI\prepareOutput().

{
global $ilErr,$ilAccess;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
$this->prepareOutput();
if(!$ilAccess->checkAccess('read','',$this->object->getRefId()))
{
$ilErr->raiseError($this->lng->txt('no_permission'),$ilErr->WARNING);
}
switch($next_class)
{
case 'ilpermissiongui':
$this->tabs_gui->setTabActive('perm_settings');
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
default:
$this->tabs_gui->setTabActive('settings');
if(!$cmd || $cmd == 'view')
{
$cmd = "settings";
}
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjCalendarSettingsGUI::getAdminTabs ( )

Get tabs.

public

Definition at line 105 of file class.ilObjCalendarSettingsGUI.php.

{
global $rbacsystem, $ilAccess;
if ($ilAccess->checkAccess("read",'',$this->object->getRefId()))
{
$this->tabs_gui->addTarget("settings",
$this->ctrl->getLinkTarget($this, "settings"),
array("settings", "view"));
}
if ($ilAccess->checkAccess('edit_permission','',$this->object->getRefId()))
{
$this->tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass('ilpermissiongui',"perm"),
array(),'ilpermissiongui');
}
}
ilObjCalendarSettingsGUI::initCalendarSettings ( )
protected

init calendar settings

protected

Definition at line 243 of file class.ilObjCalendarSettingsGUI.php.

References ilCalendarSettings\_getInstance(), and settings().

Referenced by addToExternalSettingsForm(), and executeCommand().

{
include_once('Services/Calendar/classes/class.ilCalendarSettings.php');
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCalendarSettingsGUI::initFormSettings ( )
protected

Init settings property form.

protected

Definition at line 254 of file class.ilObjCalendarSettingsGUI.php.

References $GLOBALS, ilTimeZone\_getDefaultTimeZone(), ilCalendarUtil\_getShortTimeZoneList(), ilCalendarSettings\DATE_FORMAT_DMY, ilCalendarSettings\DATE_FORMAT_MDY, ilCalendarSettings\DATE_FORMAT_YMD, ilCalendarUtil\getHourSelection(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilCheckboxInputGUI\setOptionTitle(), settings(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilCalendarSettings\TIME_FORMAT_12, and ilCalendarSettings\TIME_FORMAT_24.

Referenced by settings().

{
if(is_object($this->form))
{
return true;
}
include_once('Services/Calendar/classes/class.ilCalendarUtil.php');
include_once('Services/Form/classes/class.ilPropertyFormGUI.php');
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this));
$this->form->setTitle($this->lng->txt('cal_global_settings'));
$this->form->addCommandButton('save',$this->lng->txt('save'));
#$this->form->addCommandButton('cancel',$this->lng->txt('cancel'));
$check = new ilCheckboxInputGUI($this->lng->txt('enable_calendar'),'enable');
$check->setValue(1);
$check->setChecked($this->settings->isEnabled() ? true : false);
$this->form->addItem($check);
$server_tz = new ilNonEditableValueGUI($this->lng->txt('cal_server_tz'));
$this->form->addItem($server_tz);
$select = new ilSelectInputGUI($this->lng->txt('cal_def_timezone'),'default_timezone');
$select->setInfo($this->lng->txt('cal_def_timezone_info'));
$select->setValue($this->settings->getDefaultTimeZone());
$this->form->addItem($select);
$year = date("Y");
$select = new ilSelectInputGUI($this->lng->txt('cal_def_date_format'),'default_date_format');
$select->setOptions(array(
$select->setInfo($this->lng->txt('cal_def_date_format_info'));
$select->setValue($this->settings->getDefaultDateFormat());
$this->form->addItem($select);
$select = new ilSelectInputGUI($this->lng->txt('cal_def_time_format'),'default_time_format');
$select->setOptions(array(
$select->setInfo($this->lng->txt('cal_def_time_format_info'));
$select->setValue($this->settings->getDefaultTimeFormat());
$this->form->addItem($select);
// Weekstart
$radio = new ilRadioGroupInputGUI($this->lng->txt('cal_def_week_start'),'default_week_start');
$radio->setValue($this->settings->getDefaultWeekStart());
$option = new ilRadioOption($this->lng->txt('l_su'),0);
$radio->addOption($option);
$option = new ilRadioOption($this->lng->txt('l_mo'),1);
$radio->addOption($option);
$this->form->addItem($radio);
// Day start
$day_start = new ilSelectInputGUI($this->lng->txt('cal_day_start'),'dst');
$day_start->setOptions(
ilCalendarUtil::getHourSelection($this->settings->getDefaultTimeFormat())
);
$day_start->setValue($this->settings->getDefaultDayStart());
$this->form->addItem($day_start);
$day_end = new ilSelectInputGUI($this->lng->txt('cal_day_end'),'den');
$day_end->setOptions(
ilCalendarUtil::getHourSelection($this->settings->getDefaultTimeFormat())
);
$day_end->setValue($this->settings->getDefaultDayEnd());
$this->form->addItem($day_end);
$sync = new ilCheckboxInputGUI($this->lng->txt('cal_webcal_sync'),'webcal');
$sync->setValue(1);
$sync->setChecked($this->settings->isWebCalSyncEnabled());
$sync->setInfo($this->lng->txt('cal_webcal_sync_info'));
$sync_min = new ilNumberInputGUI('','webcal_hours');
$sync_min->setSize(2);
$sync_min->setMaxLength(3);
$sync_min->setValue($this->settings->getWebCalSyncHours());
$sync_min->setSuffix($this->lng->txt('hours'));
$sync->addSubItem($sync_min);
$this->form->addItem($sync);
// enable milestone planning in groups
$mil = new ilFormSectionHeaderGUI();
$mil->setTitle($this->lng->txt('cal_milestone_settings'));
$this->form->addItem($mil);
$checkm = new ilCheckboxInputGUI($this->lng->txt('cal_enable_group_milestones'),'enable_grp_milestones');
$checkm->setValue(1);
$checkm->setChecked($this->settings->getEnableGroupMilestones() ? true : false);
$checkm->setInfo($this->lng->txt('cal_enable_group_milestones_desc'));
$this->form->addItem($checkm);
// Consultation hours
$con = new ilFormSectionHeaderGUI();
$con->setTitle($this->lng->txt('cal_ch_form_header'));
$this->form->addItem($con);
$ch = new ilCheckboxInputGUI($this->lng->txt('cal_ch_form'),'ch');
$ch->setInfo($this->lng->txt('cal_ch_form_info'));
$ch->setValue(1);
$ch->setChecked($this->settings->areConsultationHoursEnabled());
$this->form->addItem($ch);
// repository visibility default
$rep = new ilFormSectionHeaderGUI();
$rep->setTitle($GLOBALS['lng']->txt('cal_setting_global_vis_repos'));
$this->form->addItem($rep);
$crs = new ilCheckboxInputGUI($GLOBALS['lng']->txt('cal_setting_global_crs_vis'),'visible_crs');
$crs->setInfo($GLOBALS['lng']->txt('cal_setting_global_crs_vis_info'));
$crs->setValue(1);
$crs->setInfo($GLOBALS['lng']->txt('cal_setting_global_crs_vis_info'));
$crs->setChecked($this->settings->isCourseCalendarEnabled());
$this->form->addItem($crs);
$grp = new ilCheckboxInputGUI($GLOBALS['lng']->txt('cal_setting_global_grp_vis'),'visible_grp');
$grp->setInfo($GLOBALS['lng']->txt('cal_setting_global_grp_vis_info'));
$grp->setValue(1);
$grp->setInfo($GLOBALS['lng']->txt('cal_setting_global_grp_vis_info'));
$grp->setChecked($this->settings->isGroupCalendarEnabled());
$this->form->addItem($grp);
// Notifications
$not = new ilFormSectionHeaderGUI();
$not->setTitle($this->lng->txt('notifications'));
$this->form->addItem($not);
$cgn = new ilCheckboxInputGUI($this->lng->txt('cal_notification'),'cn');
$cgn->setOptionTitle($this->lng->txt('cal_notification_crsgrp'));
$cgn->setValue(1);
$cgn->setChecked($this->settings->isNotificationEnabled());
$cgn->setInfo($this->lng->txt('cal_adm_notification_info'));
$this->form->addItem($cgn);
$cnu = new ilCheckboxInputGUI('','cnu');
$cnu->setOptionTitle($this->lng->txt('cal_notification_users'));
$cnu->setValue(1);
$cnu->setChecked($this->settings->isUserNotificationEnabled());
$cnu->setInfo($this->lng->txt('cal_adm_notification_user_info'));
$this->form->addItem($cnu);
// Registration
$book = new ilFormSectionHeaderGUI();
$book->setTitle($this->lng->txt('cal_registrations'));
$this->form->addItem($book);
$cgn = new ilCheckboxInputGUI($this->lng->txt('cal_cg_registrations'),'cgr');
$cgn->setValue(1);
$cgn->setChecked($this->settings->isCGRegistrationEnabled());
$cgn->setInfo($this->lng->txt('cal_cg_registration_info'));
$this->form->addItem($cgn);
// Synchronisation cache
$sec = new ilFormSectionHeaderGUI();
$sec->setTitle($this->lng->txt('cal_cache_settings'));
$this->form->addItem($sec);
$cache = new ilRadioGroupInputGUI($this->lng->txt('cal_sync_cache'),'sync_cache');
$cache->setValue((int) $this->settings->isSynchronisationCacheEnabled());
$cache->setInfo($this->lng->txt('cal_sync_cache_info'));
$cache->setRequired(true);
$sync_cache = new ilRadioOption($this->lng->txt('cal_sync_disabled'),0);
$cache->addOption($sync_cache);
$sync_cache = new ilRadioOption($this->lng->txt('cal_sync_enabled'),1);
$cache->addOption($sync_cache);
$cache_t = new ilNumberInputGUI('','sync_cache_time');
$cache_t->setValue($this->settings->getSynchronisationCacheMinutes());
$cache_t->setMinValue(0);
$cache_t->setSize(3);
$cache_t->setMaxLength(3);
$cache_t->setSuffix($this->lng->txt('form_minutes'));
$sync_cache->addSubItem($cache_t);
$this->form->addItem($cache);
// Calendar cache
$cache = new ilRadioGroupInputGUI($this->lng->txt('cal_cache'),'cache');
$cache->setValue((int) $this->settings->isCacheUsed());
$cache->setInfo($this->lng->txt('cal_cache_info'));
$cache->setRequired(true);
$sync_cache = new ilRadioOption($this->lng->txt('cal_cache_disabled'),0);
$cache->addOption($sync_cache);
$sync_cache = new ilRadioOption($this->lng->txt('cal_cache_enabled'),1);
$cache->addOption($sync_cache);
$cache_t = new ilNumberInputGUI('','cache_time');
$cache_t->setValue($this->settings->getCacheMinutes());
$cache_t->setMinValue(0);
$cache_t->setSize(3);
$cache_t->setMaxLength(3);
$cache_t->setSuffix($this->lng->txt('form_minutes'));
$sync_cache->addSubItem($cache_t);
$this->form->addItem($cache);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCalendarSettingsGUI::save ( )
protected

save settings

protected

Definition at line 202 of file class.ilObjCalendarSettingsGUI.php.

References $_POST, ilUtil\sendFailure(), ilUtil\sendSuccess(), settings(), and ilUtil\stripSlashes().

{
$this->settings->setEnabled((int) $_POST['enable']);
$this->settings->setDefaultWeekStart((int) $_POST['default_week_start']);
$this->settings->setDefaultTimeZone(ilUtil::stripSlashes($_POST['default_timezone']));
$this->settings->setDefaultDateFormat((int) $_POST['default_date_format']);
$this->settings->setDefaultTimeFormat((int) $_POST['default_time_format']);
$this->settings->setEnableGroupMilestones((int) $_POST['enable_grp_milestones']);
$this->settings->enableCourseCalendar((int) $_POST['visible_crs']);
$this->settings->enableGroupCalendar((int) $_POST['visible_grp']);
$this->settings->setDefaultDayStart((int) $_POST['dst']);
$this->settings->setDefaultDayEnd((int) $_POST['den']);
$this->settings->enableSynchronisationCache((bool) $_POST['sync_cache']);
$this->settings->setSynchronisationCacheMinutes((int) $_POST['sync_cache_time']);
$this->settings->setCacheMinutes((int) $_POST['cache_time']);
$this->settings->useCache((bool) $_POST['cache']);
$this->settings->enableNotification((bool) $_POST['cn']);
$this->settings->enableUserNotification((bool) $_POST['cnu']);
$this->settings->enableConsultationHours((bool) $_POST['ch']);
$this->settings->enableCGRegistration((bool) $_POST['cgr']);
$this->settings->enableWebCalSync((bool) $_POST['webcal']);
$this->settings->setWebCalSyncHours((int) $_POST['webcal_hours']);
if(((int) $_POST['den']) < (int) $_POST['dst'])
{
ilUtil::sendFailure($this->lng->txt('cal_dstart_dend_warn'));
$this->settings();
return false;
}
$this->settings->save();
ilUtil::sendSuccess($this->lng->txt('settings_saved'));
$this->settings();
}

+ Here is the call graph for this function:

ilObjCalendarSettingsGUI::settings ( )

Edit settings.

Definition at line 127 of file class.ilObjCalendarSettingsGUI.php.

References initFormSettings().

Referenced by addToExternalSettingsForm(), initCalendarSettings(), initFormSettings(), and save().

{
include_once('./Services/Calendar/classes/class.ilDateTime.php');
include_once('./Services/Calendar/classes/iCal/class.ilICalParser.php');
include_once('./Services/Calendar/classes/class.ilCalendarRecurrenceCalculator.php');
include_once('./Services/Calendar/classes/class.ilCalendarRecurrence.php');
include_once('./Services/Calendar/classes/class.ilCalendarEntry.php');
#$parser = new ilICalParser('./extern/Feiertage.ics',ilICalParser::INPUT_FILE);
#$parser->setCategoryId(6);
#$parser->parse();
/*
$calc = new ilCalendarRecurrenceCalculator(
new ilCalendarEntry(273),
new ilCalendarRecurrence(43));
$list = $calc->calculateDateList(
new ilDateTime('2008-04-01',IL_CAL_DATE),
new ilDateTime('2008-04-31',IL_CAL_DATE));
*/
#echo "RESULT: ".$list;
/*
$zeit = microtime(true);
for($i = 0;$i < 1;$i++)
{
$calc = new ilCalendarRecurrenceCalculator(
new ilCalendarEntry(1061),
new ilCalendarRecurrence(72));
$list = $calc->calculateDateList(
new ilDateTime('2008-03-01',IL_CAL_DATE),
new ilDateTime('2008-03-31',IL_CAL_DATE));
}
echo "NEEDS: ".(microtime(true) - $zeit).' seconds.<br>';
foreach($list->get() as $event)
{
echo $event->get(IL_CAL_DATETIME,'',$this->settings->getDefaultTimeZone()).'<br />';
}
*/
#$parser = new ilICalParser('./extern/fc.ics',ilICalParser::INPUT_FILE);
#$parser->setCategoryId(11);
#$parser = new ilICalParser('./Feiertage.ics',ilICalParser::INPUT_FILE);
#$parser->parse();
#$entry = new ilCalendarEntry(927);
/*
$timezone = "US/Alaska";
echo $entry->getTitle().'<br>';
echo $entry->getStart()->get(IL_CAL_DATE,'',$timezone).'<br>';
echo $entry->getStart()->get(IL_CAL_DATETIME,'',$timezone).'<br>';
echo $entry->getEnd()->get(IL_CAL_DATE,'',$timezone).'<br>';
echo $entry->getEnd()->get(IL_CAL_DATETIME,'',$timezone).'<br>';
$entry = new ilCalendarEntry(928);
echo $entry->getTitle().'<br>';
echo $entry->getStart()->get(IL_CAL_DATE,'',$timezone).'<br>';
echo $entry->getStart()->get(IL_CAL_DATETIME,'',$timezone).'<br>';
echo $entry->getEnd()->get(IL_CAL_DATE,'',$timezone).'<br>';
echo $entry->getEnd()->get(IL_CAL_DATETIME,'',$timezone).'<br>';
*/
$this->tabs_gui->setTabActive('settings');
$this->initFormSettings();
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.settings.html','Services/Calendar');
$this->tpl->setVariable('CAL_SETTINGS',$this->form->getHTML());
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: