PHPExcel_Worksheet
category | PHPExcel |
---|---|
package | PHPExcel_Worksheet |
copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
__clone()
__construct(\PHPExcel $pParent, string $pTitle)
__destruct()
addChart(\PHPExcel_Chart $pChart, int | null $iChartIndex) : \PHPExcel_Chart
\PHPExcel_Chart
int
null
Index where chart should go (0,1,..., or null for last)
calculateColumnWidths(boolean $calculateMergeCells) : \PHPExcel_Worksheet;
boolean
Calculate merge cell width
\PHPExcel_Worksheet;
calculateWorksheetDataDimension() : string
string
String containing the dimension of this worksheet that actually contain datacalculateWorksheetDimension() : string
string
String containing the dimension of this worksheetcellExists(string $pCoordinate) : boolean
cellExistsByColumnAndRow(string $pColumn, string $pRow) : boolean
string
Numeric column coordinate of the cell
string
Numeric row coordinate of the cell
boolean
conditionalStylesExists(string $pCoordinate) : boolean
string
boolean
dataValidationExists(string $pCoordinate) : boolean
string
boolean
disconnectCells()
duplicateConditionalStyle(array $pCellStyle, string $pRange) : \PHPExcel_Worksheet
Please note that this will overwrite existing cell styles for cells in range!
array
of PHPExcel_Style_Conditional $pCellStyle Cell style to duplicate
string
Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
\PHPExcel_Exception |
---|
duplicateStyle(\PHPExcel_Style $pCellStyle, string $pRange) : \PHPExcel_Worksheet
Please note that this will overwrite existing cell styles for cells in range!
string
Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
\PHPExcel_Exception |
---|
duplicateStyleArray(array $pStyles, string $pRange, boolean $pAdvanced) : \PHPExcel_Worksheet
Please note that this will overwrite existing cell styles for cells in range, if they are in the styles array. For example, if you decide to set a range of cells to font bold, only include font bold in the styles array.
deprecated |
---|
array
Array containing style information
string
Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
boolean
Advanced mode for setting borders.
\PHPExcel_Exception |
---|
extractSheetTitle(string $pRange, bool $returnRange) : mixed
Example: extractSheetTitle("testSheet!A1") ==> 'A1' Example: extractSheetTitle("'testSheet 1'!A1", true) ==> array('testSheet 1', 'A1');
string
Range to extract title from
bool
Return range? (see example)
mixed
freezePane(string $pCell) : \PHPExcel_Worksheet
string
Cell (i.e. A2) Examples: A2 will freeze the rows above cell A2 (i.e row 1) B1 will freeze the columns to the left of cell B1 (i.e column A) B2 will freeze the rows above and to the left of cell A2 (i.e row 1 and column A)
\PHPExcel_Exception |
---|
freezePaneByColumnAndRow(int $pColumn, int $pRow) : \PHPExcel_Worksheet
int
Numeric column coordinate of the cell
int
Numeric row coordinate of the cell
\PHPExcel_Exception |
---|
fromArray(array $source, mixed $nullValue, string $startCell, boolean $strictNullComparison) : \PHPExcel_Worksheet
array
Source array
mixed
Value in source array that stands for blank cell
string
Insert array starting from this cell address as the top left coordinate
boolean
Apply strict comparison when testing for null values in the array
\PHPExcel_Exception |
---|
getActiveCell() : string
string
Example: 'A1'getAutoFilter()
@return PHPExcel_Worksheet_AutoFilter
getBreaks() : array[]
array[]
getCell(string $pCoordinate) : \PHPExcel_Cell
string
Coordinate of the cell
\PHPExcel_Exception |
---|
\PHPExcel_Cell
Cell that was foundgetCellByColumnAndRow(string $pColumn, string $pRow) : \PHPExcel_Cell
string
Numeric column coordinate of the cell
string
Numeric row coordinate of the cell
\PHPExcel_Cell
Cell that was foundgetCellCacheController() : \PHPExcel_CachedObjectStorage_xxx
\PHPExcel_CachedObjectStorage_xxx
getChartByIndex(string $index) : false | \PHPExcel_Chart
string
Chart index position
\PHPExcel_Exception |
---|
false
\PHPExcel_Chart
getChartCount() : int
int
The number of chartsgetChartNames() : string[]
getColumnDimension(string $pColumn) : \PHPExcel_Worksheet_ColumnDimension
getColumnDimensionByColumn(string $pColumn) : \PHPExcel_Worksheet_ColumnDimension
string
Numeric column coordinate of the cell
getColumnDimensions() : \PHPExcel_Worksheet_ColumnDimension[]
getComment(string $pCellCoordinate) : \PHPExcel_Comment
string
Cell coordinate to get comment for
\PHPExcel_Exception |
---|
getCommentByColumnAndRow(int $pColumn, int $pRow) : \PHPExcel_Comment
int
Numeric column coordinate of the cell
int
Numeric row coordinate of the cell
getConditionalStyles(string $pCoordinate) : \PHPExcel_Style_Conditional[]
getConditionalStylesCollection() : array
array
getDataValidation(string $pCellCoordinate)
string
Cell coordinate to get data validation for
getDataValidationCollection() : \PHPExcel_Cell_DataValidation[]
getDefaultColumnDimension() : \PHPExcel_Worksheet_ColumnDimension
getDrawingCollection() : \PHPExcel_Worksheet_BaseDrawing[]
getFreezePane() : string
string
getHashCode() : string
string
Hash codegetHighestColumn() : string
string
Highest column namegetHighestDataColumn() : string
string
Highest column name that contains datagetHighestDataRow() : string
string
Highest row number that contains datagetHighestRow() : int
int
Highest row numbergetHighestRowAndColumn() : array
array
Highest column name and highest row numbergetHyperlink(string $pCellCoordinate)
string
Cell coordinate to get hyperlink for
getInvalidCharacters() : array
array
getMergeCells() : array[]
array[]
getPrintGridlines() : boolean
boolean
getProtectedCells() : array[]
array[]
getRightToLeft() : boolean
boolean
getRowDimensions() : \PHPExcel_Worksheet_RowDimension[]
getRowIterator(integer $startRow) : \PHPExcel_Worksheet_RowIterator
integer
The row number at which to start iterating
getSelectedCell() : string
deprecated |
---|
string
getSelectedCells() : string
string
getSheetState() : string
string
Sheet state (visible, hidden, veryHidden)getShowGridlines() : boolean
boolean
getShowRowColHeaders() : boolean
boolean
getShowSummaryBelow() : boolean
boolean
getShowSummaryRight() : boolean
boolean
getStyle(string $pCellCoordinate) : \PHPExcel_Style
string
Cell coordinate to get style for
\PHPExcel_Exception |
---|
getStyleByColumnAndRow(int $pColumn, int $pRow) : \PHPExcel_Style
int
Numeric column coordinate of the cell
int
Numeric row coordinate of the cell
getTitle() : string
string
hyperlinkExists(string $pCoordinate) : boolean
string
boolean
insertNewColumnBefore(int $pBefore, int $pNumCols) : \PHPExcel_Worksheet
int
Insert before this one
int
Number of columns to insert
\PHPExcel_Exception |
---|
insertNewColumnBeforeByIndex(int $pBefore, int $pNumCols) : \PHPExcel_Worksheet
int
Insert before this one (numeric column coordinate of the cell)
int
Number of columns to insert
\PHPExcel_Exception |
---|
insertNewRowBefore(int $pBefore, int $pNumRows) : \PHPExcel_Worksheet
int
Insert before this one
int
Number of rows to insert
\PHPExcel_Exception |
---|
isTabColorSet() : boolean
boolean
mergeCells(string $pRange) : \PHPExcel_Worksheet
mergeCellsByColumnAndRow(int $pColumn1, int $pRow1, int $pColumn2, int $pRow2) : \PHPExcel_Worksheet
int
Numeric column coordinate of the first cell
int
Numeric row coordinate of the first cell
int
Numeric column coordinate of the last cell
int
Numeric row coordinate of the last cell
\PHPExcel_Exception |
---|
namedRangeToArray(string $pNamedRange, mixed $nullValue, boolean $calculateFormulas, boolean $formatData, boolean $returnCellRef) : array
string
Name of the Named Range
mixed
Value returned in the array entry if a cell doesn't exist
boolean
Should formulas be calculated?
boolean
Should formatting be applied to cell values?
boolean
False - Return a simple array of rows and columns indexed by number counting from zero True - Return rows and columns indexed by their actual row and column IDs
\PHPExcel_Exception |
---|
array
protectCells(string $pRange, string $pPassword, boolean $pAlreadyHashed) : \PHPExcel_Worksheet
string
Cell (e.g. A1) or cell range (e.g. A1:E1)
string
Password to unlock the protection
boolean
If the password has already been hashed, set this to true
\PHPExcel_Exception |
---|
protectCellsByColumnAndRow(int $pColumn1, int $pRow1, int $pColumn2, int $pRow2, string $pPassword, boolean $pAlreadyHashed) : \PHPExcel_Worksheet
int
Numeric column coordinate of the first cell
int
Numeric row coordinate of the first cell
int
Numeric column coordinate of the last cell
int
Numeric row coordinate of the last cell
string
Password to unlock the protection
boolean
If the password has already been hashed, set this to true
\PHPExcel_Exception |
---|
rangeToArray(string $pRange, mixed $nullValue, boolean $calculateFormulas, boolean $formatData, boolean $returnCellRef) : array
string
Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
mixed
Value returned in the array entry if a cell doesn't exist
boolean
Should formulas be calculated?
boolean
Should formatting be applied to cell values?
boolean
False - Return a simple array of rows and columns indexed by number counting from zero True - Return rows and columns indexed by their actual row and column IDs
array
removeColumn(int $pColumn, int $pNumCols) : \PHPExcel_Worksheet
int
Remove starting with this one
int
Number of columns to remove
\PHPExcel_Exception |
---|
removeColumnByIndex(int $pColumn, int $pNumCols) : \PHPExcel_Worksheet
int
Remove starting with this one (numeric column coordinate of the cell)
int
Number of columns to remove
\PHPExcel_Exception |
---|
removeConditionalStyles(string $pCoordinate) : \PHPExcel_Worksheet
removeRow(int $pRow, int $pNumRows) : \PHPExcel_Worksheet
int
Remove starting with this one
int
Number of rows to remove
\PHPExcel_Exception |
---|
setAutoFilter($pValue)
@param PHPExcel_Worksheet_AutoFilter|string $pValue A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility
\PHPExcel_Exception |
@return PHPExcel_Worksheet |
---|
setAutoFilterByColumnAndRow($pColumn1, integer $pRow1, $pColumn2, $pRow2)
@param integer $pColumn1 Numeric column coordinate of the first cell
integer
Numeric row coordinate of the first cell @param integer $pColumn2 Numeric column coordinate of the second cell @param integer $pRow2 Numeric row coordinate of the second cell @throws PHPExcel_Exception @return PHPExcel_Worksheet
setBreak(string $pCell, int $pBreak) : \PHPExcel_Worksheet
string
Cell coordinate (e.g. A1)
int
Break type (type of PHPExcel_Worksheet::BREAK_*)
\PHPExcel_Exception |
---|
setBreakByColumnAndRow(integer $pColumn, integer $pRow, integer $pBreak) : \PHPExcel_Worksheet
integer
Numeric column coordinate of the cell
integer
Numeric row coordinate of the cell
integer
Break type (type of PHPExcel_Worksheet::BREAK_*)
setCellValue(string $pCoordinate, mixed $pValue, bool $returnCell) : \PHPExcel_Worksheet | \PHPExcel_Cell
string
Coordinate of the cell
mixed
Value of the cell
bool
Return the worksheet (false, default) or the cell (true)
\PHPExcel_Worksheet
\PHPExcel_Cell
Depending on the last parameter being specifiedsetCellValueByColumnAndRow(string $pColumn, string $pRow, mixed $pValue, bool $returnCell) : \PHPExcel_Worksheet | \PHPExcel_Cell
string
Numeric column coordinate of the cell (A = 0)
string
Numeric row coordinate of the cell
mixed
Value of the cell
bool
Return the worksheet (false, default) or the cell (true)
\PHPExcel_Worksheet
\PHPExcel_Cell
Depending on the last parameter being specifiedsetCellValueExplicit(string $pCoordinate, mixed $pValue, string $pDataType, bool $returnCell) : \PHPExcel_Worksheet | \PHPExcel_Cell
string
Coordinate of the cell
mixed
Value of the cell
string
Explicit data type
bool
Return the worksheet (false, default) or the cell (true)
\PHPExcel_Worksheet
\PHPExcel_Cell
Depending on the last parameter being specifiedsetCellValueExplicitByColumnAndRow(string $pColumn, string $pRow, mixed $pValue, string $pDataType, bool $returnCell) : \PHPExcel_Worksheet | \PHPExcel_Cell
string
Numeric column coordinate of the cell
string
Numeric row coordinate of the cell
mixed
Value of the cell
string
Explicit data type
bool
Return the worksheet (false, default) or the cell (true)
\PHPExcel_Worksheet
\PHPExcel_Cell
Depending on the last parameter being specifiedsetConditionalStyles($pCoordinate, $pValue) : \PHPExcel_Worksheet
string E.g. 'A1'
PHPExcel_Style_Conditional[]
setDataValidation(string $pCellCoordinate, \PHPExcel_Cell_DataValidation $pDataValidation) : \PHPExcel_Worksheet
string
Cell coordinate to insert data validation
\PHPExcel_Cell_DataValidation
setDefaultStyle(\PHPExcel_Style $pValue) : \PHPExcel_Worksheet
setHyperlink(string $pCellCoordinate, \PHPExcel_Cell_Hyperlink $pHyperlink) : \PHPExcel_Worksheet
string
Cell coordinate to insert hyperlink
\PHPExcel_Cell_Hyperlink
setMergeCells(array $pValue)
Use instead mergeCells() to merge a single cell range.
array
setSelectedCellByColumnAndRow(int $pColumn, int $pRow) : \PHPExcel_Worksheet
int
Numeric column coordinate of the cell
int
Numeric row coordinate of the cell
\PHPExcel_Exception |
---|
setSelectedCells(string $pCoordinate) : \PHPExcel_Worksheet
string
Cell range, examples: 'A1', 'B2:G5', 'A:C', '3:6'
\PHPExcel_Exception |
---|
setSharedStyle(\PHPExcel_Style $pSharedCellStyle, string $pRange) : \PHPExcel_Worksheet
Please note that this will overwrite existing cell styles for cells in range!
deprecated |
---|
string
Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
\PHPExcel_Exception |
---|
setTitle(string $pValue, string $updateFormulaCellReferences) : \PHPExcel_Worksheet
string
String containing the dimension of this worksheet
string
boolean Flag indicating whether cell references in formulae should be updated to reflect the new sheet name. This should be left as the default true, unless you are certain that no formula cells on any worksheet contain references to this worksheet
shrinkRangeToFit(string $range) : string
string
string
Adjusted range valuetoArray(mixed $nullValue, boolean $calculateFormulas, boolean $formatData, boolean $returnCellRef) : array
mixed
Value returned in the array entry if a cell doesn't exist
boolean
Should formulas be calculated?
boolean
Should formatting be applied to cell values?
boolean
False - Return a simple array of rows and columns indexed by number counting from zero True - Return rows and columns indexed by their actual row and column IDs
array
unmergeCells(string $pRange) : \PHPExcel_Worksheet
unmergeCellsByColumnAndRow(int $pColumn1, int $pRow1, int $pColumn2, int $pRow2) : \PHPExcel_Worksheet
int
Numeric column coordinate of the first cell
int
Numeric row coordinate of the first cell
int
Numeric column coordinate of the last cell
int
Numeric row coordinate of the last cell
\PHPExcel_Exception |
---|
unprotectCells(string $pRange) : \PHPExcel_Worksheet
string
Cell (e.g. A1) or cell range (e.g. A1:E1)
\PHPExcel_Exception |
---|
unprotectCellsByColumnAndRow(int $pColumn1, int $pRow1, int $pColumn2, int $pRow2, string $pPassword, boolean $pAlreadyHashed) : \PHPExcel_Worksheet
int
Numeric column coordinate of the first cell
int
Numeric row coordinate of the first cell
int
Numeric column coordinate of the last cell
int
Numeric row coordinate of the last cell
string
Password to unlock the protection
boolean
If the password has already been hashed, set this to true
\PHPExcel_Exception |
---|
_checkSheetTitle(string $pValue) : string
string
The string to check
\PHPExcel_Exception |
---|
string
The valid string$_activeCell : string
(Only one!)
$_autoFilter : \PHPExcel_Worksheet_AutoFilter
$_breaks : array
$_cachedHighestColumn : string
$_cachedHighestRow : int
$_cellCollection : \PHPExcel_CachedObjectStorage_xxx
$_cellCollectionIsSorted : boolean
$_chartCollection : \PHPExcel_Chart[]
$_columnDimensions : \PHPExcel_Worksheet_ColumnDimension[]
$_conditionalStylesCollection : array
Indexed by cell coordinate, e.g. 'A1'
$_dataValidationCollection : array
Indexed by cell coordinate, e.g. 'A1'
$_defaultColumnDimension : \PHPExcel_Worksheet_ColumnDimension
$_defaultRowDimension : \PHPExcel_Worksheet_RowDimension
$_dirty : boolean
$_drawingCollection : \PHPExcel_Worksheet_BaseDrawing[]
$_freezePane : string
$_hash : string
$_hyperlinkCollection : array
Indexed by cell coordinate, e.g. 'A1'
$_invalidCharacters : array
$_mergeCells : array
$_pageMargins : \PHPExcel_Worksheet_PageMargins
$_pageSetup : \PHPExcel_Worksheet_PageSetup
$_parent : \PHPExcel
$_printGridlines : boolean
$_protectedCells : array
$_protection : \PHPExcel_Worksheet_Protection
$_rightToLeft : boolean
$_rowDimensions : \PHPExcel_Worksheet_RowDimension[]
$_selectedCells : string
$_sheetState : string
$_sheetView : \PHPExcel_Worksheet_SheetView
$_showGridlines : boolean
$_showRowColHeaders : boolean
$_showSummaryBelow : boolean
$_showSummaryRight : boolean
$_styles : \PHPExcel_Style[]
$_tabColor : \PHPExcel_Style_Color
$_title : string
BREAK_COLUMN
BREAK_NONE
BREAK_ROW
SHEETSTATE_HIDDEN
SHEETSTATE_VERYHIDDEN
SHEETSTATE_VISIBLE