PHP Class XLSXWriter

Afficher le fichier Open project: mk-j/php_xlsxwriter Class Usage Examples

Protected Properties

Свойство Type Description
$author ------------------------------------------------------------------
$cell_formats
$cell_types contains excel format like YYYY-MM-DD HH:MM:SS
$current_sheet contains friendly format like datetime
$shared_string_count unique set
$shared_strings
$sheets
$temp_dir
$temp_files count of non-unique references to the unique set

Méthodes publiques

Méthode Description
__construct ( )
__destruct ( )
array_first_key ( array $arr ) ------------------------------------------------------------------
convert_date_time ( $date_input ) ------------------------------------------------------------------
log ( $string ) ------------------------------------------------------------------
markMergedCell ( $sheet_name, $start_cell_row, $start_cell_column, $end_cell_row, $end_cell_column )
sanitize_filename ( $filename ) ------------------------------------------------------------------
setAuthor ( $author = '' )
setTempDir ( $dir )
writeSheet ( array $data, $sheet_name = '', array $header_types = [] )
writeSheetHeader ( $sheet_name, array $header_types, $suppress_row = false )
writeSheetRow ( $sheet_name, array $row )
writeToFile ( $filename )
writeToStdOut ( )
writeToString ( )
xlsCell ( $row_number, $column_number ) *
xmlspecialchars ( $val ) ------------------------------------------------------------------

Méthodes protégées

Méthode Description
buildAppXML ( )
buildContentTypesXML ( )
buildCoreXML ( )
buildRelationshipsXML ( )
buildWorkbookRelsXML ( )
buildWorkbookXML ( )
finalizeSheet ( $sheet_name )
initializeSheet ( $sheet_name )
setSharedString ( $v )
tempFilename ( )
writeCell ( XLSXWriter_BuffererWriter &$file, $row_number, $column_number, $value, $cell_format_index )
writeSharedStringsXML ( )
writeStylesXML ( )

Private Methods

Méthode Description
addCellFormat ( $cell_format )
determineCellType ( $cell_format )
escapeCellFormat ( $cell_format )

Method Details

__construct() public méthode

public __construct ( )

__destruct() public méthode

public __destruct ( )

array_first_key() public static méthode

------------------------------------------------------------------
public static array_first_key ( array $arr )
$arr array

buildAppXML() protected méthode

protected buildAppXML ( )

buildContentTypesXML() protected méthode

protected buildContentTypesXML ( )

buildCoreXML() protected méthode

protected buildCoreXML ( )

buildRelationshipsXML() protected méthode

protected buildRelationshipsXML ( )

buildWorkbookRelsXML() protected méthode

protected buildWorkbookRelsXML ( )

buildWorkbookXML() protected méthode

protected buildWorkbookXML ( )

convert_date_time() public static méthode

------------------------------------------------------------------
public static convert_date_time ( $date_input )

finalizeSheet() protected méthode

protected finalizeSheet ( $sheet_name )

initializeSheet() protected méthode

protected initializeSheet ( $sheet_name )

log() public static méthode

------------------------------------------------------------------
public static log ( $string )

markMergedCell() public méthode

public markMergedCell ( $sheet_name, $start_cell_row, $start_cell_column, $end_cell_row, $end_cell_column )

sanitize_filename() public static méthode

------------------------------------------------------------------
public static sanitize_filename ( $filename )

setAuthor() public méthode

public setAuthor ( $author = '' )

setSharedString() protected méthode

protected setSharedString ( $v )

setTempDir() public méthode

public setTempDir ( $dir )

tempFilename() protected méthode

protected tempFilename ( )

writeCell() protected méthode

protected writeCell ( XLSXWriter_BuffererWriter &$file, $row_number, $column_number, $value, $cell_format_index )
$file XLSXWriter_BuffererWriter

writeSharedStringsXML() protected méthode

protected writeSharedStringsXML ( )

writeSheet() public méthode

public writeSheet ( array $data, $sheet_name = '', array $header_types = [] )
$data array
$header_types array

writeSheetHeader() public méthode

public writeSheetHeader ( $sheet_name, array $header_types, $suppress_row = false )
$header_types array

writeSheetRow() public méthode

public writeSheetRow ( $sheet_name, array $row )
$row array

writeStylesXML() protected méthode

protected writeStylesXML ( )

writeToFile() public méthode

public writeToFile ( $filename )

writeToStdOut() public méthode

public writeToStdOut ( )

writeToString() public méthode

public writeToString ( )

xlsCell() public static méthode

*
public static xlsCell ( $row_number, $column_number )
$row_number int, zero based
$column_number int, zero based

xmlspecialchars() public static méthode

------------------------------------------------------------------
public static xmlspecialchars ( $val )

Property Details

$author protected_oe property

------------------------------------------------------------------
protected $author

$cell_formats protected_oe property

protected $cell_formats

$cell_types protected_oe property

contains excel format like YYYY-MM-DD HH:MM:SS
protected $cell_types

$current_sheet protected_oe property

contains friendly format like datetime
protected $current_sheet

$shared_string_count protected_oe property

unique set
protected $shared_string_count

$shared_strings protected_oe property

protected $shared_strings

$sheets protected_oe property

protected $sheets

$temp_dir protected_oe property

protected $temp_dir

$temp_files protected_oe property

count of non-unique references to the unique set
protected $temp_files