Esempio n. 1
0
 /**
  * @param \DB\ServerRepository $serverRepository
  * @param ServerCommander $serverCommander 
  * @param \Nette\Security\User $user
  */
 public function __construct($serverRepository, $serverCommander, $user = NULL)
 {
     parent::__construct();
     $this->serverRepo = $serverRepository;
     $this->serverCmd = $serverCommander;
     $this->user = $user;
 }
Esempio n. 2
0
 /**
  * @param string $filePath
  * @param FileModel $fileModel
  * @param bool $allowedToEdit
  * @param array $unchangeableLines format: array('patern'=>'replacement', 'patern'=>'replacement'); passed to preg_replace
  */
 public function __construct($filePath, $fileModel, $allowedToEdit, $unchangeableLines = array())
 {
     parent::__construct();
     $this->filePath = $filePath;
     $this->fileModel = $fileModel;
     $this->allowedToEdit = $allowedToEdit;
     $this->unchangeableLines = $unchangeableLines;
 }
Esempio n. 3
0
 /**
  * @param GameUpdateModel $gameUpdater
  * @param string $path
  */
 public function __construct($gameUpdater, $path)
 {
     parent::__construct();
     $this->gameUpdater = $gameUpdater;
     $this->path = $path;
 }
 /**
  * Loads state informations.
  * @param  array
  * @return void
  */
 public function loadState(array $params)
 {
     parent::loadState($params);
     $this->getPaginator()->page = $this->page;
 }
 /**
  * @param string|NULL
  * @return Nette\Templating\ITemplate
  */
 protected function createTemplate($class = NULL)
 {
     $template = parent::createTemplate();
     $template->setFile(__DIR__ . '/confirmationDialog.latte');
     return $template;
 }