Example #1
0
 /**
  * @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;
 }
Example #2
0
 /**
  * @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;
 }
Example #3
0
 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;
 }
Example #4
0
 /**
  * @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;
 }
Example #5
0
 /**
  * @param RouteRepository $routeRepository
  * @param WebsiteManager $websiteManager
  */
 public function __construct(RouteRepository $routeRepository, WebsiteManager $websiteManager)
 {
     parent::__construct();
     $this->routeRepository = $routeRepository;
     $this->websiteManager = $websiteManager;
 }
Example #6
0
 /**
  * @param WebsiteManager $websiteManager
  * @param PageRepository $pageRepository
  */
 public function __construct(WebsiteManager $websiteManager, PageRepository $pageRepository)
 {
     parent::__construct();
     $this->websiteManager = $websiteManager;
     $this->pageRepository = $pageRepository;
 }
Example #7
0
 public function startup()
 {
     parent::startup();
     if ($this->reset && !$this->emailFrom) {
         throw new BadRequestException();
     }
     if ($this->emailFrom) {
         $this->template->forgotPassword = TRUE;
     }
 }
Example #8
0
 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);
 }
Example #9
0
 /**
  * @param MailformEntity $mailformEntity
  * @param MailformfrontFormFactory $formFactory
  */
 public function __construct(MailformEntity $mailformEntity, MailformfrontFormFactory $formFactory)
 {
     parent::__construct();
     $this->mailformEntity = $mailformEntity;
     $this->formFactory = $formFactory;
 }
Example #10
0
 /**
  * Loads state informations.
  *
  * @param  array
  * @return void
  */
 public function loadState(array $params)
 {
     parent::loadState($params);
     $this->getPaginator()->page = $this->page;
 }
Example #11
0
 protected function attached($presenter)
 {
     parent::attached($presenter);
     if ($this->root && !$this->key) {
         $this->key = $this->root->getId();
     }
     if (!$this->checkCurrentDir()) {
         throw new BadRequestException();
     }
 }
Example #12
0
 /**
  * @param Request $httpRequest
  */
 public function __construct(Request $httpRequest)
 {
     parent::__construct();
     $this->httpRequest = $httpRequest;
 }
Example #13
0
 /**
  * @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;
 }
Example #14
0
 public function __construct(LanguageRepository $languageRepository)
 {
     parent::__construct();
     $this->languageRepository = $languageRepository;
 }
Example #15
0
 /**
  * @param DomainRepository $domainRepository
  */
 public function __construct(DomainRepository $domainRepository)
 {
     parent::__construct();
     $this->domainRepository = $domainRepository;
 }
Example #16
0
 /**
  * @param TagRepository $tagRepository
  */
 public function __construct(TagRepository $tagRepository)
 {
     parent::__construct();
     $this->tagRepository = $tagRepository;
 }