public function renderStarted() { $path = $this->serverRepo->getPath($this->selectedServerId); try { $logModel = new LogModel($path . 'logs/'); $this->template->logs = LogModel::makeColorful($logModel->getAll(8)); } catch (UnexpectedValueException $e) { $this->template->logs = array('nic nenalezeno'); } }
/** * @return FileEditor Component */ protected function createComponentWhiteList() { return new FileEditor($this->serverRepo->getPath($this->selectedServerId) . 'whitelist.json', $this->fileModel, $this->user->isAllowed('server-settings', 'edit')); }
public function actionDownload($newServerId) { $this->newServerId = $newServerId; $this->path = $this->serverRepo->getPath($newServerId); }