Checks if certain actions can be performed.
More...
Checks if certain actions can be performed.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 12 of file class.ilCalendarActions.php.
◆ __construct()
ilCalendarActions::__construct |
( |
| ) |
|
|
protected |
Constructor.
Definition at line 32 of file class.ilCalendarActions.php.
References $DIC, and ilCalendarCategories\_getInstance().
36 $this->user_id = $DIC->user()->getId();
38 include_once(
"./Services/Calendar/classes/class.ilCalendarCategories.php");
40 if ($this->cats->getMode() == 0) {
41 include_once(
"./Services/Calendar/exceptions/class.ilCalCategoriesNotInitializedException.php");
static _getInstance($a_usr_id=0)
get singleton instance
Exception being thrown if code relies on initialization of calendar categories but no initialization ...
◆ checkAddEvent()
ilCalendarActions::checkAddEvent |
( |
|
$a_cat_id | ) |
|
Check if adding an event is possible.
- Parameters
-
int | $a_cat_id | calendar category id |
- Returns
- bool
Definition at line 125 of file class.ilCalendarActions.php.
127 $info = $this->cats->getCategoryInfo($a_cat_id);
128 return $info[
'editable'];
◆ checkDeleteCal()
ilCalendarActions::checkDeleteCal |
( |
|
$a_cat_id | ) |
|
◆ checkSettingsCal()
ilCalendarActions::checkSettingsCal |
( |
|
$a_cat_id | ) |
|
Check calendar editing.
- Parameters
-
int | $a_cat_id | calendar category id |
- Returns
- bool
Definition at line 65 of file class.ilCalendarActions.php.
67 $info = $this->cats->getCategoryInfo($a_cat_id);
68 return $info[
'settings'];
◆ checkShareCal()
ilCalendarActions::checkShareCal |
( |
|
$a_cat_id | ) |
|
◆ checkSynchronizeCal()
ilCalendarActions::checkSynchronizeCal |
( |
|
$a_cat_id | ) |
|
Check synchronize remote calendar.
- Parameters
-
int | $a_cat_id | calendar category id |
- Returns
- bool
Definition at line 109 of file class.ilCalendarActions.php.
111 $info = $this->cats->getCategoryInfo($a_cat_id);
112 if ($info[
'remote']) {
◆ checkUnshareCal()
ilCalendarActions::checkUnshareCal |
( |
|
$a_cat_id | ) |
|
Check un-sharing (other users) calendar.
- Parameters
-
int | $a_cat_id | calendar category id |
- Returns
- bool
Definition at line 93 of file class.ilCalendarActions.php.
95 $info = $this->cats->getCategoryInfo($a_cat_id);
96 if ($info[
'accepted']) {
◆ getInstance()
static ilCalendarActions::getInstance |
( |
| ) |
|
|
static |
◆ $cats
ilCalendarActions::$cats = null |
|
protected |
◆ $instance
ilCalendarActions::$instance = null |
|
staticprotected |
◆ $user_id
ilCalendarActions::$user_id |
|
protected |
The documentation for this class was generated from the following file: