/** * @param \Nette\ComponentModel\IContainer $ajaxDir * @param null $ajaxPath * @param SessionSection $sessionSection */ public function __construct($ajaxDir, $ajaxPath, SessionSection $sessionSection) { parent::__construct(); $this->ajaxDir = $ajaxDir; $this->ajaxPath = $ajaxPath; $this->sessionSection = $sessionSection; }
/** * @param SessionSection $sessionSection * @param ProductfrontFormFactory $formFactory * @param ItemRepository $productRepository */ public function __construct(SessionSection $sessionSection, ProductfrontFormFactory $formFactory, ItemRepository $productRepository) { parent::__construct(); $this->sessionSection = $sessionSection; $this->formFactory = $formFactory; $this->productRepository = $productRepository; }
protected function startup() { parent::startup(); $this->websiteName = $this->websiteManager->name; $this->titleTemplate = $this->websiteManager->title; $this->titleSeparator = $this->websiteManager->titleSeparator; $this->author = $this->websiteManager->author; $this->keywords = $this->websiteManager->keywords; $this->description = $this->websiteManager->description; $this->robots = $this->websiteManager->robots; }
/** * @param string $userType * @param string $mode * @param string $loginProviderMode * @param string|array $roles * @param string $emailSender * @param string $emailFrom * @param string $emailSubject * @param string $emailText */ public function __construct($userType, $mode, $loginProviderMode, $roles, $emailSender, $emailFrom, $emailSubject, $emailText) { parent::__construct(); $this->loginProviderMode = $loginProviderMode; $this->mode = $mode; $this->roles = $roles; $this->userType = $userType; $this->emailSender = $emailSender; $this->emailFrom = $emailFrom; $this->emailSubject = $emailSubject; $this->emailText = $emailText; }
/** * @param RouteRepository $routeRepository * @param WebsiteManager $websiteManager */ public function __construct(RouteRepository $routeRepository, WebsiteManager $websiteManager) { parent::__construct(); $this->routeRepository = $routeRepository; $this->websiteManager = $websiteManager; }
/** * @param WebsiteManager $websiteManager * @param PageRepository $pageRepository */ public function __construct(WebsiteManager $websiteManager, PageRepository $pageRepository) { parent::__construct(); $this->websiteManager = $websiteManager; $this->pageRepository = $pageRepository; }
public function startup() { parent::startup(); if ($this->reset && !$this->emailFrom) { throw new BadRequestException(); } if ($this->emailFrom) { $this->template->forgotPassword = TRUE; } }
public function __call($name, $args) { if ($name === 'render') { if (isset($args[0]['mode'])) { $this->defaultMode = $args[0]['mode']; } if (isset($args[0]['langMode'])) { $this->defaultLangMode = $args[0]['langMode']; } if (isset($args[0]['defaults'])) { $this->defaults = (array) $args[0]['defaults']; } $c = TRUE; try { $this->getExtendedElement(); } catch (InvalidStateException $e) { $c = FALSE; echo $this['elementError']->render($this->name); } if (!$c) { return; } } return parent::__call($name, $args); }
/** * @param MailformEntity $mailformEntity * @param MailformfrontFormFactory $formFactory */ public function __construct(MailformEntity $mailformEntity, MailformfrontFormFactory $formFactory) { parent::__construct(); $this->mailformEntity = $mailformEntity; $this->formFactory = $formFactory; }
/** * Loads state informations. * * @param array * @return void */ public function loadState(array $params) { parent::loadState($params); $this->getPaginator()->page = $this->page; }
protected function attached($presenter) { parent::attached($presenter); if ($this->root && !$this->key) { $this->key = $this->root->getId(); } if (!$this->checkCurrentDir()) { throw new BadRequestException(); } }
/** * @param Request $httpRequest */ public function __construct(Request $httpRequest) { parent::__construct(); $this->httpRequest = $httpRequest; }
/** * @param \Nette\Http\SessionSection $sessionSection * @param ItemRepository $productRepository */ public function __construct(\Nette\Http\SessionSection $sessionSection, ItemRepository $productRepository) { parent::__construct(); $this->sessionSection = $sessionSection; $this->productRepository = $productRepository; }
public function __construct(LanguageRepository $languageRepository) { parent::__construct(); $this->languageRepository = $languageRepository; }
/** * @param DomainRepository $domainRepository */ public function __construct(DomainRepository $domainRepository) { parent::__construct(); $this->domainRepository = $domainRepository; }
/** * @param TagRepository $tagRepository */ public function __construct(TagRepository $tagRepository) { parent::__construct(); $this->tagRepository = $tagRepository; }