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