__construct() public method

public __construct ( $persistentValue = NULL )
Example #1
0
 /**
  * @param string
  * @param int
  */
 public function __construct($message)
 {
     parent::__construct();
     $this->setOmitted()->addRule(self::PROTECTION, $message);
     $this->monitor('Nette\\Application\\UI\\Presenter');
 }
Example #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);
 }
Example #3
0
 /**
  * @param CaptchaProvider $provider
  */
 public function __construct(CaptchaProvider $provider)
 {
     parent::__construct($provider->getHash());
     $this->provider = $provider;
 }
Example #4
0
 /**
  * @param string|null $caption
  */
 public function __construct($caption = null)
 {
     parent::__construct($caption);
     $this->monitor('Nette\\Application\\UI\\Presenter');
     $this->setOmitted(true);
 }