__construct() публичный Метод

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