PHP Class Liuggio\ExcelBundle\Factory

ファイルを表示 Open project: liuggio/excelbundle Class Usage Examples

Public Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( $phpExcelIO = '\PHPExcel_IOFactory' )

createHelperHTML() public method

Create a PHPExcel Helper HTML Object
public createHelperHTML ( ) : PHPExcel_Helper_HTML
return PHPExcel_Helper_HTML

createPHPExcelObject() public method

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
return PHPExcel

createPHPExcelWorksheetDrawing() public method

Create a worksheet drawing
public createPHPExcelWorksheetDrawing ( ) : PHPExcel_Worksheet_Drawing
return PHPExcel_Worksheet_Drawing

createStreamedResponse() public method

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
return Symfony\Component\HttpFoundation\StreamedResponse

createWriter() public method

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
return PHPExcel_Writer_IWriter