PHP 클래스 kartik\grid\controllers\ExportController

상속: extends yii\web\Controller
파일 보기 프로젝트 열기: kartik-v/yii2-grid

공개 메소드들

메소드 설명
actionDownload ( ) : mixed Download the exported file

보호된 메소드들

메소드 설명
generatePDF ( string $content, string $filename, array $config = [] ) : void Generates the PDF file
setHttpHeaders ( string $type, string $name, string $mime, string $encoding = 'utf-8' ) : void Sets the HTTP headers needed by file download action.

메소드 상세

actionDownload() 공개 메소드

Download the exported file
public actionDownload ( ) : mixed
리턴 mixed

generatePDF() 보호된 메소드

Generates the PDF file
protected generatePDF ( string $content, string $filename, array $config = [] ) : void
$content string the file content
$filename string the file name
$config array the configuration for yii2-mpdf component
리턴 void

setHttpHeaders() 보호된 메소드

Sets the HTTP headers needed by file download action.
protected setHttpHeaders ( string $type, string $name, string $mime, string $encoding = 'utf-8' ) : void
$type string the file type
$name string the file name
$mime string the mime time for the file
$encoding string the encoding for the file content
리턴 void