IndexCsv :: __construct: Bitrix method

      
<?php 
//  Bitrix\Translate\Controller\Import\IndexCsv :: __construct()
//  /dist/bitrix/modules/translate/lib/controller/import/indexcsv.php:54

    /**
     * \Bitrix\Main\Engine\Action constructor.
     *
     * @param string $name Action name.
     * @param Main\Engine\Controller $controller Parent controller object.
     * @param array $config Additional configuration.
     */
    
public function __construct($nameMain\Engine\Controller $controller$config = array())
    {
        
$fields = ['tabId''csvFilePath''seekLine''seekPath'];

        
$this->keepField($fields);

        foreach (
$fields as $key)
        {
            if (!empty(
$config[$key]))
            {
                
$this->{$key} = $config[$key];
            }
        }

        
self::$documentRoot rtrim(Translate\IO\Path::tidy(Main\Application::getDocumentRoot()), '/');

        
self::$enabledLanguages Translate\Config::getEnabledLanguages();

        
parent::__construct($name$controller$config);
    }