diff options
Diffstat (limited to 'apps/calendar/lib/share.php')
-rw-r--r-- | apps/calendar/lib/share.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/calendar/lib/share.php b/apps/calendar/lib/share.php index 16c10589671..8f91be97474 100644 --- a/apps/calendar/lib/share.php +++ b/apps/calendar/lib/share.php @@ -247,4 +247,13 @@ class OC_Calendar_Share{ } return $return; } + + /* + * @brief sets the active status of the calendar + * @param (string) $ + */ + public static function set_active($share, $id, $active){ + $stmt = OC_DB::prepare('UPDATE *PREFIX*calendar_share_calendar SET active = ? WHERE share = ? AND sharetype = "user" AND calendarid = ?'); + $stmt->execute(array($active, $share, $id)); + } }
\ No newline at end of file |