ILIAS
Release_3_10_x_branch Revision 61812
|
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. | |
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 33 of file class.ilCalendarHidden.php.
|
private |
Singleton constructor.
private
int | user id |
Definition at line 48 of file class.ilCalendarHidden.php.
References read().
|
static |
delete by category
public
int | category id |
Definition at line 81 of file class.ilCalendarHidden.php.
Referenced by ilCalendarCategory\delete().
|
static |
Delete by user.
public
int | user_id |
Definition at line 98 of file class.ilCalendarHidden.php.
|
static |
get instance by user id
public
int | user id |
Definition at line 65 of file class.ilCalendarHidden.php.
Referenced by ilCalendarSchedule\__construct(), ilCalendarCategoryTableGUI\parse(), and ilCalendarCategoryGUI\saveSelection().
ilCalendarHidden::delete | ( | $a_cat_id = null | ) |
delete
public
int | cat id (if empty all categories are deleted) |
Definition at line 208 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 113 of file class.ilCalendarHidden.php.
References $hidden, and isHidden().
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().
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().
|
protected |
read user selection
protected
Definition at line 231 of file class.ilCalendarHidden.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilCalendarHidden::save | ( | ) |
save hidden selection
public
Definition at line 188 of file class.ilCalendarHidden.php.
References $hidden.
|
protected |
Definition at line 40 of file class.ilCalendarHidden.php.
|
protected |
Definition at line 38 of file class.ilCalendarHidden.php.
Referenced by filterHidden(), and save().
|
staticprotected |
Definition at line 35 of file class.ilCalendarHidden.php.
|
protected |
Definition at line 37 of file class.ilCalendarHidden.php.