/** * Application form constructor. */ public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL) { parent::__construct(); if ($parent !== NULL) { $parent->addComponent($this, $name); } }
/** * Application form constructor. */ public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL) { parent::__construct(); $this->monitor('Nette\\Application\\UI\\Presenter'); if ($parent !== NULL) { $parent->addComponent($this, $name); } }
/** * @inheritDoc */ public function __construct($name) { parent::__construct($name); $this->onValidate[] = [$this, 'validateRedirectUri']; $this->setMethod('POST'); $this->addProtection('Security token has expired, please submit the form again'); $this->addText('name', 'Name of client:')->setMaxLength(255)->setRequired('Set a name'); $this->addTextArea('description', 'Description of client:', null, 5); $this->addTextArea('redirect_uri', 'Static/enforcing callback-url (one per line)', null, 5)->setRequired('Write one redirect URI at least'); $this->addSubmit('submit', 'Submit'); $this->addButton('return', 'Return')->setAttribute('onClick', 'parent.location = \'' . Module::getModuleURL('oauth2/registry.php') . '\''); }
/** * @param IRequest|null */ public function __construct(IRequest $httpRequest = NULL) { parent::__construct(); $this->httpRequest = $httpRequest; }