| @@ 742-759 (lines=18) @@ | ||
| 739 | return $viewModel; |
|
| 740 | } |
|
| 741 | ||
| 742 | public function logoutAction() |
|
| 743 | { |
|
| 744 | $viewModel = $this->forward()->dispatch( |
|
| 745 | 'playgrounduser_user', |
|
| 746 | array( |
|
| 747 | 'controller' => 'playgrounduser_user', |
|
| 748 | 'action' => 'logout', |
|
| 749 | 'id' => $this->game->getIdentifier() |
|
| 750 | ) |
|
| 751 | ); |
|
| 752 | ||
| 753 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 754 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 755 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 756 | } |
|
| 757 | ||
| 758 | return $viewModel; |
|
| 759 | } |
|
| 760 | ||
| 761 | public function userregisterAction() |
|
| 762 | { |
|
| @@ 989-1006 (lines=18) @@ | ||
| 986 | return $this->redirect()->toUrl($redirect); |
|
| 987 | } |
|
| 988 | ||
| 989 | public function userProfileAction() |
|
| 990 | { |
|
| 991 | $viewModel = $this->forward()->dispatch( |
|
| 992 | 'playgrounduser_user', |
|
| 993 | array( |
|
| 994 | 'controller' => 'playgrounduser_user', |
|
| 995 | 'action' => 'profile', |
|
| 996 | 'id' => $this->game->getIdentifier() |
|
| 997 | ) |
|
| 998 | ); |
|
| 999 | ||
| 1000 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1001 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1002 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1003 | } |
|
| 1004 | ||
| 1005 | return $viewModel; |
|
| 1006 | } |
|
| 1007 | ||
| 1008 | public function userresetAction() |
|
| 1009 | { |
|
| @@ 1029-1046 (lines=18) @@ | ||
| 1026 | return $viewModel; |
|
| 1027 | } |
|
| 1028 | ||
| 1029 | public function ajaxforgotAction() |
|
| 1030 | { |
|
| 1031 | $view = $this->forward()->dispatch( |
|
| 1032 | 'playgrounduser_forgot', |
|
| 1033 | array( |
|
| 1034 | 'controller' => 'playgrounduser_forgot', |
|
| 1035 | 'action' => 'ajaxforgot', |
|
| 1036 | 'id' => $this->game->getIdentifier() |
|
| 1037 | ) |
|
| 1038 | ); |
|
| 1039 | ||
| 1040 | if ($view && $view instanceof \Zend\View\Model\ViewModel) { |
|
| 1041 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1042 | $view->setVariables(array('game' => $this->game)); |
|
| 1043 | } |
|
| 1044 | ||
| 1045 | return $view; |
|
| 1046 | } |
|
| 1047 | ||
| 1048 | public function cmsPageAction() |
|
| 1049 | { |
|
| @@ 1048-1066 (lines=19) @@ | ||
| 1045 | return $view; |
|
| 1046 | } |
|
| 1047 | ||
| 1048 | public function cmsPageAction() |
|
| 1049 | { |
|
| 1050 | $viewModel = $this->forward()->dispatch( |
|
| 1051 | 'playgroundcms', |
|
| 1052 | array( |
|
| 1053 | 'controller' => 'playgroundcms', |
|
| 1054 | 'action' => 'index', |
|
| 1055 | 'id' => $this->game->getIdentifier(), |
|
| 1056 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1057 | ) |
|
| 1058 | ); |
|
| 1059 | ||
| 1060 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1061 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1062 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1063 | } |
|
| 1064 | ||
| 1065 | return $viewModel; |
|
| 1066 | } |
|
| 1067 | ||
| 1068 | public function cmsListAction() |
|
| 1069 | { |
|
| @@ 1068-1087 (lines=20) @@ | ||
| 1065 | return $viewModel; |
|
| 1066 | } |
|
| 1067 | ||
| 1068 | public function cmsListAction() |
|
| 1069 | { |
|
| 1070 | $viewModel = $this->forward()->dispatch( |
|
| 1071 | 'playgroundcms', |
|
| 1072 | array( |
|
| 1073 | 'controller' => 'playgroundcms', |
|
| 1074 | 'action' => 'list', |
|
| 1075 | 'id' => $this->game->getIdentifier(), |
|
| 1076 | 'category' => $this->game->getIdentifier() |
|
| 1077 | ) |
|
| 1078 | ); |
|
| 1079 | ||
| 1080 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1081 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1082 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1083 | } |
|
| 1084 | ||
| 1085 | return $viewModel; |
|
| 1086 | } |
|
| 1087 | ||
| 1088 | /** |
|
| 1089 | * |
|
| 1090 | * @param \PlaygroundGame\Entity\Game $game |
|