YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/SalesProcesses/views/Index.php

Summary

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

/**
 * Settings SalesProcesses index view class.
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 */
class Settings_SalesProcesses_Index_View extends Settings_Vtiger_Index_View
{
    /**
     * Process.
     *
     * @param \App\Request $request
     */
    public function process(App\Request $request)
    {
        \App\Log::trace('Start ' . __METHOD__);
        $qualifiedModule = $request->getModule(false);
        $moduleModel = Settings_SalesProcesses_Module_Model::getCleanInstance();

        $viewer = $this->getViewer($request);
        $viewer->assign('QUALIFIED_MODULE', $qualifiedModule);
        $viewer->assign('MODULE_MODEL', $moduleModel);
        $viewer->view('Index.tpl', $qualifiedModule);
        \App\Log::trace('End ' . __METHOD__);
    }

    public function getFooterScripts(App\Request $request)
    {
        return array_merge(parent::getFooterScripts($request), $this->checkAndConvertJsScripts([
            "modules.Settings.{$request->getModule()}.resources.Index",
        ]));
    }
}