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