| @@ 779-796 (lines=18) @@ | ||
| 776 | return $viewModel; |
|
| 777 | } |
|
| 778 | ||
| 779 | public function logoutAction() |
|
| 780 | { |
|
| 781 | $viewModel = $this->forward()->dispatch( |
|
| 782 | 'playgrounduser_user', |
|
| 783 | array( |
|
| 784 | 'controller' => 'playgrounduser_user', |
|
| 785 | 'action' => 'logout', |
|
| 786 | 'id' => $this->game->getIdentifier() |
|
| 787 | ) |
|
| 788 | ); |
|
| 789 | ||
| 790 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 791 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 792 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 793 | } |
|
| 794 | ||
| 795 | return $viewModel; |
|
| 796 | } |
|
| 797 | ||
| 798 | public function userregisterAction() |
|
| 799 | { |
|
| @@ 1026-1043 (lines=18) @@ | ||
| 1023 | return $this->redirect()->toUrl($redirect); |
|
| 1024 | } |
|
| 1025 | ||
| 1026 | public function userProfileAction() |
|
| 1027 | { |
|
| 1028 | $viewModel = $this->forward()->dispatch( |
|
| 1029 | 'playgrounduser_user', |
|
| 1030 | array( |
|
| 1031 | 'controller' => 'playgrounduser_user', |
|
| 1032 | 'action' => 'profile', |
|
| 1033 | 'id' => $this->game->getIdentifier() |
|
| 1034 | ) |
|
| 1035 | ); |
|
| 1036 | ||
| 1037 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1038 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1039 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1040 | } |
|
| 1041 | ||
| 1042 | return $viewModel; |
|
| 1043 | } |
|
| 1044 | ||
| 1045 | public function userresetAction() |
|
| 1046 | { |
|
| @@ 1066-1083 (lines=18) @@ | ||
| 1063 | return $viewModel; |
|
| 1064 | } |
|
| 1065 | ||
| 1066 | public function ajaxforgotAction() |
|
| 1067 | { |
|
| 1068 | $view = $this->forward()->dispatch( |
|
| 1069 | 'playgrounduser_forgot', |
|
| 1070 | array( |
|
| 1071 | 'controller' => 'playgrounduser_forgot', |
|
| 1072 | 'action' => 'ajaxforgot', |
|
| 1073 | 'id' => $this->game->getIdentifier() |
|
| 1074 | ) |
|
| 1075 | ); |
|
| 1076 | ||
| 1077 | if ($view && $view instanceof \Zend\View\Model\ViewModel) { |
|
| 1078 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1079 | $view->setVariables(array('game' => $this->game)); |
|
| 1080 | } |
|
| 1081 | ||
| 1082 | return $view; |
|
| 1083 | } |
|
| 1084 | ||
| 1085 | public function cmsPageAction() |
|
| 1086 | { |
|
| @@ 1085-1103 (lines=19) @@ | ||
| 1082 | return $view; |
|
| 1083 | } |
|
| 1084 | ||
| 1085 | public function cmsPageAction() |
|
| 1086 | { |
|
| 1087 | $viewModel = $this->forward()->dispatch( |
|
| 1088 | 'playgroundcms', |
|
| 1089 | array( |
|
| 1090 | 'controller' => 'playgroundcms', |
|
| 1091 | 'action' => 'index', |
|
| 1092 | 'id' => $this->game->getIdentifier(), |
|
| 1093 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1094 | ) |
|
| 1095 | ); |
|
| 1096 | ||
| 1097 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1098 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1099 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1100 | } |
|
| 1101 | ||
| 1102 | return $viewModel; |
|
| 1103 | } |
|
| 1104 | ||
| 1105 | public function cmsListAction() |
|
| 1106 | { |
|
| @@ 1105-1124 (lines=20) @@ | ||
| 1102 | return $viewModel; |
|
| 1103 | } |
|
| 1104 | ||
| 1105 | public function cmsListAction() |
|
| 1106 | { |
|
| 1107 | $viewModel = $this->forward()->dispatch( |
|
| 1108 | 'playgroundcms', |
|
| 1109 | array( |
|
| 1110 | 'controller' => 'playgroundcms', |
|
| 1111 | 'action' => 'list', |
|
| 1112 | 'id' => $this->game->getIdentifier(), |
|
| 1113 | 'category' => $this->game->getIdentifier() |
|
| 1114 | ) |
|
| 1115 | ); |
|
| 1116 | ||
| 1117 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1118 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1119 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1120 | } |
|
| 1121 | ||
| 1122 | return $viewModel; |
|
| 1123 | } |
|
| 1124 | ||
| 1125 | /** |
|
| 1126 | * |
|
| 1127 | * @param \PlaygroundGame\Entity\Game $game |
|