| @@ 821-838 (lines=18) @@ | ||
| 818 | return $viewModel; |
|
| 819 | } |
|
| 820 | ||
| 821 | public function logoutAction() |
|
| 822 | { |
|
| 823 | $viewModel = $this->forward()->dispatch( |
|
| 824 | 'playgrounduser_user', |
|
| 825 | array( |
|
| 826 | 'controller' => 'playgrounduser_user', |
|
| 827 | 'action' => 'logout', |
|
| 828 | 'id' => $this->game->getIdentifier() |
|
| 829 | ) |
|
| 830 | ); |
|
| 831 | ||
| 832 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 833 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 834 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 835 | } |
|
| 836 | ||
| 837 | return $viewModel; |
|
| 838 | } |
|
| 839 | ||
| 840 | public function userregisterAction() |
|
| 841 | { |
|
| @@ 1091-1108 (lines=18) @@ | ||
| 1088 | return $this->redirect()->toUrl($redirect); |
|
| 1089 | } |
|
| 1090 | ||
| 1091 | public function userProfileAction() |
|
| 1092 | { |
|
| 1093 | $viewModel = $this->forward()->dispatch( |
|
| 1094 | 'playgrounduser_user', |
|
| 1095 | array( |
|
| 1096 | 'controller' => 'playgrounduser_user', |
|
| 1097 | 'action' => 'profile', |
|
| 1098 | 'id' => $this->game->getIdentifier() |
|
| 1099 | ) |
|
| 1100 | ); |
|
| 1101 | ||
| 1102 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1103 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1104 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1105 | } |
|
| 1106 | ||
| 1107 | return $viewModel; |
|
| 1108 | } |
|
| 1109 | ||
| 1110 | public function userresetAction() |
|
| 1111 | { |
|
| @@ 1131-1148 (lines=18) @@ | ||
| 1128 | return $viewModel; |
|
| 1129 | } |
|
| 1130 | ||
| 1131 | public function ajaxforgotAction() |
|
| 1132 | { |
|
| 1133 | $view = $this->forward()->dispatch( |
|
| 1134 | 'playgrounduser_forgot', |
|
| 1135 | array( |
|
| 1136 | 'controller' => 'playgrounduser_forgot', |
|
| 1137 | 'action' => 'ajaxforgot', |
|
| 1138 | 'id' => $this->game->getIdentifier() |
|
| 1139 | ) |
|
| 1140 | ); |
|
| 1141 | ||
| 1142 | if ($view && $view instanceof \Zend\View\Model\ViewModel) { |
|
| 1143 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1144 | $view->setVariables(array('game' => $this->game)); |
|
| 1145 | } |
|
| 1146 | ||
| 1147 | return $view; |
|
| 1148 | } |
|
| 1149 | ||
| 1150 | public function cmsPageAction() |
|
| 1151 | { |
|
| @@ 1150-1168 (lines=19) @@ | ||
| 1147 | return $view; |
|
| 1148 | } |
|
| 1149 | ||
| 1150 | public function cmsPageAction() |
|
| 1151 | { |
|
| 1152 | $viewModel = $this->forward()->dispatch( |
|
| 1153 | 'playgroundcms', |
|
| 1154 | array( |
|
| 1155 | 'controller' => 'playgroundcms', |
|
| 1156 | 'action' => 'index', |
|
| 1157 | 'id' => $this->game->getIdentifier(), |
|
| 1158 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1159 | ) |
|
| 1160 | ); |
|
| 1161 | ||
| 1162 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1163 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1164 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1165 | } |
|
| 1166 | ||
| 1167 | return $viewModel; |
|
| 1168 | } |
|
| 1169 | ||
| 1170 | public function cmsListAction() |
|
| 1171 | { |
|
| @@ 1170-1189 (lines=20) @@ | ||
| 1167 | return $viewModel; |
|
| 1168 | } |
|
| 1169 | ||
| 1170 | public function cmsListAction() |
|
| 1171 | { |
|
| 1172 | $viewModel = $this->forward()->dispatch( |
|
| 1173 | 'playgroundcms', |
|
| 1174 | array( |
|
| 1175 | 'controller' => 'playgroundcms', |
|
| 1176 | 'action' => 'list', |
|
| 1177 | 'id' => $this->game->getIdentifier(), |
|
| 1178 | 'category' => $this->game->getIdentifier() |
|
| 1179 | ) |
|
| 1180 | ); |
|
| 1181 | ||
| 1182 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1183 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1184 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1185 | } |
|
| 1186 | ||
| 1187 | return $viewModel; |
|
| 1188 | } |
|
| 1189 | ||
| 1190 | /** |
|
| 1191 | * |
|
| 1192 | * @param \PlaygroundGame\Entity\Game $game |
|