Example #1
0
 public function rules()
 {
     return [[['status'], 'integer'], [['created_at'], DateRangeValidator::className()], [['email'], 'email'], [['username', 'first_name', 'last_name'], 'safe']];
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['id', 'user_id'], 'integer'], [['created_at'], DateRangeValidator::className()], [['module', 'model', 'action', 'data', 'icon'], 'safe']];
 }
Example #3
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['id', 'category_id', 'status'], 'integer'], [['title'], 'string'], [['date'], DateRangeValidator::className()]];
 }