ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCalendarBlockGUI Class Reference

Calendar blocks, displayed in different contexts, e.g. More...

+ Inheritance diagram for ilCalendarBlockGUI:
+ Collaboration diagram for ilCalendarBlockGUI:

Public Member Functions

 ilCalendarBlockGUI ($a_skip_init=false)
 Constructor.
executeCommand ()
 execute command
 setEnableEdit ($a_enable_edit=0)
 Set EnableEdit.
 getEnableEdit ()
 Get EnableEdit.
 fillDataSection ()
 Fill data section.
 addMiniMonth ($a_tpl)
 Add mini version of monthly overview (Maybe extracted to another class, if used in pd calendar tab.
 getHTML ()
 Get bloch HTML code.
 fillRow ($news)
 get flat bookmark list for personal desktop
 getOverview ()
 Get overview.
 addCloseCommand ($a_content_block)
 setSeed ()
 Set seed.
 returnToUpperContext ()
 Return to upper context.
- Public Member Functions inherited from ilBlockGUI
 ilBlockGUI ()
 Constructor.
 addHeaderLink ($a_href, $a_text, $status=true)
 getHeaderLinks ()
 setData ($a_data)
 Set Data.
 getData ()
 Get Data.
 setBigMode ($a_bigmode)
 Set Big Mode.
 getBigMode ()
 Get Big Mode.
 setBlockId ($a_block_id=0)
 Set Block Id.
 getBlockId ()
 Get Block Id.
 setAvailableDetailLevels ($a_max, $a_min=0)
 Set Available Detail Levels.
 setCurrentDetailLevel ($a_currentdetaillevel)
 Set Current Detail Level.
 setGuiObject (&$a_gui_object)
 Set GuiObject.
 getGuiObject ()
 Get GuiObject.
 getCurrentDetailLevel ()
 Get Current Detail Level.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setImage ($a_image)
 Set Image.
 getImage ()
 Get Image.
 setOffset ($a_offset)
 Set Offset.
 getOffset ()
 Get Offset.
 correctOffset ()
 setLimit ($a_limit)
 Set Limit.
 getLimit ()
 Get Limit.
 setRepositoryMode ($a_repositorymode)
 Set RepositoryMode.
 getRepositoryMode ()
 Get RepositoryMode.
 setFooterInfo ($a_footerinfo, $a_hide_and_icon=false)
 Set Footer Info.
 getFooterInfo ($a_hide_and_icon=false)
 Get Footer Info.
 setSubtitle ($a_subtitle)
 Set Subtitle.
 getSubtitle ()
 Get Subtitle.
 setRefId ($a_refid)
 Set Ref Id (only used if isRepositoryObject() is true).
 getRefId ()
 Get Ref Id (only used if isRepositoryObject() is true).
 setAdminCommands ($a_admincommands)
 Set Administration Commmands.
 getAdminCommands ()
 Get Administration Commmands.
 setColSpan ($a_colspan)
 Set Columns Span.
 getColSpan ()
 Get Columns Span.
 setEnableDetailRow ($a_enabledetailrow)
 Set EnableDetailRow.
 getEnableDetailRow ()
 Get EnableDetailRow.
 setEnableNumInfo ($a_enablenuminfo)
 Set Enable Item Number Info.
 getEnableNumInfo ()
 Get Enable Item Number Info.
 setProperties ($a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties.
 getProperty ($a_property)
 setProperty ($a_property, $a_value)
 setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="")
 Set Row Template Name.
 getNavParameter ()
 getDetailParameter ()
 getConfigParameter ()
 getMoveParameter ()
 getRowTemplateName ()
 Get Row Template Name.
 getRowTemplateDir ()
 Get Row Template Directory.
 addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false)
 Add Block Command.
 getBlockCommands ()
 Get Block commands.
 addHeaderCommand ($a_href, $a_text, $a_as_close=false)
 Add Header Block Command.
 getHeaderCommands ()
 Get Header Block commands.
 addFooterLink ($a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false)
 Add a footer text/link.
 getFooterLinks ()
 Get footer links.
 clearFooterLinks ()
 Clear footer links.
 handleDetailLevel ()
 Handle read/write current detail level.
 setConfigMode ($a_configmode)
 Handle config status.
 getConfigMode ()
 Get Config Mode (move blocks).
 setDataSection ($a_content)
 Call this from overwritten fillDataSection(), if standard row based data is not used.
 fillFooter ()
 fillPreviousNext ()
 Fill previous/next row.
 setPreviousNextLinks ()
 Get previous/next linkbar.
 fillFooterLinks ($a_top=false, $a_numinfo="")
 Fill footer links.
 fillDetailRow ()
 Fill Detail Setting Row.
 fillMoveRow ()
 Fill row for Moving.
 getAllowMove ($a_direction)
 setAllowMove ($a_direction, $a_allow=true)
 fillMoveLink ($a_value, $a_img, $a_txt)

