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