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.

36 lines
597B

  1. <?php
  2. namespace backend\forms;
  3. use yii\base\Model;
  4. /**
  5. * UploadForm is the model behind the upload form.
  6. */
  7. class ReportPaymentsForm extends Model
  8. {
  9. var $date_start;
  10. var $date_end;
  11. /**
  12. * @return array the validation rules.
  13. */
  14. public function rules()
  15. {
  16. return [
  17. [['date_start', 'date_end'], 'required'],
  18. [['date_start', 'date_end'], 'safe'],
  19. ];
  20. }
  21. public function attributeLabels()
  22. {
  23. return [
  24. 'date_start' => "Date de début",
  25. 'date_end' => "Date de fin"
  26. ];
  27. }
  28. }
  29. ?>