|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Stores selection of hidden calendars for a specific user. More...
Collaboration diagram for ilCalendarVisibility:Public Member Functions | |
| filterHidden ($categories, $category_info) | |
| Filter hidden categories (and hidden subitem categories) from category array. More... | |
| isAppointmentVisible ($a_cal_id) | |
| check whether an appoinment is visible or not More... | |
| getHidden () | |
| get hidden categories More... | |
| getVisible () | |
| get visible categories More... | |
| hideSelected ($a_hidden) | |
| hide selected More... | |
| showSelected ($a_visible) | |
| Show selected. More... | |
| save () | |
| save hidden selection More... | |
| delete ($a_cat_id=null) | |
| delete More... | |
| forceVisibility ($a_cat_id) | |
| Force visibility. More... | |
Static Public Member Functions | |
| static | _getInstanceByUserId ($a_user_id, $a_ref_id=0) |
| get instance by user id More... | |
| static | _deleteCategories ($a_cat_id) |
| delete by category More... | |
| static | _deleteUser ($a_user_id) |
| Delete by user. More... | |
Data Fields | |
| const | HIDDEN = 0 |
| const | VISIBLE = 1 |
Protected Member Functions | |
| isHidden ($a_cat_id, $info) | |
| Check if category is hidden. More... | |
| read () | |
| read user selection More... | |
Protected Attributes | |
| $user_id | |
| $hidden = array() | |
| $visible = array() | |
| $db | |
Static Protected Attributes | |
| static | $instances = array() |
Private Member Functions | |
| __construct ($a_user_id, $a_ref_id=0) | |
| Constructor. More... | |
Stores selection of hidden calendars for a specific user.
Definition at line 32 of file class.ilCalendarVisibility.php.
|
private |
Constructor.
| int | $a_user_id | user id |
| int | $a_ref_id | object ref id |
| int | user id |
Definition at line 69 of file class.ilCalendarVisibility.php.
References $DIC, ilObject\_lookupObjId(), and read().
Here is the call graph for this function:
|
static |
delete by category
@access public
| int | category id |
Definition at line 101 of file class.ilCalendarVisibility.php.
References $DIC, $ilDB, and $query.
Referenced by ilCalendarCategory\delete().
Here is the caller graph for this function:
|
static |
Delete by user.
@access public
| int | $a_user_id | user_id |
Definition at line 119 of file class.ilCalendarVisibility.php.
|
static |
get instance by user id
| int | $a_user_id | user id |
| int | $a_ref_id | object ref id |
Definition at line 86 of file class.ilCalendarVisibility.php.
Referenced by ilCalendarPresentationGUI\__construct(), ilCalendarScheduleFilterHidden\__construct(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarPresentationGUI\initAndRedirectToConsultationHours(), ilCalendarCategoryTableGUI\parse(), and ilCalendarCategoryGUI\saveSelection().
Here is the caller graph for this function:| ilCalendarVisibility::delete | ( | $a_cat_id = null | ) |
delete
@access public
| int | $a_cat_id | cat id (if empty all categories are deleted) |
Definition at line 279 of file class.ilCalendarVisibility.php.
References $query.
| ilCalendarVisibility::filterHidden | ( | $categories, | |
| $category_info | |||
| ) |
Filter hidden categories (and hidden subitem categories) from category array.
| object | $categories | |
| object | $category_info |
Definition at line 136 of file class.ilCalendarVisibility.php.
References $hidden, and isHidden().
Here is the call graph for this function:| ilCalendarVisibility::forceVisibility | ( | $a_cat_id | ) |
Force visibility.
Definition at line 323 of file class.ilCalendarVisibility.php.
| ilCalendarVisibility::getHidden | ( | ) |
get hidden categories
@access public
Definition at line 194 of file class.ilCalendarVisibility.php.
| ilCalendarVisibility::getVisible | ( | ) |
get visible categories
@access public
Definition at line 205 of file class.ilCalendarVisibility.php.
| ilCalendarVisibility::hideSelected | ( | $a_hidden | ) |
hide selected
@access public
| array | array of hidden categories |
Definition at line 217 of file class.ilCalendarVisibility.php.
| ilCalendarVisibility::isAppointmentVisible | ( | $a_cal_id | ) |
check whether an appoinment is visible or not
@access public
return
Definition at line 176 of file class.ilCalendarVisibility.php.
References ilCalendarCategoryAssignments\_lookupCategories().
Here is the call graph for this function:
|
protected |
Check if category is hidden.
| object | $a_cat_id |
Definition at line 152 of file class.ilCalendarVisibility.php.
References ilCalendarCategory\TYPE_OBJ.
Referenced by filterHidden().
Here is the caller graph for this function:
|
protected |
read user selection
@access protected
Definition at line 301 of file class.ilCalendarVisibility.php.
References $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
Here is the caller graph for this function:| ilCalendarVisibility::save | ( | ) |
save hidden selection
@access public
Definition at line 242 of file class.ilCalendarVisibility.php.
| ilCalendarVisibility::showSelected | ( | $a_visible | ) |
Show selected.
@access public
| array | array of visible categories |
Definition at line 230 of file class.ilCalendarVisibility.php.
|
protected |
Definition at line 60 of file class.ilCalendarVisibility.php.
|
protected |
Definition at line 50 of file class.ilCalendarVisibility.php.
Referenced by filterHidden(), and save().
|
staticprotected |
Definition at line 40 of file class.ilCalendarVisibility.php.
|
protected |
Definition at line 45 of file class.ilCalendarVisibility.php.
|
protected |
Definition at line 55 of file class.ilCalendarVisibility.php.
Referenced by save().
| const ilCalendarVisibility::HIDDEN = 0 |
Definition at line 34 of file class.ilCalendarVisibility.php.
| const ilCalendarVisibility::VISIBLE = 1 |
Definition at line 35 of file class.ilCalendarVisibility.php.