YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/ApiAddress/views/Configuration.php

Summary

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

/**
 * Settings ApiAddress Configuration view class.
 *
 * @copyright YetiForce S.A.
 * @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 */
class Settings_ApiAddress_Configuration_View extends Settings_Vtiger_Index_View
{
    public function preProcess(App\Request $request, $display = true)
    {
        parent::preProcess($request);
    }

    public function process(App\Request $request)
    {
        $viewer = $this->getViewer($request);

        $viewer->assign('CONFIG', Settings_ApiAddress_Module_Model::getInstance('Settings:ApiAddress')->getConfig());
        $viewer->assign('DEFAULT_PROVIDER', \App\Map\Address::getDefaultProvider());
        $viewer->assign('MODULENAME', $request->getModule(false));
        echo $viewer->view('Configuration.tpl', $request->getModule(false), true);
    }
}