| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilCalendarShared:Public Member Functions | |
| __construct (int $a_calendar_id) | |
| getCalendarId () | |
| getShared () | |
| getUsers () | |
| getRoles () | |
| isShared (int $a_obj_id) | |
| isEditableForUser (int $a_user_id) | |
| share (int $a_obj_id, int $a_type, bool $a_writable=false) | |
| stopSharing (int $a_obj_id) | |
Static Public Member Functions | |
| static | deleteByCalendar (int $a_cal_id) | 
| static | deleteByUser (int $a_user_id) | 
| Delete all entries for a specific user.  More... | |
| static | isSharedWithUser (int $a_usr_id, int $a_calendar_id) | 
| is shared with user  More... | |
| static | getSharedCalendarsForUser (int $a_usr_id=0) | 
Data Fields | |
| const | TYPE_USR = 1 | 
| const | TYPE_ROLE = 2 | 
Protected Member Functions | |
| read () | |
Protected Attributes | |
| ilDBInterface | $db | 
| ilRbacReview | $rbacreview | 
Private Attributes | |
| int | $calendar_id | 
| array | $shared = array() | 
| array | $shared_users = array() | 
| array | $shared_roles = array() | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handles shared calendars
Definition at line 26 of file class.ilCalendarShared.php.
| ilCalendarShared::__construct | ( | int | $a_calendar_id | ) | 
      
  | 
  static | 
      
  | 
  static | 
Delete all entries for a specific user.
Definition at line 62 of file class.ilCalendarShared.php.
References $DIC, $ilDB, and $res.
| ilCalendarShared::getCalendarId | ( | ) | 
Definition at line 155 of file class.ilCalendarShared.php.
References $calendar_id.
Referenced by read(), share(), and stopSharing().
 Here is the caller graph for this function:| ilCalendarShared::getRoles | ( | ) | 
Definition at line 170 of file class.ilCalendarShared.php.
References $shared_roles.
| ilCalendarShared::getShared | ( | ) | 
Definition at line 160 of file class.ilCalendarShared.php.
References $shared.
      
  | 
  static | 
Definition at line 106 of file class.ilCalendarShared.php.
References $DIC, $ilDB, $res, $shared, ilCalendarCategories\_isOwner(), ilRbacReview\assignedRoles(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilCalendarSharedStatus\getOpenInvitations(), ilCalendarCategoryGUI\invitations(), and ilCalendarCategoryGUI\readPermissions().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilCalendarShared::getUsers | ( | ) | 
Definition at line 165 of file class.ilCalendarShared.php.
References $shared_users.
| ilCalendarShared::isEditableForUser | ( | int | $a_user_id | ) | 
Definition at line 180 of file class.ilCalendarShared.php.
Referenced by ilCalendarCategoryGUI\readPermissions().
 Here is the caller graph for this function:| ilCalendarShared::isShared | ( | int | $a_obj_id | ) | 
Definition at line 175 of file class.ilCalendarShared.php.
Referenced by share(), and stopSharing().
 Here is the caller graph for this function:
      
  | 
  static | 
is shared with user
Definition at line 74 of file class.ilCalendarShared.php.
References $DIC, $id, $ilDB, $res, ilRbacReview\assignedRoles(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilCalendarCategoryGUI\acceptShared(), ilCalendarCategoryGUI\declineShared(), and ilCalendarCategoryGUI\unshare().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 235 of file class.ilCalendarShared.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getCalendarId(), and ILIAS\Repository\int().
Referenced by __construct(), share(), and stopSharing().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilCalendarShared::share | ( | int | $a_obj_id, | 
| int | $a_type, | ||
| bool | $a_writable = false  | 
        ||
| ) | 
Definition at line 204 of file class.ilCalendarShared.php.
References $res, getCalendarId(), isShared(), and read().
 Here is the call graph for this function:| ilCalendarShared::stopSharing | ( | int | $a_obj_id | ) | 
Definition at line 222 of file class.ilCalendarShared.php.
References $res, ilCalendarSharedStatus\deleteStatus(), getCalendarId(), isShared(), and read().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 31 of file class.ilCalendarShared.php.
Referenced by getCalendarId().
      
  | 
  protected | 
Definition at line 37 of file class.ilCalendarShared.php.
      
  | 
  protected | 
Definition at line 38 of file class.ilCalendarShared.php.
      
  | 
  private | 
Definition at line 33 of file class.ilCalendarShared.php.
Referenced by getShared(), and getSharedCalendarsForUser().
      
  | 
  private | 
Definition at line 35 of file class.ilCalendarShared.php.
Referenced by getRoles().
      
  | 
  private | 
Definition at line 34 of file class.ilCalendarShared.php.
Referenced by getUsers().
| const ilCalendarShared::TYPE_ROLE = 2 | 
Definition at line 29 of file class.ilCalendarShared.php.
Referenced by ilCalendarSharedListTableGUI\parse(), and ilCalendarCategoryGUI\shareAssignRoles().
| const ilCalendarShared::TYPE_USR = 1 | 
Definition at line 28 of file class.ilCalendarShared.php.
Referenced by ilCalendarSharedListTableGUI\parse(), and ilCalendarCategoryGUI\shareAssign().