| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhCategory".
- *
- * @property string $id
- * @property integer $parentId
- * @property integer $merchantId
- * @property string $categoryName
- * @property string $showName
- * @property string $description
- * @property string $cover
- * @property integer $inTurn
- * @property integer $classify
- * @property integer $isShow
- */
- class xhCategory extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhCategory';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['parentId', 'merchantId', 'inTurn', 'classify', 'isShow'], 'integer'],
- [['categoryName'], 'string', 'max' => 50],
- [['showName'], 'string', 'max' => 200],
- [['description', 'cover'], 'string', 'max' => 500]
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'parentId' => 'Parent ID',
- 'merchantId' => 'Merchant ID',
- 'categoryName' => 'Category Name',
- 'showName' => 'Show Name',
- 'description' => 'Description',
- 'cover' => 'Cover',
- 'inTurn' => 'In Turn',
- 'classify' => 'Classify',
- 'isShow' => 'Is Show',
- ];
- }
- }
|