src/Controller/ToolUserController.php
public function renderToolUserContentAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $melisTranslation = $this->getServiceLocator()->get('MelisCoreTranslation');
        $melisTool = $this->getServiceLocator()->get('MelisCoreTool');
        $translator = $this->getServiceLocator()->get('translator');
        $melisTool->setMelisToolKey('meliscore', $this::TOOL_KEY);

        $moduleSvc       =  $this->getServiceLocator()->get('ModulesService');
        $modules         = $moduleSvc->getAllModules();

        $request = $this->getRequest();
        $uri     = $request->getUri();
        $domain = isset($get['domain']) ? $get['domain'] : null;
        $scheme = isset($get['scheme']) ? $get['scheme'] : null;

        $columns = $melisTool->getColumns();
        // add action column
        $columns['actions'] = array('text' => $translator->translate('tr_meliscore_global_action'), 'css' => 'width:10%');

        $netStatus = $melisTool->isConnected();


        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->tableColumns = $columns;
        $view->getToolDataTableConfig = $melisTool->getDataTableConfiguration();

        $melisTool->setMelisToolKey('meliscore', 'user_view_date_connection_tool');
        $view->getToolDataTableConfigForDateConnection = $melisTool->getDataTableConfiguration('#tableUserViewDateConnection', null, null, array('order' => '[[ 0, "desc" ]]'));
        $view->modules = serialize($modules);

        $view->scheme  = $scheme;
        $view->domain  = $domain;
        $view->netStatus  = $netStatus;

        return $view;
    }
public function renderToolUserContentAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $melisTranslation = $this->getServiceLocator()->get('MelisCoreTranslation');
        $melisTool = $this->getServiceLocator()->get('MelisCoreTool');
        $translator = $this->getServiceLocator()->get('translator');
        $melisTool->setMelisToolKey('meliscore', $this::TOOL_KEY);

        $moduleSvc       =  $this->getServiceLocator()->get('ModulesService');
        $modules         = $moduleSvc->getAllModules();

        $request = $this->getRequest();
        $uri     = $request->getUri();
        $domain = isset($get['domain']) ? $get['domain'] : null;
        $scheme = isset($get['scheme']) ? $get['scheme'] : null;

        $columns = $melisTool->getColumns();
        // add action column
        $columns['actions'] = array('text' => $translator->translate('tr_meliscore_global_action'), 'css' => 'width:10%');

        $netStatus = $melisTool->isConnected();


        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->tableColumns = $columns;
        $view->getToolDataTableConfig = $melisTool->getDataTableConfiguration();

        $melisTool->setMelisToolKey('meliscore', 'user_view_date_connection_tool');
        $view->getToolDataTableConfigForDateConnection = $melisTool->getDataTableConfiguration('#tableUserViewDateConnection', null, null, array('order' => '[[ 0, "desc" ]]'));
        $view->modules = serialize($modules);

        $view->scheme  = $scheme;
        $view->domain  = $domain;
        $view->netStatus  = $netStatus;

        return $view;
    }
public function renderToolUserContentAction ( ) { $ melisKey = $ this -> params ( ) -> fromRoute ( 'melisKey' , '' ) ; $ melisTranslation = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreTranslation' ) ; $ melisTool = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreTool' ) ; $ translator = $ this -> getServiceLocator ( ) -> get ( 'translator' ) ; $ melisTool -> setMelisToolKey ( 'meliscore' , $ this :: TOOL_KEY ) ; $ moduleSvc = $ this -> getServiceLocator ( ) -> get ( 'ModulesService' ) ; $ modules = $ moduleSvc -> getAllModules ( ) ; $ request = $ this -> getRequest ( ) ; $ uri = $ request -> getUri ( ) ; $ domain = isset ( $ get [ 'domain' ] ) ? $ get [ 'domain' ] : null ; $ scheme = isset ( $ get [ 'scheme' ] ) ? $ get [ 'scheme' ] : null ; $ columns = $ melisTool -> getColumns ( ) ; // add action column $ columns [ 'actions' ] = array ( 'text' => $ translator -> translate ( 'tr_meliscore_global_action' ) , 'css' => 'width:10%' ) ; $ netStatus = $ melisTool -> isConnected ( ) ; $ view = new ViewModel ( ) ; $ view -> melisKey = $ melisKey ; $ view -> tableColumns = $ columns ; $ view -> getToolDataTableConfig = $ melisTool -> getDataTableConfiguration ( ) ; $ melisTool -> setMelisToolKey ( 'meliscore' , 'user_view_date_connection_tool' ) ; $ view -> getToolDataTableConfigForDateConnection = $ melisTool -> getDataTableConfiguration ( '#tableUserViewDateConnection' , null , null , array ( 'order' => '[[ 0, "desc" ]]' ) ) ; $ view -> modules = serialize ( $ modules ) ; $ view -> scheme = $ scheme ; $ view -> domain = $ domain ; $ view -> netStatus = $ netStatus ; return $ view ; }
Renders the content of the tool
@return \Zend\View\Model\ViewModel
Renders the content of the tool