YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/LangManagement/actions/Export.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
/**
 * Settings LangManagement export action class.
 *
 * @copyright YetiForce S.A.
 * @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 */

/**
 * Export language action.
 */
class Settings_LangManagement_Export_Action extends Settings_Vtiger_IndexAjax_View
{
    /**
     * Process request.
     *
     * @param \App\Request $request
     */
    public function process(App\Request $request)
    {
        $lang = $request->getByType('lang', 1);

        $package = new vtlib\LanguageExport();
        $package->exportLanguage($lang, '', $lang . '.zip', true);
    }
}