[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/phpexcel/PHPExcel/Writer/ -> HTML.php (summary)

(no description)

File Size: 1596 lines (58 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Writer_HTML:: (38 methods):
  __construct()
  save()
  mapVAlign()
  mapHAlign()
  mapBorderStyle()
  getSheetIndex()
  setSheetIndex()
  getGenerateSheetNavigationBlock()
  setGenerateSheetNavigationBlock()
  writeAllSheets()
  generateHTMLHeader()
  generateSheetData()
  generateNavigation()
  extendRowsForChartsAndImages()
  writeImageInCell()
  writeChartInCell()
  generateStyles()
  buildCSS()
  createCSSStyle()
  createCSSStyleAlignment()
  createCSSStyleFont()
  createCSSStyleBorders()
  createCSSStyleBorder()
  createCSSStyleFill()
  generateHTMLFooter()
  generateTableHeader()
  generateTableFooter()
  generateRow()
  assembleCSS()
  getImagesRoot()
  setImagesRoot()
  getEmbedImages()
  setEmbedImages()
  getUseInlineCss()
  setUseInlineCss()
  formatColor()
  calculateSpans()
  setMargins()


Class: PHPExcel_Writer_HTML  - X-Ref

PHPExcel_Writer_HTML

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

__construct(PHPExcel $phpExcel)   X-Ref
Create a new PHPExcel_Writer_HTML

param: PHPExcel    $phpExcel    PHPExcel object

save($pFilename = null)   X-Ref
Save PHPExcel to file

param: string        $pFilename

mapVAlign($vAlign)   X-Ref
Map VAlign

param: string        $vAlign        Vertical alignment
return: string

mapHAlign($hAlign)   X-Ref
Map HAlign

param: string        $hAlign        Horizontal alignment
return: string|false

mapBorderStyle($borderStyle)   X-Ref
Map border style

param: int        $borderStyle        Sheet index
return: string

getSheetIndex()   X-Ref
Get sheet index

return: int

setSheetIndex($pValue = 0)   X-Ref
Set sheet index

param: int        $pValue        Sheet index
return: PHPExcel_Writer_HTML

getGenerateSheetNavigationBlock()   X-Ref
Get sheet index

return: boolean

setGenerateSheetNavigationBlock($pValue = true)   X-Ref
Set sheet index

param: boolean        $pValue        Flag indicating whether the sheet navigation block should be generated or not
return: PHPExcel_Writer_HTML

writeAllSheets()   X-Ref
Write all sheets (resets sheetIndex to NULL)


generateHTMLHeader($pIncludeStyles = false)   X-Ref
Generate HTML header

param: boolean        $pIncludeStyles        Include styles?
return: string

generateSheetData()   X-Ref
Generate sheet data

return: string

generateNavigation()   X-Ref
Generate sheet tabs

return: string

extendRowsForChartsAndImages(PHPExcel_Worksheet $pSheet, $row)   X-Ref
No description

writeImageInCell(PHPExcel_Worksheet $pSheet, $coordinates)   X-Ref
Generate image tag in cell

param: PHPExcel_Worksheet    $pSheet            PHPExcel_Worksheet
param: string                $coordinates    Cell coordinates
return: string

writeChartInCell(PHPExcel_Worksheet $pSheet, $coordinates)   X-Ref
Generate chart tag in cell

param: PHPExcel_Worksheet    $pSheet            PHPExcel_Worksheet
param: string                $coordinates    Cell coordinates
return: string

generateStyles($generateSurroundingHTML = true)   X-Ref
Generate CSS styles

param: boolean    $generateSurroundingHTML    Generate surrounding HTML tags? (<style> and </style>)
return: string

buildCSS($generateSurroundingHTML = true)   X-Ref
Build CSS styles

param: boolean    $generateSurroundingHTML    Generate surrounding HTML style? (html { })
return: array

createCSSStyle(PHPExcel_Style $pStyle)   X-Ref
Create CSS style

param: PHPExcel_Style        $pStyle            PHPExcel_Style
return: array

createCSSStyleAlignment(PHPExcel_Style_Alignment $pStyle)   X-Ref
Create CSS style (PHPExcel_Style_Alignment)

param: PHPExcel_Style_Alignment        $pStyle            PHPExcel_Style_Alignment
return: array

createCSSStyleFont(PHPExcel_Style_Font $pStyle)   X-Ref
Create CSS style (PHPExcel_Style_Font)

param: PHPExcel_Style_Font        $pStyle            PHPExcel_Style_Font
return: array

createCSSStyleBorders(PHPExcel_Style_Borders $pStyle)   X-Ref
Create CSS style (PHPExcel_Style_Borders)

param: PHPExcel_Style_Borders        $pStyle            PHPExcel_Style_Borders
return: array

createCSSStyleBorder(PHPExcel_Style_Border $pStyle)   X-Ref
Create CSS style (PHPExcel_Style_Border)

param: PHPExcel_Style_Border        $pStyle            PHPExcel_Style_Border
return: string

createCSSStyleFill(PHPExcel_Style_Fill $pStyle)   X-Ref
Create CSS style (PHPExcel_Style_Fill)

param: PHPExcel_Style_Fill        $pStyle            PHPExcel_Style_Fill
return: array

generateHTMLFooter()   X-Ref
Generate HTML footer


generateTableHeader($pSheet)   X-Ref
Generate table header

param: PHPExcel_Worksheet    $pSheet        The worksheet for the table we are writing
return: string

generateTableFooter()   X-Ref
Generate table footer


generateRow(PHPExcel_Worksheet $pSheet, $pValues = null, $pRow = 0, $cellType = 'td')   X-Ref
Generate row

param: PHPExcel_Worksheet    $pSheet            PHPExcel_Worksheet
param: array                $pValues        Array containing cells in a row
param: int                    $pRow            Row number (0-based)
return: string

assembleCSS($pValue = array()   X-Ref
Takes array where of CSS properties / values and converts to CSS string

param: array
return: string

getImagesRoot()   X-Ref
Get images root

return: string

setImagesRoot($pValue = '.')   X-Ref
Set images root

param: string $pValue
return: PHPExcel_Writer_HTML

getEmbedImages()   X-Ref
Get embed images

return: boolean

setEmbedImages($pValue = '.')   X-Ref
Set embed images

param: boolean $pValue
return: PHPExcel_Writer_HTML

getUseInlineCss()   X-Ref
Get use inline CSS?

return: boolean

setUseInlineCss($pValue = false)   X-Ref
Set use inline CSS?

param: boolean $pValue
return: PHPExcel_Writer_HTML

formatColor($pValue, $pFormat)   X-Ref
Add color to formatted string as inline style

param: string $pValue Plain formatted value without color
param: string $pFormat Format code
return: string

calculateSpans()   X-Ref
Calculate information about HTML colspan and rowspan which is not always the same as Excel's


setMargins(PHPExcel_Worksheet $pSheet)   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1