ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Stores selection of hidden calendars for a specific user. More...
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().
|
static |
delete by category
public
int | category id |
Definition at line 101 of file class.ilCalendarVisibility.php.
References $DIC, $ilDB, and $query.
Referenced by ilCalendarCategory\delete().
|
static |
Delete by user.
public
int | $a_user_id | user_id |
Definition at line 119 of file class.ilCalendarVisibility.php.
References $DIC, $ilDB, and $query.
|
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 ilCalendarScheduleFilterHidden\__construct(), ilCalendarPresentationGUI\__construct(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarPresentationGUI\initAndRedirectToConsultationHours(), ilCalendarCategoryTableGUI\parse(), and ilCalendarCategoryGUI\saveSelection().
ilCalendarVisibility::delete | ( | $a_cat_id = null | ) |
delete
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, $info, array, and isHidden().
ilCalendarVisibility::forceVisibility | ( | $a_cat_id | ) |
Force visibility.
Definition at line 323 of file class.ilCalendarVisibility.php.
References $key.
ilCalendarVisibility::getHidden | ( | ) |
get hidden categories
public
Definition at line 194 of file class.ilCalendarVisibility.php.
References array.
ilCalendarVisibility::getVisible | ( | ) |
get visible categories
public
Definition at line 205 of file class.ilCalendarVisibility.php.
References array.
ilCalendarVisibility::hideSelected | ( | $a_hidden | ) |
hide selected
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
public
Definition at line 176 of file class.ilCalendarVisibility.php.
References ilCalendarCategoryAssignments\_lookupCategories().
|
protected |
Check if category is hidden.
object | $a_cat_id |
Definition at line 152 of file class.ilCalendarVisibility.php.
References $info, and ilCalendarCategory\TYPE_OBJ.
Referenced by filterHidden().
|
protected |
read user selection
protected
Definition at line 301 of file class.ilCalendarVisibility.php.
References $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
ilCalendarVisibility::save | ( | ) |
ilCalendarVisibility::showSelected | ( | $a_visible | ) |
Show selected.
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.