You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
5 years ago
|
<?php
|
||
|
|
||
|
namespace app\models;
|
||
|
|
||
|
use Yii;
|
||
|
|
||
|
/**
|
||
|
* This is the model class for table "{{%home_block}}".
|
||
|
*
|
||
|
* @property integer $id
|
||
|
* @property integer $store_id
|
||
|
* @property string $name
|
||
|
* @property string $data
|
||
|
* @property integer $addtime
|
||
|
* @property integer $is_delete
|
||
|
* @property integer $style
|
||
|
*/
|
||
|
class HomeBlock extends \yii\db\ActiveRecord
|
||
|
{
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public static function tableName()
|
||
|
{
|
||
|
return '{{%home_block}}';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function rules()
|
||
|
{
|
||
|
return [
|
||
|
[['store_id', 'name'], 'required'],
|
||
|
[['store_id', 'addtime', 'is_delete', 'style'], 'integer'],
|
||
|
[['data'], 'string'],
|
||
|
[['name'], 'string', 'max' => 255],
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function attributeLabels()
|
||
|
{
|
||
|
return [
|
||
|
'id' => 'ID',
|
||
|
'store_id' => 'Store ID',
|
||
|
'name' => 'Name',
|
||
|
'data' => 'Data',
|
||
|
'addtime' => 'Addtime',
|
||
|
'is_delete' => 'Is Delete',
|
||
|
'style' => '板块样式 0--默认样式 1--样式一 2--样式二 。。。',
|
||
|
];
|
||
|
}
|
||
|
}
|