Example #1
0
 public function __construct(EntityDao $commentDao, User $user, IChatControlFactory $chatControlFactory)
 {
     parent::__construct();
     $this->commentDao = $commentDao;
     $this->user = $user;
     $this->chatControlFactory = $chatControlFactory;
 }
Example #2
0
 /**
  * @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());
 }
Example #3
0
 /**
  * @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;
 }
Example #4
0
 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;
 }
Example #5
0
 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;
 }
Example #6
0
 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;
 }
Example #7
0
 /**
  * @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;
 }
Example #8
0
 /**
  * @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');
     }
 }
Example #9
0
 /**
  * @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;
 }
Example #10
0
 /**
  * @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;
 }
Example #11
0
 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();
     }
 }
Example #12
0
 public function render()
 {
     $this->template->administrationManager = $this->administrationManager;
     parent::render();
 }
Example #13
0
 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());
         }
     }
 }
Example #14
0
 /**
  * @param mixed[] $params
  */
 public function saveState(array &$params, $reflection = null)
 {
     $this->sessionSection->sideComponent = $this->sideComponent;
     parent::saveState($params, $reflection);
 }