Ejemplo n.º 1
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showContentBackendProcess($request, $response)
 {
     $processView = new \phpOMS\Views\View($this->app, $request, $response);
     $processView->setTemplate('/Modules/RiskManagement/Theme/Backend/process-list');
     $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
     $processView->addData('nav', $navigation->nav);
     echo $processView->render();
 }
Ejemplo n.º 2
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 private function showContentBackend($request, $response)
 {
     switch ($request->getPath(3)) {
         case 'single':
             $media = new \Modules\Media\Models\Media($this->app->dbPool);
             $media->init($request->getData('id'));
             /** @noinspection PhpIncludeInspection */
             include __DIR__ . '/Theme/Backend/media-single.tpl.php';
             break;
         case 'list':
             $mediaList = new \phpOMS\Views\View($this->app, $request, $response);
             $mediaList->setTemplate('/Modules/Media/Theme/Backend/media-list');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $mediaList->addData('nav', $navigation->nav);
             echo $mediaList->render();
             break;
         case 'create':
             $mediaCreate = new \phpOMS\Views\View($this->app, $request, $response);
             $mediaCreate->setTemplate('/Modules/Media/Theme/Backend/media-create');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $mediaCreate->addData('nav', $navigation->nav);
             echo $mediaCreate->render();
             break;
         default:
             $response->setHeader('HTTP', 'HTTP/1.0 404 Not Found');
             $response->setHeader('Status', 'Status: 404 Not Found');
             include __DIR__ . '/../../Web/Backend/404.tpl.php';
             return;
     }
 }
Ejemplo n.º 3
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showContentBackendDepartment($request, $response)
 {
     switch ($request->getPath(4)) {
         case 'list':
             $departmentListView = new \phpOMS\Views\View($this->app, $request, $response);
             $departmentListView->setTemplate('/Modules/Business/Theme/Backend/department-list');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $departmentListView->addData('nav', $navigation->nav);
             echo $departmentListView->render();
             break;
         case 'create':
             $departmentCreateView = new \phpOMS\Views\View($this->app, $request, $response);
             $departmentCreateView->setTemplate('/Modules/Business/Theme/Backend/department-create');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $departmentCreateView->addData('nav', $navigation->nav);
             echo $departmentCreateView->render();
             break;
     }
 }
Ejemplo n.º 4
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showContentBackendPrivate($request, $response)
 {
     switch ($request->getPath(4)) {
         case 'dashboard':
             $supportDashboardView = new \phpOMS\Views\View($this->app, $request, $response);
             $supportDashboardView->setTemplate('/Modules/Support/Theme/Backend/user-support-dashboard');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $supportDashboardView->addData('nav', $navigation->nav);
             echo $supportDashboardView->render();
             break;
     }
 }
Ejemplo n.º 5
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showContentBackend($request, $response)
 {
     // TODO: pull abstract view creation and output out. let error be a view as well -> less code writing
     switch ($request->getPath(3)) {
         case 'dashboard':
             $taskDashboardView = new \phpOMS\Views\View($this->app, $request, $response);
             $taskDashboardView->setTemplate('/Modules/Tasks/Theme/Backend/task-dashboard');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $taskDashboardView->addData('nav', $navigation->nav);
             echo $taskDashboardView->render();
             break;
         case 'single':
             $taskSingleView = new \phpOMS\Views\View($this->app, $request, $response);
             $taskSingleView->setTemplate('/Modules/Tasks/Theme/Backend/task-single');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $taskSingleView->addData('nav', $navigation->nav);
             echo $taskSingleView->render();
             break;
         case 'create':
             $taskCreateView = new \phpOMS\Views\View($this->app, $request, $response);
             $taskCreateView->setTemplate('/Modules/Tasks/Theme/Backend/task-create');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $taskCreateView->addData('nav', $navigation->nav);
             echo $taskCreateView->render();
             break;
         case 'analysis':
             $taskAnalysisView = new \phpOMS\Views\View($this->app, $request, $response);
             $taskAnalysisView->setTemplate('/Modules/Tasks/Theme/Backend/task-analysis');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $taskAnalysisView->addData('nav', $navigation->nav);
             echo $taskAnalysisView->render();
             break;
         case 'settings':
             $taskSettingsView = new \phpOMS\Views\View($this->app, $request, $response);
             $taskSettingsView->setTemplate('/Modules/Tasks/Theme/Backend/task-settings');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $taskSettingsView->addData('nav', $navigation->nav);
             echo $taskSettingsView->render();
             break;
     }
 }
