PHP 클래스 XLSXWriter

파일 보기 프로젝트 열기: mk-j/php_xlsxwriter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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 ) ------------------------------------------------------------------

보호된 메소드들

메소드 설명
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 ( )

비공개 메소드들

메소드 설명
addCellFormat ( $cell_format )
determineCellType ( $cell_format )
escapeCellFormat ( $cell_format )

메소드 상세

__construct() 공개 메소드

public __construct ( )

__destruct() 공개 메소드

public __destruct ( )

array_first_key() 공개 정적인 메소드

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

buildAppXML() 보호된 메소드

protected buildAppXML ( )

buildContentTypesXML() 보호된 메소드

protected buildContentTypesXML ( )

buildCoreXML() 보호된 메소드

protected buildCoreXML ( )

buildRelationshipsXML() 보호된 메소드

protected buildRelationshipsXML ( )

buildWorkbookRelsXML() 보호된 메소드

protected buildWorkbookRelsXML ( )

buildWorkbookXML() 보호된 메소드

protected buildWorkbookXML ( )

convert_date_time() 공개 정적인 메소드

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

finalizeSheet() 보호된 메소드

protected finalizeSheet ( $sheet_name )

initializeSheet() 보호된 메소드

protected initializeSheet ( $sheet_name )

log() 공개 정적인 메소드

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

markMergedCell() 공개 메소드

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

sanitize_filename() 공개 정적인 메소드

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

setAuthor() 공개 메소드

public setAuthor ( $author = '' )

setSharedString() 보호된 메소드

protected setSharedString ( $v )

setTempDir() 공개 메소드

public setTempDir ( $dir )

tempFilename() 보호된 메소드

protected tempFilename ( )

writeCell() 보호된 메소드

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

writeSharedStringsXML() 보호된 메소드

protected writeSharedStringsXML ( )

writeSheet() 공개 메소드

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

writeSheetHeader() 공개 메소드

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

writeSheetRow() 공개 메소드

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

writeStylesXML() 보호된 메소드

protected writeStylesXML ( )

writeToFile() 공개 메소드

public writeToFile ( $filename )

writeToStdOut() 공개 메소드

public writeToStdOut ( )

writeToString() 공개 메소드

public writeToString ( )

xlsCell() 공개 정적인 메소드

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

xmlspecialchars() 공개 정적인 메소드

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

프로퍼티 상세

$author 보호되어 있는 프로퍼티

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

$cell_formats 보호되어 있는 프로퍼티

protected $cell_formats

$cell_types 보호되어 있는 프로퍼티

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

$current_sheet 보호되어 있는 프로퍼티

contains friendly format like datetime
protected $current_sheet

$shared_string_count 보호되어 있는 프로퍼티

unique set
protected $shared_string_count

$shared_strings 보호되어 있는 프로퍼티

protected $shared_strings

$sheets 보호되어 있는 프로퍼티

protected $sheets

$temp_dir 보호되어 있는 프로퍼티

protected $temp_dir

$temp_files 보호되어 있는 프로퍼티

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