Static Public Member Functions

static getBlockType ()
 Get block type.
static isRepositoryObject ()
 Is this a repository object.
static getScreenMode ()
 Get Screen Mode for current command.

Data Fields

const CAL_MODE_REPOSITORY = 1
const CAL_MODE_PD = 2
 $ctrl = null

Static Public Attributes

static $block_type = "cal"
static $st_data

Protected Member Functions

 initCategories ()
 init categories
 setSubTabs ()
- Protected Member Functions inherited from ilBlockGUI
 fillRowColor ($a_placeholder="CSS_ROW")

Additional Inherited Members

- Protected Attributes inherited from ilBlockGUI
 $data = array()
 $colspan = 1
 $enablenuminfo = true
 $detail_min = 0
 $detail_max = 0
 $bigmode = false
 $footer_links = array()
 $block_id = 0
 $header_commands = array()
 $allow_moving = true
 $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 $enabledetailrow = true
 $header_links = array()

Detailed Description

Member Function Documentation

ilCalendarBlockGUI::addCloseCommand (   $a_content_block)

Definition at line 441 of file class.ilCalendarBlockGUI.php.

References $ilCtrl, and $lng.

{
global $lng, $ilCtrl;
$a_content_block->addHeaderCommand($ilCtrl->getParentReturn($this),
$lng->txt("close"), true);
}
ilCalendarBlockGUI::addMiniMonth (   $a_tpl)

