category |
PHPExcel |
package |
PHPExcel_Writer_HTML |
copyright |
Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
Methods
Create a new PHPExcel_Writer_HTML
__construct(\PHPExcel $phpExcel)
Build CSS styles
buildCSS(boolean $generateSurroundingHTML) : array
Parameters
$generateSurroundingHTML
boolean
Generate surrounding HTML style? (html { })
Exceptions
Returns
array
Generate sheet tabs
generateNavigation() : string
Exceptions
Returns
string
Generate sheet data
generateSheetData() : string
Exceptions
Returns
string
Generate CSS styles
generateStyles(boolean $generateSurroundingHTML) : string
Parameters
$generateSurroundingHTML
boolean
Generate surrounding HTML tags? ()
Exceptions
Returns
string
Get disk caching directory
getDiskCachingDirectory() : string
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::getDiskCachingDirectory() |
Returns
string
Get embed images
getEmbedImages() : boolean
Get sheet index
getGenerateSheetNavigationBlock() : boolean
Get images root
getImagesRoot() : string
Write charts in workbook?
If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object.
getIncludeCharts() : boolean
Inherited
If false (the default) it will ignore any charts defined in the PHPExcel object.
inherited_from |
\PHPExcel_Writer_Abstract::getIncludeCharts() |
Returns
boolean
Get sheet index
getSheetIndex() : int
Get use disk caching where possible?
getUseDiskCaching() : boolean
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::getUseDiskCaching() |
Returns
boolean
Get use inline CSS?
getUseInlineCss() : boolean
Save PHPExcel to file
save(string $pFilename)
@param string $pFilename Name of the file to save
Parameters
$pFilename
string
Exceptions
Set embed images
setEmbedImages(boolean $pValue) : \PHPExcel_Writer_HTML
Parameters
$pValue
boolean
Returns
Set sheet index
setGenerateSheetNavigationBlock(boolean $pValue) : \PHPExcel_Writer_HTML
Parameters
$pValue
boolean
Flag indicating whether the sheet navigation block should be generated or not
Returns
Set write charts in workbook
Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.
setIncludeCharts(boolean $pValue) : \PHPExcel_Writer_IWriter
Inherited
Set to false (the default) to ignore charts.
inherited_from |
\PHPExcel_Writer_Abstract::setIncludeCharts() |
Parameters
$pValue
boolean
Returns
Set use disk caching where possible?
setUseDiskCaching(boolean $pValue, string $pDirectory) : \PHPExcel_Writer_Excel2007
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::setUseDiskCaching() |
Parameters
$pValue
boolean
$pDirectory
string
Disk caching directory
Exceptions
Returns
Set use inline CSS?
setUseInlineCss(boolean $pValue) : \PHPExcel_Writer_HTML
Parameters
$pValue
boolean
Returns
Write all sheets (resets sheetIndex to NULL)
writeAllSheets()
Takes array where of CSS properties / values and converts to CSS string
_assembleCSS(array $pValue) : string
Parameters
$pValue
array
Returns
string
Calculate information about HTML colspan and rowspan which is not always the same as Excel's
_calculateSpans()
Create CSS style
_createCSSStyle(\PHPExcel_Style $pStyle) : array
Create CSS style (PHPExcel_Style_Alignment)
_createCSSStyleAlignment(\PHPExcel_Style_Alignment $pStyle) : array
Create CSS style (PHPExcel_Style_Border)
_createCSSStyleBorder(\PHPExcel_Style_Border $pStyle) : string
Parameters
Returns
string
Create CSS style (PHPExcel_Style_Borders)
_createCSSStyleBorders(\PHPExcel_Style_Borders $pStyle) : array
Create CSS style (PHPExcel_Style_Fill)
_createCSSStyleFill(\PHPExcel_Style_Fill $pStyle) : array
Create CSS style (PHPExcel_Style_Font)
_createCSSStyleFont(\PHPExcel_Style_Font $pStyle) : array
_extendRowsForChartsAndImages()
_extendRowsForChartsAndImages(\PHPExcel_Worksheet $pSheet, $row)
Generate row
_generateRow(\PHPExcel_Worksheet $pSheet, array $pValues, int $pRow) : string
Parameters
$pValues
array
Array containing cells in a row
$pRow
int
Row number (0-based)
Exceptions
Returns
string
Map border style
_mapBorderStyle(int $borderStyle) : string
Parameters
$borderStyle
int
Sheet index
Returns
string
Map HAlign
_mapHAlign(string $hAlign) : string | false
Parameters
$hAlign
string
Horizontal alignment
Returns
string
false
Map VAlign
_mapVAlign(string $vAlign) : string
Parameters
$vAlign
string
Vertical alignment
Returns
string
_setMargins()
_setMargins(\PHPExcel_Worksheet $pSheet)
Generate chart tag in cell
_writeChartInCell(\PHPExcel_Worksheet $pSheet, string $coordinates) : string
Parameters
$coordinates
string
Cell coordinates
Exceptions
Returns
string
Generate image tag in cell
_writeImageInCell(\PHPExcel_Worksheet $pSheet, string $coordinates) : string
Parameters
$coordinates
string
Cell coordinates
Exceptions
Returns
string
Properties
$_diskCachingDirectory : string
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::$$_diskCachingDirectory |
$_includeCharts : boolean
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::$$_includeCharts |
$_useDiskCaching : boolean
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::$$_useDiskCaching |
$_generateSheetNavigationBlock : boolean
$_spansAreCalculated : boolean