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