From 9d2cf5532b05d04a552df7327bbc657874b09f7b Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 6 Apr 2016 11:34:07 +0200 Subject: * update method for Calendar model --- app/php/model/Calendar.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/php') 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(); + } + } ?> -- cgit v1.2.3