mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
127 lines
3.5 KiB
PHP
Executable File
127 lines
3.5 KiB
PHP
Executable File
<?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;
|
|
|
|
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,
|
|
];
|
|
|
|
/**
|
|
* 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',
|
|
'bootstrap_style' => 'themes/_commonPartialsBs/_form_validation_errors',
|
|
];
|
|
|
|
// --------------------------------------------------------------------
|
|
// Rules
|
|
// --------------------------------------------------------------------
|
|
|
|
/**========================================================================
|
|
* TARIFA MAQUINA ACABADO
|
|
*========================================================================**/
|
|
public array $tarifa_maquina_acabado =
|
|
[
|
|
"tarifa_acabado_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarifa acabado",
|
|
],
|
|
"maquina_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "maquina",
|
|
],
|
|
"maquina_tarea_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarea",
|
|
],
|
|
];
|
|
public array $tarifa_maquina_manipulado =
|
|
[
|
|
"tarifa_manipulado_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarifa acabado",
|
|
],
|
|
"maquina_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "maquina",
|
|
],
|
|
"maquina_tarea_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarea",
|
|
],
|
|
];
|
|
public array $tarifa_maquina_preimpresion =
|
|
[
|
|
"tarifa_preimpresion_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarifa acabado",
|
|
],
|
|
"maquina_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "maquina",
|
|
],
|
|
"maquina_tarea_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarea",
|
|
],
|
|
];
|
|
public array $tarifa_maquina_encuadernacion =
|
|
[
|
|
"tarifa_encuadernacion_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarifa acabado",
|
|
],
|
|
"maquina_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "maquina",
|
|
],
|
|
"maquina_tarea_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarea",
|
|
],
|
|
];
|
|
public array $tarifa_maquina_extra =
|
|
[
|
|
"tarifa_extra_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarifa acabado",
|
|
],
|
|
"maquina_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "maquina",
|
|
],
|
|
"maquina_tarea_id" => [
|
|
"rules" => "required|integer",
|
|
"label" => "tarea",
|
|
],
|
|
];
|
|
|
|
|
|
}
|