diff options
author | emkael <emkael@tlen.pl> | 2016-03-12 12:35:18 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-12 12:35:18 +0100 |
commit | 6096092a455fd640db18e57f54540e35ef51de97 (patch) | |
tree | dab6ec0d12a94813619d76890450a5b1dc211d59 | |
parent | 80ef4db9eac2a30810ea9516e3a33e370d34c5af (diff) |
* user preference in model
-rw-r--r-- | app/php/model/UserPreference.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/php/model/UserPreference.php b/app/php/model/UserPreference.php new file mode 100644 index 0000000..ff32529 --- /dev/null +++ b/app/php/model/UserPreference.php @@ -0,0 +1,21 @@ +<?php + +class UserPreference extends TActiveRecord { + + const TABLE = 'user_selections'; + + public $UserID; + public $CalendarID; + + public static $COLUMN_MAPPING = [ + '_user' => 'UserID', + '_calendar' => 'CalendarID' + ]; + + public static function finder($className=__CLASS__) { + return parent::finder($className); + } + +} + +?> |