summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-18 11:50:12 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-18 11:50:12 +0200
commitde7184288816e4d542985eb4d6a7dc33c77fb4ff (patch)
tree23c00efb920b0e2dfe66ceedb6bb561688d5a863 /apps/calendar/lib
parent8959e0af3def5bae8ca7d5cf8edc225f29a1162a (diff)
downloadnextcloud-server-de7184288816e4d542985eb4d6a7dc33c77fb4ff.tar.gz
nextcloud-server-de7184288816e4d542985eb4d6a7dc33c77fb4ff.zip
implement shared calendar activation on server side
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r--apps/calendar/lib/share.php9
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