__construct() public method

public __construct ( $persistentValue = NULL )
Exemplo n.º 1
0
 /**
  * @param string
  * @param int
  */
 public function __construct($message)
 {
     parent::__construct();
     $this->setOmitted()->addRule(self::PROTECTION, $message);
     $this->monitor('Nette\\Application\\UI\\Presenter');
 }
Exemplo n.º 2
0
 /**
  * @param string
  * @param int
  */
 public function __construct($message)
 {
     parent::__construct();
     $this->setOmitted()->setRequired()->addRule(self::PROTECTION, $message);
     $this->monitor(Nette\Application\UI\Presenter::class);
 }
Exemplo n.º 3
0
 /**
  * @param CaptchaProvider $provider
  */
 public function __construct(CaptchaProvider $provider)
 {
     parent::__construct($provider->getHash());
     $this->provider = $provider;
 }
Exemplo n.º 4
0
 /**
  * @param string|null $caption
  */
 public function __construct($caption = null)
 {
     parent::__construct($caption);
     $this->monitor('Nette\\Application\\UI\\Presenter');
     $this->setOmitted(true);
 }