public function __construct(EntityDao $commentDao, User $user, IChatControlFactory $chatControlFactory) { parent::__construct(); $this->commentDao = $commentDao; $this->user = $user; $this->chatControlFactory = $chatControlFactory; }
/** * @param \Nette\ComponentModel\IContainer $ajaxDir * @param string $ajaxPath * @param \Nette\Http\Session $session */ public function __construct($ajaxDir, $ajaxPath, Session $session) { parent::__construct(); $this->ajaxDir = $ajaxDir; $this->ajaxPath = $ajaxPath; $this->sessionSection = $session->getSection('ajaxUploader-' . $this->getName()); }
/** * @param integer $id * @param \Doctrine\ORM\EntityManager $entityManager * @param \Nette\Security\User $user * @param \Venne\DataTransfer\DataTransferManager $dataTransferManager */ public function __construct($id, EntityManager $entityManager, User $user, DataTransferManager $dataTransferManager) { parent::__construct(); $this->id = $id; $this->jobRepository = $entityManager->getRepository(Job::class); $this->user = $user; $this->dataTransferManager = $dataTransferManager; }
public function __construct(EntityManager $entityManager, NotificationManager $notificationManager, INotificationControlFactory $notificationControlFactory, DataTransferManager $dataTransferManager) { parent::__construct(); $this->notificationUserRepository = $entityManager->getRepository(NotificationUser::class); $this->notificationManager = $notificationManager; $this->notificationControlFactory = $notificationControlFactory; $this->dataTransferManager = $dataTransferManager; }
public function __construct(EntityManager $entityManager, Session $session, IBrowserControlFactory $browserFactory) { parent::__construct(); $this->entityManager = $entityManager; $this->fileRepository = $entityManager->getRepository(File::class); $this->dirRepository = $entityManager->getRepository(Dir::class); $this->session = $session->getSection('Venne.Content.filesSide'); $this->browserFactory = $browserFactory; }
public function __construct(EntityDao $commentDao, CommentFormFactory $commentFormFactory, FormFactoryFactory $formFactoryFactory, ICommentControlFactory $commentsControlFactory, Session $session) { parent::__construct(); $this->commentDao = $commentDao; $this->commentFormFactory = $commentFormFactory; $this->formFactoryFactory = $formFactoryFactory; $this->commentControlFactory = $commentsControlFactory; $this->session = $session; }
/** * @param boolean $invitaions * @param string $userType * @param string $mode * @param string $loginProviderMode * @param string[] $roles */ public function __construct($invitaions, $userType, $mode, $loginProviderMode, $roles) { parent::__construct(); $this->invitaions = $invitaions; $this->loginProviderMode = $loginProviderMode; $this->mode = $mode; $this->roles = $roles; $this->userType = $userType; }
/** * @param \Nette\ComponentModel\IContainer $presenter */ protected function attached($presenter) { parent::attached($presenter); $this->onAttached($this); if ($this->presenter->getParameter('do') === null) { $this->redrawControl('table'); $this->redrawControl('navbar'); $this->redrawControl('breadcrumb'); } }
/** * @param integer $id * @param \Doctrine\ORM\EntityManager $entityManager * @param \Venne\Notifications\NotificationManager $notificationManager * @param \Nette\Security\User $user * @param \Venne\DataTransfer\DataTransferManager $dataTransferManager */ public function __construct($id, EntityManager $entityManager, NotificationManager $notificationManager, User $user, DataTransferManager $dataTransferManager) { parent::__construct(); $this->id = $id; $this->entityManager = $entityManager; $this->notificationUserRepository = $entityManager->getRepository(NotificationUser::class); $this->user = $user; $this->notificationManager = $notificationManager; $this->dataTransferManager = $dataTransferManager; }
/** * @param \Kdyby\Doctrine\EntityDao $commentDao * @param \Nette\Security\User $user */ public function __construct(EntityDao $commentDao, User $user) { parent::__construct(); $this->commentDao = $commentDao; $this->user = $user; }
public function saveState(array &$params, $reflection = null) { parent::saveState($params, $reflection); if ($this->dir !== null) { $params['dirId'] = $this->dir->getId(); } if ($this->file !== null) { $params['fileId'] = $this->file->getId(); } }
public function render() { $this->template->administrationManager = $this->administrationManager; parent::render(); }
public function loadState(array $params) { parent::loadState($params); if (isset($params['key'])) { $this->resetUser = $this->userRepository->findOneBy(array('resetKey' => $params['key'])); if ($this->resetUser === null) { $this->onError($this, new ResetKeyNotFoundException()); } } }
/** * @param mixed[] $params */ public function saveState(array &$params, $reflection = null) { $this->sessionSection->sideComponent = $this->sideComponent; parent::saveState($params, $reflection); }