forked from unitfactoryAlumni/cheatera.pp.ua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP][unitfactoryAlumni#66] Update behaviour setted right, CursusUser…
…s is now inserting
- Loading branch information
vbrazas
committed
Apr 6, 2019
1 parent
56b78a3
commit d610684
Showing
5 changed files
with
152 additions
and
2,842 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php | ||
|
||
namespace app\models; | ||
|
||
use Yii; | ||
|
||
/** | ||
* This is the model class for table "cursus_users". | ||
* | ||
* @property int $id | ||
* @property string $xlogin | ||
* @property int $cursus_id | ||
* @property string $begin_at | ||
* @property string $created_at | ||
* @property string $name | ||
* @property string $slug | ||
* @property string $end_at | ||
* @property string $grade | ||
* @property string $has_coalition | ||
* @property int $cursus_users_id | ||
* @property double $level | ||
* @property int $xid | ||
*/ | ||
class CursusUsers extends \yii\db\ActiveRecord | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public static function tableName() | ||
{ | ||
return 'cursus_users'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function rules() | ||
{ | ||
return [ | ||
[['cursus_id', 'cursus_users_id', 'xid'], 'integer'], | ||
[['begin_at'], 'safe'], | ||
[['created_at', 'end_at'], 'string'], | ||
[['level'], 'number'], | ||
[['xlogin', 'has_coalition'], 'string', 'max' => 12], | ||
[['name', 'slug', 'grade'], 'string', 'max' => 255], | ||
]; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function attributeLabels() | ||
{ | ||
return [ | ||
'id' => Yii::t('app', 'ID'), | ||
'xlogin' => Yii::t('app', 'Xlogin'), | ||
'cursus_id' => Yii::t('app', 'Cursus ID'), | ||
'begin_at' => Yii::t('app', 'Begin At'), | ||
'created_at' => Yii::t('app', 'Created At'), | ||
'name' => Yii::t('app', 'Name'), | ||
'slug' => Yii::t('app', 'Slug'), | ||
'end_at' => Yii::t('app', 'End At'), | ||
'grade' => Yii::t('app', 'Grade'), | ||
'has_coalition' => Yii::t('app', 'Has Coalition'), | ||
'cursus_users_id' => Yii::t('app', 'Cursus Users ID'), | ||
'level' => Yii::t('app', 'Level'), | ||
'xid' => Yii::t('app', 'Xid'), | ||
]; | ||
} | ||
} |
Oops, something went wrong.