YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/ConfReport/views/Speed.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

/**
 * Speed test view class.
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */
class Settings_ConfReport_Speed_View extends \App\Controller\ModalSettings
{
    /** {@inheritdoc} */
    public $showFooter = false;
    /** {@inheritdoc} */
    public $modalIcon = 'fas fa-stopwatch';

    /** {@inheritdoc} */
    public function process(App\Request $request)
    {
        $qualifiedModule = $request->getModule(false);
        $viewer = $this->getViewer($request);
        $viewer->assign('BENCHMARKS', \App\Utils\Benchmarks::all());
        $viewer->assign('QUALIFIED_MODULE', $qualifiedModule);
        $viewer->view('Speed.tpl', $qualifiedModule);
    }

    /** {@inheritdoc} */
    public function getPageTitle(App\Request $request)
    {
        return \App\Language::translate('LBL_SERVER_SPEED_TEST', $request->getModule(false));
    }
}