?? GreyFile — Mystic File Browser

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



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

?? Viewing: DeleteAllFileByExchangeFormInputFilter.php

<?php

namespace Application\InputFilter\ImportationForm;

class DeleteAllFileByExchangeFormInputFilter extends \Laminas\InputFilter\InputFilter {

    public function __construct() {




        $this->add(array(
            'name' => 'exchange',
            'required' => true,
            '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
                ),
            ),
        ));


        /* Csrf */
        $this->add(array(
            'name' => 'csrf',
            'validators' => array(
                array(
                    'name' => 'Csrf',
                    'options' => array(
                        'csrf_options' => array(
                            'timeout' => 600
                        ),
                        'messages' => array(
                            \Laminas\Validator\Csrf::NOT_SAME => 'Veuillez soumettre à nouveau le formulaire.',
                        ),
                    ),
                ),
            ),
        ));
        /* ./ Csrf */
    }

}


??

??