Exemplo n.º 1
0
 /**
  * Handler constructor.
  * @param FormInterface $form
  * @param callable|\Closure $process
  * @param string $name
  * @param string $value
  */
 function __construct(FormInterface $form, $process, $name = 'abstractHandler', $value = 'Абстрактное действие')
 {
     parent::__construct($name, $value);
     $this->setParent($form);
     $this->attribute('type', 'submit');
     $this->attribute('value', $value);
     $this->attribute('id', $name);
     $this->setProcess($process);
 }
Exemplo n.º 2
0
 /**
  * AbstractField constructor.
  * @param string $name
  * @param mixed $value
  * @param string $title
  */
 public function __construct($name, $value, $title = '')
 {
     parent::__construct($name, $title);
     $this->setValue($value);
     $this->validators = new ObjectList(['NewInventor\\Form\\Validator\\ValidatorInterface']);
 }
Exemplo n.º 3
0
 /**
  * AbstractBlock constructor.
  *
  * @param string $name
  * @param string $title
  */
 public function __construct($name, $title = '')
 {
     parent::__construct($name, $title);
 }