Validation.php 887 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php namespace Config;
  2. class Validation
  3. {
  4. //--------------------------------------------------------------------
  5. // Setup
  6. //--------------------------------------------------------------------
  7. /**
  8. * Stores the classes that contain the
  9. * rules that are available.
  10. *
  11. * @var array
  12. */
  13. public $ruleSets = [
  14. \CodeIgniter\Validation\Rules::class,
  15. \CodeIgniter\Validation\FormatRules::class,
  16. \CodeIgniter\Validation\FileRules::class,
  17. \CodeIgniter\Validation\CreditCardRules::class,
  18. ];
  19. /**
  20. * Specifies the views that are used to display the
  21. * errors.
  22. *
  23. * @var array
  24. */
  25. public $templates = [
  26. 'list' => 'CodeIgniter\Validation\Views\list',
  27. 'single' => 'CodeIgniter\Validation\Views\single',
  28. ];
  29. //--------------------------------------------------------------------
  30. // Rules
  31. //--------------------------------------------------------------------
  32. }