| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "xhPictureCategory".
- *
- * @property integer $id
- * @property integer $merchantId
- * @property string $name
- * @property integer $type
- */
- class XhPictureCategory extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhPictureCategory';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'type'], 'integer'],
- [['name'], 'string', 'max' => 20],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'merchantId' => 'Merchant ID',
- 'name' => 'Name',
- 'type' => 'Type',
- ];
- }
- }
|