예제 #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 showBackendGroupSingle($request, $response)
 {
     switch ($request->getPath(5)) {
         case 'front':
             /** @noinspection PhpUnusedLocalVariableInspection */
             $accounts = new \Modules\Admin\Models\UserList($this->app->dbPool);
             /** @noinspection PhpUnusedLocalVariableInspection */
             $group = new \Modules\Admin\Models\Group((int) $request->getData('id'), $this->app->dbPool->get(), $this->app->cache);
             $request->setData('id', 1, false);
             /** @noinspection PhpIncludeInspection */
             include __DIR__ . '/Theme/Backend/groups-single.tpl.php';
             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;
     }
 }