summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-06 11:34:07 +0200
committeremkael <emkael@tlen.pl>2016-04-06 11:34:07 +0200
commit9d2cf5532b05d04a552df7327bbc657874b09f7b (patch)
tree4f8a9807a20ddfd6b5a0fdc3f4ffb8bc475e7b8a /app
parentea7924464b41d6754864f4dd08121db6c7eec0b1 (diff)
* update method for Calendar model
Diffstat (limited to 'app')
-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();
+ }
+
}
?>