YetiForceCompany/YetiForceCRM

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

Summary

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

/**
 * YetiForce upload list Modal.
 *
 * @package   Settings.View
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Arkadiusz Dudek <a.dudek@yetiforce.com>
 */

/**
 * Upload list view class.
 */
class Settings_MailRbl_UploadListModal_View extends \App\Controller\ModalSettings
{
    /** {@inheritdoc} */
    public $modalSize = 'modal-lg';

    /** {@inheritdoc} */
    public $showFooter = false;

    /** {@inheritdoc} */
    public function preProcessAjax(App\Request $request)
    {
        $this->qualifiedModuleName = $request->getModule(false);
        $this->pageTitle = \App\Language::translate('LBL_UPLOAD_LIST', $this->qualifiedModuleName);
        parent::preProcessAjax($request);
    }

    /** {@inheritdoc} */
    public function process(App\Request $request)
    {
        $viewer = $this->getViewer($request);
        $viewer->view('UploadListModal.tpl', $this->qualifiedModuleName);
    }
}