YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
/**
 * Index view file for Mail RBL module.
 *
 * @package   Settings.View
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */
/**
 * Index view class for Mail RBL module.
 */
class Settings_MailRbl_Index_View extends Settings_Vtiger_Index_View
{
    /** {@inheritdoc} */
    public function process(App\Request $request)
    {
        $activeTab = 'forVerification';
        if ($request->has('tab')) {
            $activeTab = $request->getByType('tab');
        }
        $viewer = $this->getViewer($request);
        $viewer->assign('ACTIVE_TAB', $activeTab);
        $viewer->assign('ACCEPT_MODE', \Config\Components\Mail::$rcListAcceptAutomatically ?? false);
        $viewer->assign('SEND_MODE', \Config\Components\Mail::$rcListSendReportAutomatically ?? false);
        $viewer->assign('IP', $request->has('ip') ? $request->getByType('ip', 'ip') : '');
        $viewer->assign('DATE', implode(',', \App\Fields\Date::formatRangeToDisplay([date('Y-m-d', strtotime('-1 month')), date('Y-m-d')])));
        $viewer->view('Index.tpl', $request->getModule(false));
    }
}