Add mini version of monthly overview (Maybe extracted to another class, if used in pd calendar tab.

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

References $ilCtrl, $lng, ilDateTime\_before(), ilCalendarUtil\_buildMonthDayList(), ilDateTime\_equals(), ilCalendarUtil\_isToday(), ilCalendarUtil\_numericDayToString(), ilBlockGUI\getBlockId(), getBlockType(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_FKT_DATE, IL_CAL_MONTH, ilDateTime\MONTH, and ilCalendarSchedule\TYPE_MONTH.

Referenced by fillDataSection().

{
global $ilCtrl, $lng,$ilUser;
// weekdays
include_once('Services/Calendar/classes/class.ilCalendarUtil.php');
for($i = (int) $this->user_settings->getWeekStart();$i < (7 + (int) $this->user_settings->getWeekStart());$i++)
{
$a_tpl->setCurrentBlock('month_header_col');
$a_tpl->setVariable('TXT_WEEKDAY',ilCalendarUtil::_numericDayToString($i,false));
$a_tpl->parseCurrentBlock();
}
$a_tpl->setCurrentBlock('month_header_col');
$a_tpl->setVariable('TXT_WEEKDAY', "&nbsp;");
$a_tpl->parseCurrentBlock();
include_once('Services/Calendar/classes/class.ilCalendarSchedule.php');
$this->scheduler = new ilCalendarSchedule($this->seed,ilCalendarSchedule::TYPE_MONTH);
$this->scheduler->addSubitemCalendars(true);
$this->scheduler->calculate();
$counter = 0;
foreach(ilCalendarUtil::_buildMonthDayList($this->seed->get(IL_CAL_FKT_DATE,'m'),
$this->seed->get(IL_CAL_FKT_DATE,'Y'),
$this->user_settings->getWeekStart())->get() as $date)
{
$counter++;
//$this->showEvents($date);
$a_tpl->setCurrentBlock('month_col');
if(count($this->scheduler->getByDay($date,$ilUser->getTimeZone())))
{
$a_tpl->setVariable('DAY_CLASS','calminiapp');
#$a_tpl->setVariable('TD_CLASS','calminiapp');
}
include_once('./Services/Calendar/classes/class.ilCalendarUtil.php');
{
$a_tpl->setVariable('TD_CLASS','calminitoday');
}
elseif(ilDateTime::_equals($date,$this->seed,IL_CAL_DAY))
{
$a_tpl->setVariable('TD_CLASS','calmininow');
}
elseif(ilDateTime::_equals($date,$this->seed,IL_CAL_MONTH))
{
$a_tpl->setVariable('TD_CLASS','calministd');
}
elseif(ilDateTime::_before($date,$this->seed,IL_CAL_MONTH))
{
$a_tpl->setVariable('TD_CLASS','calminiprev');
}
else
{
$a_tpl->setVariable('TD_CLASS','calmininext');
}
$day = $date->get(IL_CAL_FKT_DATE,'j');
$month = $date->get(IL_CAL_FKT_DATE,'n');
$month_day = $day;
$ilCtrl->clearParametersByClass('ilcalendardaygui');
$ilCtrl->setParameterByClass('ilcalendardaygui','seed',$date->get(IL_CAL_DATE));
$a_tpl->setVariable('OPEN_DAY_VIEW', $ilCtrl->getLinkTargetByClass('ilcalendardaygui',''));
$ilCtrl->clearParametersByClass('ilcalendardaygui');
$a_tpl->setVariable('MONTH_DAY',$month_day);
//$this->tpl->setVariable('NEW_SRC',ilUtil::getImagePath('new.gif','calendar'));
//$this->tpl->setVariable('NEW_ALT',$this->lng->txt('cal_new_app'));
//$this->ctrl->clearParametersByClass('ilcalendarappointmentgui');
//$this->ctrl->setParameterByClass('ilcalendarappointmentgui','seed',$date->get(IL_CAL_DATE));
//$this->tpl->setVariable('ADD_LINK',$this->ctrl->getLinkTargetByClass('ilcalendarappointmentgui','add'));
//$this->tpl->setVariable('OPEN_SRC',ilUtil::getImagePath('open.gif','calendar'));
$a_tpl->parseCurrentBlock();
if($counter and !($counter % 7))
{
$a_tpl->setCurrentBlock('month_row');
$ilCtrl->clearParametersByClass('ilcalendarweekgui');
$ilCtrl->setParameterByClass('ilcalendarweekgui','seed',$date->get(IL_CAL_DATE));
$a_tpl->setVariable('OPEN_WEEK_VIEW', $ilCtrl->getLinkTargetByClass('ilcalendarweekgui',''));
$ilCtrl->clearParametersByClass('ilcalendarweekgui');
$a_tpl->setVariable('TD_CLASS','calminiweek');
$a_tpl->setVariable('WEEK',
$date->get(IL_CAL_FKT_DATE,'W'));
$a_tpl->parseCurrentBlock();
}
}
$a_tpl->setCurrentBlock('mini_month');
$a_tpl->setVariable('TXT_MONTH',
$lng->txt('month_'.$this->seed->get(IL_CAL_FKT_DATE,'m').'_long').
' '.$this->seed->get(IL_CAL_FKT_DATE,'Y'));
$myseed = clone($this->seed);
$ilCtrl->setParameterByClass('ilcalendarmonthgui','seed',$myseed->get(IL_CAL_DATE));
$a_tpl->setVariable('OPEN_MONTH_VIEW',$ilCtrl->getLinkTargetByClass('ilcalendarmonthgui',''));
$myseed->increment(ilDateTime::MONTH, -1);
$ilCtrl->setParameter($this,'seed',$myseed->get(IL_CAL_DATE));
$a_tpl->setVariable('BL_TYPE', $this->getBlockType());
$a_tpl->setVariable('BL_ID', $this->getBlockId());
$a_tpl->setVariable('PREV_MONTH',
$ilCtrl->getLinkTarget($this, "setSeed"));
$a_tpl->setVariable('PREV_MONTH_ASYNC',
$ilCtrl->getLinkTarget($this, "setSeed", "", true));
$myseed->increment(ilDateTime::MONTH, 2);
$ilCtrl->setParameter($this,'seed',$myseed->get(IL_CAL_DATE));
$a_tpl->setVariable('NEXT_MONTH',
$ilCtrl->getLinkTarget($this, "setSeed"));
$a_tpl->setVariable('NEXT_MONTH_ASYNC',
$ilCtrl->getLinkTarget($this, "setSeed", "", true));
$ilCtrl->setParameter($this, 'seed', "");
$a_tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilCalendarBlockGUI::executeCommand ( )

execute command

Definition at line 162 of file class.ilCalendarBlockGUI.php.

References $cmd, $ilCtrl, and setSubTabs().

{
global $ilCtrl,$ilTabs;
$next_class = $ilCtrl->getNextClass();
$cmd = $ilCtrl->getCmd("getHTML");
$this->setSubTabs();
switch ($next_class)
{
case "ilcalendarappointmentgui":
include_once('./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
$app_gui = new ilCalendarAppointmentGUI($this->seed);
$ilCtrl->forwardCommand($app_gui);
break;
case "ilcalendardaygui":
$ilTabs->setSubTabActive('app_day');
include_once('./Services/Calendar/classes/class.ilCalendarDayGUI.php');
$day_gui = new ilCalendarDayGUI($this->seed);
$ilCtrl->forwardCommand($day_gui);
break;
case "ilcalendarweekgui":
$ilTabs->setSubTabActive('app_week');
include_once('./Services/Calendar/classes/class.ilCalendarWeekGUI.php');
$week_gui = new ilCalendarWeekGUI($this->seed);
$ilCtrl->forwardCommand($week_gui);
break;
case "ilcalendarmonthgui":
$ilTabs->setSubTabActive('app_month');
include_once('./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
$month_gui = new ilCalendarMonthGUI($this->seed);
$ilCtrl->forwardCommand($month_gui);
break;
case "ilcalendarinboxgui":
include_once('./Services/Calendar/classes/class.ilCalendarInboxGUI.php');
$inbox = new ilCalendarInboxGUI($this->seed);
$ilCtrl->forwardCommand($inbox);
break;
default:
return $this->$cmd();
}
}

+ Here is the call graph for this function:

ilCalendarBlockGUI::fillDataSection ( )

Fill data section.

Reimplemented from ilBlockGUI.

Definition at line 234 of file class.ilCalendarBlockGUI.php.

References $tpl, addMiniMonth(), ilBlockGUI\getCurrentDetailLevel(), getOverview(), and ilBlockGUI\setDataSection().

{
if ($this->getCurrentDetailLevel() > 1)
{
$tpl = new ilTemplate("tpl.calendar_block.html", true, true,
"Services/Calendar");
$this->addMiniMonth($tpl);
$this->setDataSection($tpl->get());
}
else
{
$this->setDataSection($this->getOverview());
}
}

+ Here is the call graph for this function:

ilCalendarBlockGUI::fillRow (   $news)

get flat bookmark list for personal desktop

Reimplemented from ilBlockGUI.

Definition at line 417 of file class.ilCalendarBlockGUI.php.

References $ilCtrl, and $lng.

{
global $ilUser, $ilCtrl, $lng;
}
static ilCalendarBlockGUI::getBlockType ( )
static

Get block type.

Returns
string Block type.

Reimplemented from ilBlockGUI.

Reimplemented in ilPDCalendarBlockGUI.

Definition at line 114 of file class.ilCalendarBlockGUI.php.

References $block_type.

Referenced by addMiniMonth(), and ilCalendarBlockGUI().

{
}

+ Here is the caller graph for this function:

ilCalendarBlockGUI::getEnableEdit ( )

Get EnableEdit.

Returns
boolean Edit mode on/off

Reimplemented from ilBlockGUI.

Definition at line 226 of file class.ilCalendarBlockGUI.php.

Referenced by getHTML().

{
return $this->enable_edit;
}

+ Here is the caller graph for this function:

ilCalendarBlockGUI::getHTML ( )

Get bloch HTML code.

Reimplemented from ilBlockGUI.

Definition at line 380 of file class.ilCalendarBlockGUI.php.

References $_GET, $ilCtrl, $lng, $ret, ilBlockGUI\addBlockCommand(), ilBlockGUI\getCurrentDetailLevel(), getEnableEdit(), and ilBlockGUI\getProperty().

Referenced by setSeed().

{
global $ilCtrl, $lng, $ilUser;
if ($this->getCurrentDetailLevel() == 0)
{
return "";
}
// add edit commands
if ($this->getEnableEdit())
{
$ilCtrl->setParameter($this, "add_mode", "block");
$ilCtrl->getLinkTargetByClass("ilCalendarAppointmentGUI",
"add"),
$lng->txt("add"));
$ilCtrl->setParameter($this, "add_mode", "");
}
if ($this->getProperty("settings") == true)
{
$ilCtrl->getLinkTarget($this, "editSettings"),
$lng->txt("settings"));
}
$ilCtrl->setParameterByClass("ilcolumngui", "seed", $_GET["seed"]);
$ilCtrl->setParameterByClass("ilcolumngui", "seed", "");
return $ret;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilCalendarBlockGUI::getOverview ( )

Get overview.

Definition at line 426 of file class.ilCalendarBlockGUI.php.

References $ilCtrl, $lng, and ilCalendarSchedule\TYPE_INBOX.

Referenced by fillDataSection().

{
global $ilUser, $lng, $ilCtrl;
include_once('./Services/Calendar/classes/class.ilCalendarSchedule.php');
$schedule = new ilCalendarSchedule($this->seed,ilCalendarSchedule::TYPE_INBOX);
$events = $schedule->getChangedEvents(true);
$link = '<a href='.$ilCtrl->getLinkTargetByClass('ilcalendarinboxgui','').'>';
$text = '<div class="small">'.((int) count($events))." ".$lng->txt("cal_changed_events_header")."</div>";
$end_link = '</a>';
return $link.$text.$end_link;
}

+ Here is the caller graph for this function:

static ilCalendarBlockGUI::getScreenMode ( )
static

Get Screen Mode for current command.

Reimplemented from ilBlockGUI.

Definition at line 132 of file class.ilCalendarBlockGUI.php.

References $ilCtrl, and IL_SCREEN_CENTER.

{
global $ilCtrl;
$cmd_class = $ilCtrl->getCmdClass();
if ($cmd_class == "ilcalendarappointmentgui" ||
$cmd_class == "ilcalendardaygui" ||
$cmd_class == "ilcalendarweekgui" ||
$cmd_class == "ilcalendarmonthgui" ||
$cmd_class == "ilcalendarinboxgui")
{
}
switch($ilCtrl->getCmd())
{
case "kkk":
// return IL_SCREEN_CENTER;
// return IL_SCREEN_FULL;
default:
//return IL_SCREEN_SIDE;
break;
}
}
ilCalendarBlockGUI::ilCalendarBlockGUI (   $a_skip_init = false)

Constructor.

Parameters
booleanskip initialisation (is called by derived PDCalendarBlockGUI class)

Definition at line 53 of file class.ilCalendarBlockGUI.php.

References $_GET, $_SESSION, $ilCtrl, $lng, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), ilBlockGUI\getBlockId(), getBlockType(), ilUtil\getImagePath(), IL_CAL_DATE, IL_CAL_UNIX, ilBlockGUI\ilBlockGUI(), initCategories(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setImage(), ilBlockGUI\setLimit(), and ilBlockGUI\setTitle().

Referenced by ilPDCalendarBlockGUI\ilPDCalendarBlockGUI().

{
global $ilCtrl, $lng, $ilUser, $tpl;
$this->ctrl = $ilCtrl;
$this->setImage(ilUtil::getImagePath("icon_cals_s.gif"));
$lng->loadLanguageModule("dateplaner");
include_once("./Services/News/classes/class.ilNewsItem.php");
if (!$a_skip_init)
{
$this->initCategories();
$this->setBlockId($ilCtrl->getContextObjId());
}
$this->setLimit(5); // @todo: needed?
$this->setEnableNumInfo(false);
$this->setTitle($lng->txt("calendar"));
//$this->setRowTemplate("tpl.block_calendar.html", "Services/Calendar");
//$this->setData($data);
$this->allow_moving = false;
//$this->handleView();
include_once('Services/Calendar/classes/class.ilDate.php');
include_once('Services/Calendar/classes/class.ilCalendarUserSettings.php');
$seed_str = ($_GET["seed"] == "")
? $_SESSION["il_cal_block_".$this->getBlockType()."_".$this->getBlockId()."_seed"]
: $_GET["seed"];
if ($_GET["seed"] != "")
{
$_SESSION["il_cal_block_".$this->getBlockType()."_".$this->getBlockId()."_seed"]
= $_GET["seed"];
}
if ($seed_str == "")
{
$this->seed = new ilDate(time(),IL_CAL_UNIX); // @todo: check this
}
else
{
$this->seed = new ilDate($seed_str,IL_CAL_DATE); // @todo: check this
}
$this->user_settings = ilCalendarUserSettings::_getInstanceByUserId($ilUser->getId());
$tpl->addCSS("./Services/Calendar/css/calendar.css");
// @todo: this must work differently...
$tpl->addCSS("./Services/Calendar/templates/default/delos.css");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilCalendarBlockGUI::initCategories ( )
protected

init categories

protected

Parameters
@return

Reimplemented in ilPDCalendarBlockGUI.

Definition at line 456 of file class.ilCalendarBlockGUI.php.

References $_GET, ilCalendarCategories\_getInstance(), CAL_MODE_REPOSITORY, and ilCalendarCategories\MODE_REPOSITORY.

Referenced by ilCalendarBlockGUI().

{
if(!is_object($this->categories))
{
include_once('./Services/Calendar/classes/class.ilCalendarCategories.php');
$this->categories = ilCalendarCategories::_getInstance()->initialize(
(int)$_GET['ref_id']);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilCalendarBlockGUI::isRepositoryObject ( )
static

Is this a repository object.

Returns
string Block type.

Reimplemented from ilBlockGUI.

Definition at line 124 of file class.ilCalendarBlockGUI.php.

{
return false;
}
ilCalendarBlockGUI::returnToUpperContext ( )

Return to upper context.

Reimplemented in ilPDCalendarBlockGUI.

Definition at line 515 of file class.ilCalendarBlockGUI.php.

References $ilCtrl.

Referenced by setSeed().

{
global $ilCtrl;
$ilCtrl->returnToParent($this);
}

+ Here is the caller graph for this function:

ilCalendarBlockGUI::setEnableEdit (   $a_enable_edit = 0)

Set EnableEdit.

Parameters
boolean$a_enable_editEdit mode on/off

Reimplemented from ilBlockGUI.

Definition at line 216 of file class.ilCalendarBlockGUI.php.

{
$this->enable_edit = $a_enable_edit;
}
ilCalendarBlockGUI::setSeed ( )

Set seed.

Definition at line 494 of file class.ilCalendarBlockGUI.php.

References $_GET, $_SESSION, $ilCtrl, exit, ilBlockGUI\getBlockId(), getHTML(), and returnToUpperContext().

{
global $ilCtrl, $ilUser;
//$ilUser->writePref("il_pd_bkm_mode", 'flat');
$_SESSION["il_cal_block_".$this->getBlockType()."_".$this->getBlockId()."_seed"] =
$_GET["seed"];
if ($ilCtrl->isAsynch())
{
echo $this->getHTML();
}
else
{
}
}

+ Here is the call graph for this function:

ilCalendarBlockGUI::setSubTabs ( )
protected
Parameters
@return

Definition at line 473 of file class.ilCalendarBlockGUI.php.

References $_GET.

Referenced by executeCommand().

{
global $ilTabs;
$ilTabs->clearSubTabs();
return true;
// TODO: needs another switch
if($_GET['ref_id'])
{
$ilTabs->addSubTabTarget('app_day',$this->ctrl->getLinkTargetByClass('ilCalendarDayGUI',''));
$ilTabs->addSubTabTarget('app_week',$this->ctrl->getLinkTargetByClass('ilCalendarWeekGUI',''));
$ilTabs->addSubTabTarget('app_month',$this->ctrl->getLinkTargetByClass('ilCalendarMonthGUI',''));
}
return true;
}

+ Here is the caller graph for this function:

Field Documentation

ilCalendarBlockGUI::$block_type = "cal"
static

Definition at line 45 of file class.ilCalendarBlockGUI.php.

Referenced by getBlockType().

ilCalendarBlockGUI::$ctrl = null

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

ilCalendarBlockGUI::$st_data
static

Definition at line 46 of file class.ilCalendarBlockGUI.php.

const ilCalendarBlockGUI::CAL_MODE_PD = 2

Definition at line 41 of file class.ilCalendarBlockGUI.php.

Referenced by ilPDCalendarBlockGUI\initCategories().

const ilCalendarBlockGUI::CAL_MODE_REPOSITORY = 1

Definition at line 40 of file class.ilCalendarBlockGUI.php.

Referenced by initCategories().


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