/** * @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; }
/** * @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; }
/** * @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; }