mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 09:59:08 -04:00
- add missing files - overwrite changed files - merge code changes - Matched .htaccess file in /public/ to CI4 - Corrected naming of Error language file to Errors - Refactored references to Error language file
48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
use CodeIgniter\Validation\StrictRules\CreditCardRules;
|
|
use CodeIgniter\Validation\StrictRules\FileRules;
|
|
use CodeIgniter\Validation\StrictRules\FormatRules;
|
|
use CodeIgniter\Validation\StrictRules\Rules;
|
|
use App\Libraries\MY_Validation;
|
|
|
|
|
|
class Validation extends BaseConfig
|
|
{
|
|
// --------------------------------------------------------------------
|
|
// Setup
|
|
// --------------------------------------------------------------------
|
|
|
|
/**
|
|
* Stores the classes that contain the
|
|
* rules that are available.
|
|
*
|
|
* @var string[]
|
|
*/
|
|
public array $ruleSets = [
|
|
Rules::class,
|
|
FormatRules::class,
|
|
FileRules::class,
|
|
CreditCardRules::class,
|
|
MY_Validation::class
|
|
];
|
|
|
|
/**
|
|
* Specifies the views that are used to display the
|
|
* errors.
|
|
*
|
|
* @var array<string, string>
|
|
*/
|
|
public array $templates = [
|
|
'list' => 'CodeIgniter\Validation\Views\list',
|
|
'single' => 'CodeIgniter\Validation\Views\single',
|
|
];
|
|
|
|
// --------------------------------------------------------------------
|
|
// Rules
|
|
// --------------------------------------------------------------------
|
|
}
|