PHP Класс Liuggio\ExcelBundle\Factory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $phpExcelIO = '\PHPExcel_IOFactory' )
createHelperHTML ( ) : PHPExcel_Helper_HTML Create a PHPExcel Helper HTML Object
createPHPExcelObject ( string $filename = null ) : PHPExcel Creates an empty PHPExcel Object if the filename is empty, otherwise loads the file into the object.
createPHPExcelWorksheetDrawing ( ) : PHPExcel_Worksheet_Drawing Create a worksheet drawing
createStreamedResponse ( PHPExcel_Writer_IWriter $writer, integer $status = 200, array $headers = [] ) : Symfony\Component\HttpFoundation\StreamedResponse Stream the file as Response.
createWriter ( PHPExcel $phpExcelObject, string $type = 'Excel5' ) : PHPExcel_Writer_IWriter Create a writer given the PHPExcelObject and the type, the type coul be one of PHPExcel_IOFactory::$_autoResolveClasses

Описание методов

__construct() публичный Метод

public __construct ( $phpExcelIO = '\PHPExcel_IOFactory' )

createHelperHTML() публичный Метод

Create a PHPExcel Helper HTML Object
public createHelperHTML ( ) : PHPExcel_Helper_HTML
Результат PHPExcel_Helper_HTML

createPHPExcelObject() публичный Метод

Creates an empty PHPExcel Object if the filename is empty, otherwise loads the file into the object.
public createPHPExcelObject ( string $filename = null ) : PHPExcel
$filename string
Результат PHPExcel

createPHPExcelWorksheetDrawing() публичный Метод

Create a worksheet drawing
public createPHPExcelWorksheetDrawing ( ) : PHPExcel_Worksheet_Drawing
Результат PHPExcel_Worksheet_Drawing

createStreamedResponse() публичный Метод

Stream the file as Response.
public createStreamedResponse ( PHPExcel_Writer_IWriter $writer, integer $status = 200, array $headers = [] ) : Symfony\Component\HttpFoundation\StreamedResponse
$writer PHPExcel_Writer_IWriter
$status integer
$headers array
Результат Symfony\Component\HttpFoundation\StreamedResponse

createWriter() публичный Метод

Create a writer given the PHPExcelObject and the type, the type coul be one of PHPExcel_IOFactory::$_autoResolveClasses
public createWriter ( PHPExcel $phpExcelObject, string $type = 'Excel5' ) : PHPExcel_Writer_IWriter
$phpExcelObject PHPExcel
$type string
Результат PHPExcel_Writer_IWriter