ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCalendarScheduleFilterHidden Class Reference

Calendar schedule filter for hidden categories. More...

+ Inheritance diagram for ilCalendarScheduleFilterHidden:
+ Collaboration diagram for ilCalendarScheduleFilterHidden:

Public Member Functions

 __construct ($a_user_id)
 
 filterCategories (array $a_cats)
 
 modifyEvent (ilCalendarEntry $a_event)
 
 addCustomEvents (ilDate $start, ilDate $end, array $a_categories)
 

Protected Attributes

 $user_id
 
 $hidden_cat
 

Detailed Description

Calendar schedule filter for hidden categories.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 16 of file class.ilCalendarScheduleFilterHidden.php.

Constructor & Destructor Documentation

◆ __construct()

ilCalendarScheduleFilterHidden::__construct (   $a_user_id)

Definition at line 21 of file class.ilCalendarScheduleFilterHidden.php.

References ilCalendarCategories\_getInstance(), and ilCalendarVisibility\_getInstanceByUserId().

22  {
23  $this->user_id = $a_user_id;
25  $this->user_id,
26  ilCalendarCategories::_getInstance($this->user_id)->getSourceRefId()
27  );
28  }
static _getInstanceByUserId($a_user_id, $a_ref_id=0)
get instance by user id
static _getInstance($a_usr_id=0)
get singleton instance
+ Here is the call graph for this function:

Member Function Documentation

◆ addCustomEvents()

ilCalendarScheduleFilterHidden::addCustomEvents ( ilDate  $start,
ilDate  $end,
array  $a_categories 
)

Implements ilCalendarScheduleFilter.

Definition at line 47 of file class.ilCalendarScheduleFilterHidden.php.

48  {
49  }

◆ filterCategories()

ilCalendarScheduleFilterHidden::filterCategories ( array  $a_cats)

Implements ilCalendarScheduleFilter.

Definition at line 30 of file class.ilCalendarScheduleFilterHidden.php.

References ilCalendarCategories\_getInstance().

31  {
32  return $this->hidden_cat->filterHidden(
33  $a_cats,
34  ilCalendarCategories::_getInstance($this->user_id)->getCategoriesInfo()
35  );
36  }
static _getInstance($a_usr_id=0)
get singleton instance
+ Here is the call graph for this function:

◆ modifyEvent()

ilCalendarScheduleFilterHidden::modifyEvent ( ilCalendarEntry  $a_event)

Implements ilCalendarScheduleFilter.

Definition at line 38 of file class.ilCalendarScheduleFilterHidden.php.

References ilCalendarEntry\getEntryId().

39  {
40  // the not is ok since isAppointmentVisible return false for visible appointments
41  if (!$this->hidden_cat->isAppointmentVisible($a_event->getEntryId())) {
42  return $a_event;
43  }
44  return false;
45  }
getEntryId()
get entry id
+ Here is the call graph for this function:

Field Documentation

◆ $hidden_cat

ilCalendarScheduleFilterHidden::$hidden_cat
protected

Definition at line 19 of file class.ilCalendarScheduleFilterHidden.php.

◆ $user_id

ilCalendarScheduleFilterHidden::$user_id
protected

Definition at line 18 of file class.ilCalendarScheduleFilterHidden.php.


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