2022-03-14 19:13:10 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
|
|
|
|
2024-04-07 22:17:30 +02:00
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
use CodeIgniter\Validation\StrictRules\CreditCardRules;
|
|
|
|
use CodeIgniter\Validation\StrictRules\FileRules;
|
|
|
|
use CodeIgniter\Validation\StrictRules\FormatRules;
|
|
|
|
use CodeIgniter\Validation\StrictRules\Rules;
|
2022-03-14 19:13:10 +01:00
|
|
|
|
2024-04-07 22:17:30 +02:00
|
|
|
class Validation extends BaseConfig
|
2022-03-14 19:13:10 +01:00
|
|
|
{
|
2024-04-07 22:17:30 +02:00
|
|
|
// --------------------------------------------------------------------
|
2022-03-14 19:13:10 +01:00
|
|
|
// Setup
|
2024-04-07 22:17:30 +02:00
|
|
|
// --------------------------------------------------------------------
|
2022-03-14 19:13:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Stores the classes that contain the
|
|
|
|
* rules that are available.
|
|
|
|
*
|
2024-04-07 22:17:30 +02:00
|
|
|
* @var list<string>
|
2022-03-14 19:13:10 +01:00
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public array $ruleSets = [
|
2022-03-14 19:13:10 +01:00
|
|
|
Rules::class,
|
|
|
|
FormatRules::class,
|
|
|
|
FileRules::class,
|
|
|
|
CreditCardRules::class,
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Specifies the views that are used to display the
|
|
|
|
* errors.
|
|
|
|
*
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
2024-04-07 22:17:30 +02:00
|
|
|
public array $templates = [
|
2022-03-14 19:13:10 +01:00
|
|
|
'list' => 'CodeIgniter\Validation\Views\list',
|
|
|
|
'single' => 'CodeIgniter\Validation\Views\single',
|
|
|
|
];
|
|
|
|
|
2024-04-07 22:17:30 +02:00
|
|
|
// --------------------------------------------------------------------
|
2022-03-14 19:13:10 +01:00
|
|
|
// Rules
|
2024-04-07 22:17:30 +02:00
|
|
|
// --------------------------------------------------------------------
|
2022-03-14 19:13:10 +01:00
|
|
|
}
|