public function diagnostic()
    {
        $config = $this->loadConfig();
        $data = array(
            'title'  => __('Readiness Check'),
            'config' => json_encode($config['diagnostic']),
        );

        $this->defaultData();
        $this->setData('userLabel', SessionManager::getSession()->getUserLabel());
        $this->setData('cls', 'diagnostic-runner');
        $this->setData('data', $data);
        $this->setData('content-template', 'pages/index.tpl');

        if (!empty($config['diagnostic']['pageTitle'])) {
            $this->setData('title', $config['diagnostic']['pageTitle']);
        }

        /** @var \oat\tao\model\theme\ThemeService $themeService */
        $themeService = $this->getServiceLocator()->get(ThemeService::SERVICE_ID);
        $theme = $themeService->getTheme();
        $configurableText = $theme->getAllTexts();
        $this->setData('configurableText', json_encode($configurableText));

        $this->setView('layout.tpl');
    }
public function diagnostic()
    {
        $config = $this->loadConfig();
        $data = array(
            'title'  => __('Readiness Check'),
            'config' => json_encode($config['diagnostic']),
        );

        $this->defaultData();
        $this->setData('userLabel', SessionManager::getSession()->getUserLabel());
        $this->setData('cls', 'diagnostic-runner');
        $this->setData('data', $data);
        $this->setData('content-template', 'pages/index.tpl');

        if (!empty($config['diagnostic']['pageTitle'])) {
            $this->setData('title', $config['diagnostic']['pageTitle']);
        }

        /** @var \oat\tao\model\theme\ThemeService $themeService */
        $themeService = $this->getServiceLocator()->get(ThemeService::SERVICE_ID);
        $theme = $themeService->getTheme();
        $configurableText = $theme->getAllTexts();
        $this->setData('configurableText', json_encode($configurableText));

        $this->setView('layout.tpl');
    }
public function diagnostic ( ) { $ config = $ this -> loadConfig ( ) ; $ data = array ( 'title' => __ ( 'Readiness Check' ) , 'config' => json_encode ( $ config [ 'diagnostic' ] ) , ) ; $ this -> defaultData ( ) ; $ this -> setData ( 'userLabel' , SessionManager :: getSession ( ) -> getUserLabel ( ) ) ; $ this -> setData ( 'cls' , 'diagnostic-runner' ) ; $ this -> setData ( 'data' , $ data ) ; $ this -> setData ( 'content-template' , 'pages/index.tpl' ) ; if ( ! empty ( $ config [ 'diagnostic' ] [ 'pageTitle' ] ) ) { $ this -> setData ( 'title' , $ config [ 'diagnostic' ] [ 'pageTitle' ] ) ; } /** @var \oat\tao\model\theme\ThemeService $themeService */ $ themeService = $ this -> getServiceLocator ( ) -> get ( ThemeService :: SERVICE_ID ) ; $ theme = $ themeService -> getTheme ( ) ; $ configurableText = $ theme -> getAllTexts ( ) ; $ this -> setData ( 'configurableText' , json_encode ( $ configurableText ) ) ; $ this -> setView ( 'layout.tpl' ) ; }
Display the diagnostic runner
Display the diagnostic runner