kartik\export\ExportMenu::setDefaultExportConfig PHP Метод

setDefaultExportConfig() защищенный Метод

Sets the default export configuration
protected setDefaultExportConfig ( ) : void
Результат void
    protected function setDefaultExportConfig()
    {
        $isFa = $this->fontAwesome;
        $this->_defaultExportConfig = [self::FORMAT_HTML => ['label' => Yii::t('kvexport', 'HTML'), 'icon' => $isFa ? 'file-text' : 'floppy-saved', 'iconOptions' => ['class' => 'text-info'], 'linkOptions' => [], 'options' => ['title' => Yii::t('kvexport', 'Hyper Text Markup Language')], 'alertMsg' => Yii::t('kvexport', 'The HTML export file will be generated for download.'), 'mime' => 'text/html', 'extension' => 'html', 'writer' => 'HTML'], self::FORMAT_CSV => ['label' => Yii::t('kvexport', 'CSV'), 'icon' => $isFa ? 'file-code-o' : 'floppy-open', 'iconOptions' => ['class' => 'text-primary'], 'linkOptions' => [], 'options' => ['title' => Yii::t('kvexport', 'Comma Separated Values')], 'alertMsg' => Yii::t('kvexport', 'The CSV export file will be generated for download.'), 'mime' => 'application/csv', 'extension' => 'csv', 'writer' => 'CSV'], self::FORMAT_TEXT => ['label' => Yii::t('kvexport', 'Text'), 'icon' => $isFa ? 'file-text-o' : 'floppy-save', 'iconOptions' => ['class' => 'text-muted'], 'linkOptions' => [], 'options' => ['title' => Yii::t('kvexport', 'Tab Delimited Text')], 'alertMsg' => Yii::t('kvexport', 'The TEXT export file will be generated for download.'), 'mime' => 'text/plain', 'extension' => 'txt', 'writer' => 'CSV'], self::FORMAT_PDF => ['label' => Yii::t('kvexport', 'PDF'), 'icon' => $isFa ? 'file-pdf-o' : 'floppy-disk', 'iconOptions' => ['class' => 'text-danger'], 'linkOptions' => [], 'options' => ['title' => Yii::t('kvexport', 'Portable Document Format')], 'alertMsg' => Yii::t('kvexport', 'The PDF export file will be generated for download.'), 'mime' => 'application/pdf', 'extension' => 'pdf', 'writer' => 'PDF'], self::FORMAT_EXCEL => ['label' => Yii::t('kvexport', 'Excel 95 +'), 'icon' => $isFa ? 'file-excel-o' : 'floppy-remove', 'iconOptions' => ['class' => 'text-success'], 'linkOptions' => [], 'options' => ['title' => Yii::t('kvexport', 'Microsoft Excel 95+ (xls)')], 'alertMsg' => Yii::t('kvexport', 'The EXCEL 95+ (xls) export file will be generated for download.'), 'mime' => 'application/vnd.ms-excel', 'extension' => 'xls', 'writer' => 'Excel5'], self::FORMAT_EXCEL_X => ['label' => Yii::t('kvexport', 'Excel 2007+'), 'icon' => $isFa ? 'file-excel-o' : 'floppy-remove', 'iconOptions' => ['class' => 'text-success'], 'linkOptions' => [], 'options' => ['title' => Yii::t('kvexport', 'Microsoft Excel 2007+ (xlsx)')], 'alertMsg' => Yii::t('kvexport', 'The EXCEL 2007+ (xlsx) export file will be generated for download.'), 'mime' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'extension' => 'xlsx', 'writer' => 'Excel2007']];
    }