255], [['option'], 'string'], ]; } public function behaviors() { return [ [ 'class' => TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => '分类ID', 'name' => '分类名称', 'is_delete' => 'Is Delete', 'is_enable' => '状态', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'option' => '筛选配置', 'sort' => '排序', 'icon' => '图标', ]; } }