TimestampBehavior::class, ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['is_delete', 'store_id', 'type', 'sort'], 'integer'], [['content'], 'string'], [['title'], 'string', 'max' => 255], [['url', 'pic_url'], 'string', 'max' => 2048], ['is_delete', 'default', 'value' => 0] ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'title' => '标题', 'url' => 'Url', 'sort' => '排序 升序', 'is_delete' => 'Is Delete', 'store_id' => '商城id', 'pic_url' => 'Pic Url', 'content' => '详情介绍', 'type' => '视频来源 0--源地址 1--腾讯视频', ]; } }