Example #1
0
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), [self::SCENARIO_UPDATE => ['title', 'img', 'text']]);
 }
Example #2
0
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), [self::SCENARIO_CREATE => ['title', 'image', 'discount', 'parent_id', 'icon', 'icon_hover', 'active'], self::SCENARIO_UPDATE => ['title', 'image', 'discount', 'parent_id', 'icon', 'icon_hover', 'active']]);
 }
Example #3
0
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), ['new_user' => ['username', 'email', 'password'], 'new_social_user' => ['social_id', 'social_service']]);
 }
Example #4
0
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), [self::SCENARIO_CREATE => ['active', 'brand_id', 'full_description', 'short_description', 'category_id', 'title', 'ui', 'main_photo'], self::SCENARIO_UPDATE => ['active', 'brand_id', 'full_description', 'short_description', 'category_id', 'title', 'ui', 'main_photo']]);
 }