2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
class Validation
|
|
|
|
{
|
2020-06-10 15:00:12 +00:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
// Setup
|
|
|
|
//--------------------------------------------------------------------
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* Stores the classes that contain the
|
|
|
|
* rules that are available.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $ruleSets = [
|
|
|
|
\CodeIgniter\Validation\Rules::class,
|
|
|
|
\CodeIgniter\Validation\FormatRules::class,
|
|
|
|
\CodeIgniter\Validation\CreditCardRules::class,
|
2020-08-18 16:31:28 +00:00
|
|
|
\App\Validation\Rules::class,
|
2020-09-08 11:45:17 +00:00
|
|
|
\App\Validation\FileRules::class,
|
2020-07-10 12:20:25 +00:00
|
|
|
\Myth\Auth\Authentication\Passwords\ValidationRules::class,
|
2020-06-10 15:00:12 +00:00
|
|
|
];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* Specifies the views that are used to display the
|
|
|
|
* errors.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $templates = [
|
|
|
|
'list' => 'CodeIgniter\Validation\Views\list',
|
|
|
|
'single' => 'CodeIgniter\Validation\Views\single',
|
|
|
|
];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
// Rules
|
|
|
|
//--------------------------------------------------------------------
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|