?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/src/InputFilter/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src

?? Viewing: ExchangeLinkerInputFilter.php

<?php

namespace Application\InputFilter;

use Laminas\InputFilter\Input;
use Laminas\InputFilter\FileInput;
use Laminas\InputFilter\InputFilter;
use Laminas\Validator\Regex;
use Laminas\Validator\File\Size;

class ExchangeLinkerInputFilter extends InputFilter {

    public function __construct() {

        /* Exchanges */
        $this->add(array(
            'name' => 'exchanges_id',
            'required' => false,
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim'),
            ),
//            'validators' => array(
//                array(
//                    'name' => 'NotEmpty',
//                    'options' => array(
//                        'messages' => array(
//                            \Laminas\Validator\NotEmpty::IS_EMPTY => 'Le nom est obligatoire',
//                            \Laminas\Validator\NotEmpty::INVALID => 'Le nom est obligatoire.'
//                        ),
//                    ),
//                    'break_chain_on_failure' => true
//                ),
//                array(
//                    'name' => 'StringLength',
//                    'options' => array(
//                        'encoding' => 'UTF-8',
//                        'min' => 1,
//                        'max' => 128,
//                        'messages' => array(
//                            \Laminas\Validator\StringLength::INVALID => 'Le nom doit comporter entre %min% et %max% caractère' . (('%max%' > 1) ? 's' : ''),
//                            \Laminas\Validator\StringLength::TOO_SHORT => 'Le nom doit comporter au moins %min% caractère' . (('%min%' > 1) ? 's' : ''),
//                            \Laminas\Validator\StringLength::TOO_LONG => 'Le nom doit comporter au maximum %max% caractère' . (('%max%' > 1) ? 's' : ''),
//                        ),
//                    ),
//                    'break_chain_on_failure' => true
//                ),
//            ),
        ));


        
    }

}


??

??