PHP Class Liuggio\ExcelBundle\Factory

Afficher le fichier Open project: liuggio/excelbundle Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public __construct ( $phpExcelIO = '\PHPExcel_IOFactory' )

createHelperHTML() public méthode

Create a PHPExcel Helper HTML Object
public createHelperHTML ( ) : PHPExcel_Helper_HTML
Résultat PHPExcel_Helper_HTML

createPHPExcelObject() public méthode

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
Résultat PHPExcel

createPHPExcelWorksheetDrawing() public méthode

Create a worksheet drawing
public createPHPExcelWorksheetDrawing ( ) : PHPExcel_Worksheet_Drawing
Résultat PHPExcel_Worksheet_Drawing

createStreamedResponse() public méthode

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
Résultat Symfony\Component\HttpFoundation\StreamedResponse

createWriter() public méthode

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
Résultat PHPExcel_Writer_IWriter