diff options
author | emkael <emkael@tlen.pl> | 2016-04-06 11:34:07 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-06 11:34:07 +0200 |
commit | 9d2cf5532b05d04a552df7327bbc657874b09f7b (patch) | |
tree | 4f8a9807a20ddfd6b5a0fdc3f4ffb8bc475e7b8a /app/php/model/Calendar.php | |
parent | ea7924464b41d6754864f4dd08121db6c7eec0b1 (diff) |
* update method for Calendar model
Diffstat (limited to 'app/php/model/Calendar.php')
-rw-r--r-- | app/php/model/Calendar.php | 5 |
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(); + } + } ?> |