Current path: home/webdevt/cryptoimpot.fr/module/Application/src/Form/ImportationForm/
?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src/Form
<?php
namespace Application\Form\ImportationForm;
use Application\Form\Element\StatutCodeBoxRadio;
use Laminas\Form\Element\Button;
use Laminas\Form\Element\Csrf;
use Laminas\Form\Element\Text;
use Laminas\Form\Element\Textarea;
use Laminas\Form\Exception\InvalidArgumentException;
use Laminas\Form\Form;
class DeleteAllFileByExchangeForm extends Form {
public function __construct() {
parent::__construct('delete-all-file');
$this->setAttribute('method', 'post');
/* Code */
$element = new \Laminas\Form\Element\Hidden('exchange');
$this->add($element);
/* Csrf */
$element = new Csrf('csrf');
$this->add($element);
/* Submit */
$submitElement = new Button('submit');
$submitElement
->setLabel('Effacer')
->setAttributes(array(
'type' => 'submit',
'class' => 'btn btn-danger delete'
));
$this->add($submitElement, array(
'priority' => -100,
));
}
}