summaryrefslogtreecommitdiff
path: root/app/php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php')
-rw-r--r--app/php/model/Calendar.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/php/model/Calendar.php b/app/php/model/Calendar.php
index 4edf2a2..9de4920 100644
--- a/app/php/model/Calendar.php
+++ b/app/php/model/Calendar.php
@@ -82,6 +82,11 @@ class Calendar extends ActiveRecord {
return $hash;
}
+ public function saveData($data) {
+ $this->copyFrom($data);
+ return $this->save();
+ }
+
}
?>