| @@ 820-837 (lines=18) @@ | ||
| 817 | return $viewModel; |
|
| 818 | } |
|
| 819 | ||
| 820 | public function logoutAction() |
|
| 821 | { |
|
| 822 | $viewModel = $this->forward()->dispatch( |
|
| 823 | 'playgrounduser_user', |
|
| 824 | array( |
|
| 825 | 'controller' => 'playgrounduser_user', |
|
| 826 | 'action' => 'logout', |
|
| 827 | 'id' => $this->game->getIdentifier() |
|
| 828 | ) |
|
| 829 | ); |
|
| 830 | ||
| 831 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 832 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 833 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 834 | } |
|
| 835 | ||
| 836 | return $viewModel; |
|
| 837 | } |
|
| 838 | ||
| 839 | public function userregisterAction() |
|
| 840 | { |
|
| @@ 1067-1084 (lines=18) @@ | ||
| 1064 | return $this->redirect()->toUrl($redirect); |
|
| 1065 | } |
|
| 1066 | ||
| 1067 | public function userProfileAction() |
|
| 1068 | { |
|
| 1069 | $viewModel = $this->forward()->dispatch( |
|
| 1070 | 'playgrounduser_user', |
|
| 1071 | array( |
|
| 1072 | 'controller' => 'playgrounduser_user', |
|
| 1073 | 'action' => 'profile', |
|
| 1074 | 'id' => $this->game->getIdentifier() |
|
| 1075 | ) |
|
| 1076 | ); |
|
| 1077 | ||
| 1078 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1079 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1080 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1081 | } |
|
| 1082 | ||
| 1083 | return $viewModel; |
|
| 1084 | } |
|
| 1085 | ||
| 1086 | public function userresetAction() |
|
| 1087 | { |
|
| @@ 1107-1124 (lines=18) @@ | ||
| 1104 | return $viewModel; |
|
| 1105 | } |
|
| 1106 | ||
| 1107 | public function ajaxforgotAction() |
|
| 1108 | { |
|
| 1109 | $view = $this->forward()->dispatch( |
|
| 1110 | 'playgrounduser_forgot', |
|
| 1111 | array( |
|
| 1112 | 'controller' => 'playgrounduser_forgot', |
|
| 1113 | 'action' => 'ajaxforgot', |
|
| 1114 | 'id' => $this->game->getIdentifier() |
|
| 1115 | ) |
|
| 1116 | ); |
|
| 1117 | ||
| 1118 | if ($view && $view instanceof \Zend\View\Model\ViewModel) { |
|
| 1119 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1120 | $view->setVariables(array('game' => $this->game)); |
|
| 1121 | } |
|
| 1122 | ||
| 1123 | return $view; |
|
| 1124 | } |
|
| 1125 | ||
| 1126 | public function cmsPageAction() |
|
| 1127 | { |
|
| @@ 1126-1144 (lines=19) @@ | ||
| 1123 | return $view; |
|
| 1124 | } |
|
| 1125 | ||
| 1126 | public function cmsPageAction() |
|
| 1127 | { |
|
| 1128 | $viewModel = $this->forward()->dispatch( |
|
| 1129 | 'playgroundcms', |
|
| 1130 | array( |
|
| 1131 | 'controller' => 'playgroundcms', |
|
| 1132 | 'action' => 'index', |
|
| 1133 | 'id' => $this->game->getIdentifier(), |
|
| 1134 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1135 | ) |
|
| 1136 | ); |
|
| 1137 | ||
| 1138 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1139 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1140 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1141 | } |
|
| 1142 | ||
| 1143 | return $viewModel; |
|
| 1144 | } |
|
| 1145 | ||
| 1146 | public function cmsListAction() |
|
| 1147 | { |
|
| @@ 1146-1165 (lines=20) @@ | ||
| 1143 | return $viewModel; |
|
| 1144 | } |
|
| 1145 | ||
| 1146 | public function cmsListAction() |
|
| 1147 | { |
|
| 1148 | $viewModel = $this->forward()->dispatch( |
|
| 1149 | 'playgroundcms', |
|
| 1150 | array( |
|
| 1151 | 'controller' => 'playgroundcms', |
|
| 1152 | 'action' => 'list', |
|
| 1153 | 'id' => $this->game->getIdentifier(), |
|
| 1154 | 'category' => $this->game->getIdentifier() |
|
| 1155 | ) |
|
| 1156 | ); |
|
| 1157 | ||
| 1158 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1159 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1160 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1161 | } |
|
| 1162 | ||
| 1163 | return $viewModel; |
|
| 1164 | } |
|
| 1165 | ||
| 1166 | /** |
|
| 1167 | * |
|
| 1168 | * @param \PlaygroundGame\Entity\Game $game |
|