public function __construct($persistentValue = NULL)
{
parent::__construct();
$this->control->type = 'hidden';
$this->setOption('type', 'hidden');
if ($persistentValue !== NULL) {
$this->unmonitor(Nette\Forms\Form::class);
$this->persistValue = TRUE;
$this->value = (string) $persistentValue;
}
}
/** * @param string * @param int */ public function __construct($message) { parent::__construct(); $this->setOmitted()->addRule(self::PROTECTION, $message); $this->monitor('Nette\\Application\\UI\\Presenter'); }