src/Controller/MelisCoreGdprController.php
public function renderMelisCoreGdprTabsAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $show = $this->params()->fromQuery('show', false);
        $formData = $this->params()->fromQuery('formData', []);

        if (!empty($formData)) {
            $finalData = [];

            foreach ($formData as $input) {
                $finalData[$input['name']] = $input['value'];
            }
            $melisCoreGdprService = $this->getServiceLocator()->get('MelisCoreGdprService');
            $modulesData = $melisCoreGdprService->getUserInfo($finalData);
        }


        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->show = $show;
        if (isset($modulesData['results']) && !empty($modulesData['results'])) {
            $view->modules = $modulesData['results'];
        }

        return $view;
    }
public function renderMelisCoreGdprTabsAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $show = $this->params()->fromQuery('show', false);
        $formData = $this->params()->fromQuery('formData', []);

        if (!empty($formData)) {
            $finalData = [];

            foreach ($formData as $input) {
                $finalData[$input['name']] = $input['value'];
            }
            $melisCoreGdprService = $this->getServiceLocator()->get('MelisCoreGdprService');
            $modulesData = $melisCoreGdprService->getUserInfo($finalData);
        }


        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->show = $show;
        if (isset($modulesData['results']) && !empty($modulesData['results'])) {
            $view->modules = $modulesData['results'];
        }

        return $view;
    }
public function renderMelisCoreGdprTabsAction ( ) { $ melisKey = $ this -> params ( ) -> fromRoute ( 'melisKey' , '' ) ; $ show = $ this -> params ( ) -> fromQuery ( 'show' , false ) ; $ formData = $ this -> params ( ) -> fromQuery ( 'formData' , [ ] ) ; if ( ! empty ( $ formData ) ) { $ finalData = [ ] ; foreach ( $ formData as $ input ) { $ finalData [ $ input [ 'name' ] ] = $ input [ 'value' ] ; } $ melisCoreGdprService = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreGdprService' ) ; $ modulesData = $ melisCoreGdprService -> getUserInfo ( $ finalData ) ; } $ view = new ViewModel ( ) ; $ view -> melisKey = $ melisKey ; $ view -> show = $ show ; if ( isset ( $ modulesData [ 'results' ] ) && ! empty ( $ modulesData [ 'results' ] ) ) { $ view -> modules = $ modulesData [ 'results' ] ; } return $ view ; }
The tabs that will show the records of user in every module
@return view model
The tabs that will show the records of user in every module