Ejemplo n.º 6
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showBackendGroup($request, $response)
 {
     switch ($request->getPath(4)) {
         case 'list':
             $groupListView = new \phpOMS\Views\View($this->app, $request, $response);
             $groupListView->setTemplate('/Modules/Admin/Theme/Backend/groups-list');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $groupListView->addData('nav', $navigation->nav);
             $groupList = new \Modules\Admin\Models\GroupList($this->app->dbPool);
             $groupListView->setData('list:elements', $groupList->getList()['list']);
             $groupListView->setData('list:count', $groupList->getList()['count']);
             echo $groupListView->render();
             break;
         case 'single':
             $this->showBackendGroupSingle($request, $response);
             break;
         case 'create':
             $groupCreateView = new \phpOMS\Views\View($this->app, $request, $response);
             $groupCreateView->setTemplate('/Modules/Admin/Theme/Backend/groups-create');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $groupCreateView->addData('nav', $navigation->nav);
             echo $groupCreateView->render();
             break;
         default:
             $response->setHeader('HTTP', 'HTTP/1.0 404 Not Found');
             $response->setHeader('Status', 'Status: 404 Not Found');
             include __DIR__ . '/../../Web/Backend/404.tpl.php';
             return;
     }
 }
Ejemplo n.º 7
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showContentBackend($request, $response)
 {
     switch ($request->getPath(3)) {
         case 'dashboard':
             $newsDashboard = new \phpOMS\Views\View($this->app, $request, $response);
             $newsDashboard->setTemplate('/Modules/News/Theme/Backend/news-dashboard');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $newsDashboard->addData('nav', $navigation->nav);
             echo $newsDashboard->render();
             break;
         case 'single':
             $article = new \Modules\News\Models\Article($this->app->dbPool);
             $article->init($request->getData('id'));
             /** @noinspection PhpIncludeInspection */
             include __DIR__ . '/Theme/Backend/news-single.tpl.php';
             break;
         case 'archive':
             $newArchive = new \phpOMS\Views\View($this->app, $request, $response);
             $newArchive->setTemplate('/Modules/News/Theme/Backend/news-archive');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $newArchive->addData('nav', $navigation->nav);
             echo $newArchive->render();
             break;
         case 'create':
             $newsCreate = new \phpOMS\Views\View($this->app, $request, $response);
             $newsCreate->setTemplate('/Modules/News/Theme/Backend/news-create');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $newsCreate->addData('nav', $navigation->nav);
             echo $newsCreate->render();
             break;
         default:
             $response->setHeader('HTTP', 'HTTP/1.0 404 Not Found');
             $response->setHeader('Status', 'Status: 404 Not Found');
             include __DIR__ . '/../../Web/Backend/404.tpl.php';
             return;
     }
 }
Ejemplo n.º 8
0
 /**
  * Shows module content
  *
  * @param \phpOMS\Message\RequestAbstract  $request  Request
  * @param \phpOMS\Message\ResponseAbstract $response Response
  *
  * @since  1.0.0
  * @author Dennis Eichhorn <*****@*****.**>
  */
 public function showContentBackend($request, $response)
 {
     switch ($request->getPath(3)) {
         case 'single':
             $profileSingleView = new \phpOMS\Views\View($this->app, $request, $response);
             $profileSingleView->setTemplate('/Modules/Profile/Theme/Backend/profile-single');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $profileSingleView->addData('nav', $navigation->nav);
             echo $profileSingleView->render();
             break;
         case 'list':
             $profileView = new \phpOMS\Views\View($this->app, $request, $response);
             $profileView->setTemplate('/Modules/Profile/Theme/Backend/profile-list');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $profileView->addData('nav', $navigation->nav);
             echo $profileView->render();
             break;
     }
 }
Ejemplo n.º 9
0
 public function showContentReporter($request, $response)
 {
     switch ($request->getPath(2)) {
         case 'single':
             $this->showSingleReporter($request, $response);
             break;
         default:
             $reportList = new \phpOMS\Views\View($this->app, $request, $response);
             $reportList->setTemplate('/Modules/Reporter/Theme/reporter/reporter-list');
             $navigation = \Modules\Navigation\Models\Navigation::getInstance($request->getHash(), $this->app->dbPool);
             $reportList->addData('nav', $navigation->nav);
             echo $reportList->render();
     }
 }