Allow to edit calendar comments
[infodrom.org/service.infodrom.org] / class / calendar_item_log.class.php
diff --git a/class/calendar_item_log.class.php b/class/calendar_item_log.class.php
new file mode 100644 (file)
index 0000000..4d361b2
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+class Calendar_Item_Log extends DatabaseTable {
+
+  public function __construct($id=false)
+  {
+    $db = new Database(DBDRIVER, DBHOST, DAV_DBNAME, DBUSER, DBPASS);
+
+    parent::__construct('calendar_item_log', $id, $db);
+  }
+
+  public function ajaxEditComment(Array $data)
+  {
+      return $this->modify('comment', utf8_decode($data['content']));
+  }
+}