| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhTrainCourse".
- *
- * @property integer $id
- * @property integer $classId
- * @property string $name
- * @property string $intro
- * @property integer $merchantId
- * @property integer $hidden
- */
- class xhTrainCourse extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhTrainCourse';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['classId', 'merchantId', 'hidden'], 'integer'],
- [['name'], 'string', 'max' => 20],
- [['intro'], 'string', 'max' => 1000],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'classId' => 'Class ID',
- 'name' => 'Name',
- 'intro' => 'Intro',
- 'merchantId' => 'Merchant ID',
- 'hidden' => 'Hidden',
- ];
- }
- }
|