| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Stores selection of hidden calendars for a specific user. More...
 Collaboration diagram for ilCalendarHidden:
 Collaboration diagram for ilCalendarHidden:| Public Member Functions | |
| filterHidden ($categories, $category_info) | |
| Filter hidden categories (and hidden subitem categories) from category array. | |
| isHidden ($a_cat_id) | |
| Check if category is hidden. | |
| isAppointmentVisible ($a_cal_id) | |
| check whether an appoinment is visible or not | |
| getHidden () | |
| get hidden categories | |
| hideSelected ($a_hidden) | |
| hide selected | |
| save () | |
| save hidden selection | |
| delete ($a_cat_id=null) | |
| delete | |
| Static Public Member Functions | |
| static | _getInstanceByUserId ($a_user_id) | 
| get instance by user id | |
| static | _deleteCategories ($a_cat_id) | 
| delete by category | |
| static | _deleteUser ($a_user_id) | 
| Delete by user. | |
| Protected Member Functions | |
| read () | |
| read user selection | |
| Protected Attributes | |
| $user_id | |
| $hidden = array() | |
| $db | |
| Static Protected Attributes | |
| static | $instances = array() | 
| Private Member Functions | |
| __construct ($a_user_id) | |
| Singleton constructor. | |
Stores selection of hidden calendars for a specific user.
Definition at line 32 of file class.ilCalendarHidden.php.
| 
 | private | 
Singleton constructor.
private
| int | user id | 
Definition at line 47 of file class.ilCalendarHidden.php.
References read().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
delete by category
public
| int | category id | 
Definition at line 80 of file class.ilCalendarHidden.php.
Referenced by ilCalendarCategory\delete().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| 
 | static | 
get instance by user id
public
| int | user id | 
Definition at line 64 of file class.ilCalendarHidden.php.
Referenced by ilCalendarSchedule\__construct(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarCategoryTableGUI\parse(), and ilCalendarCategoryGUI\saveSelection().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCalendarHidden::delete | ( | $a_cat_id = null | ) | 
delete
public
| int | cat id (if empty all categories are deleted) | 
Definition at line 212 of file class.ilCalendarHidden.php.
| ilCalendarHidden::filterHidden | ( | $categories, | |
| $category_info | |||
| ) | 
Filter hidden categories (and hidden subitem categories) from category array.
| object | $categories | |
| object | $category_info | 
Definition at line 112 of file class.ilCalendarHidden.php.
References $hidden, and isHidden().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarHidden::getHidden | ( | ) | 
get hidden categories
public
Definition at line 162 of file class.ilCalendarHidden.php.
| ilCalendarHidden::hideSelected | ( | $a_hidden | ) | 
hide selected
public
| array | array of hidden categories | 
Definition at line 176 of file class.ilCalendarHidden.php.
| ilCalendarHidden::isAppointmentVisible | ( | $a_cal_id | ) | 
check whether an appoinment is visible or not
public
| @return | 
Definition at line 142 of file class.ilCalendarHidden.php.
References ilCalendarCategoryAssignments\_lookupCategories().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarHidden::isHidden | ( | $a_cat_id | ) | 
Check if category is hidden.
| object | $a_cat_id | 
Definition at line 130 of file class.ilCalendarHidden.php.
Referenced by filterHidden().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
read user selection
protected
Definition at line 237 of file class.ilCalendarHidden.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCalendarHidden::save | ( | ) | 
| 
 | protected | 
Definition at line 39 of file class.ilCalendarHidden.php.
| 
 | protected | 
Definition at line 37 of file class.ilCalendarHidden.php.
Referenced by filterHidden(), and save().
| 
 | staticprotected | 
Definition at line 34 of file class.ilCalendarHidden.php.
| 
 | protected | 
Definition at line 36 of file class.ilCalendarHidden.php.