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
 public function toArray()
 {
     $res = parent::toArray();
     $res['value'] = $this->getValue();
     return $res;
 }
Exemplo n.º 3
0
 /**
  * AbstractBlock constructor.
  *
  * @param string $name
  * @param string $title
  */
 public function __construct($name, $title = '')
 {
     parent::__construct($name, $title);
 }