Class: PHPExcel_Worksheet
Source Location: /PHPExcel/Worksheet.php
PHPExcel_Worksheet
Author(s):
Copyright:
- Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
Implements interfaces:
|
|
|
Class Details
Class Methods
static method extractSheetTitle [line 2248]
static mixed extractSheetTitle(
string
$pRange, [bool
$returnRange = false])
|
|
Extract worksheet title from range. Example: extractSheetTitle('test!A1') ==> 'A1' Example: extractSheetTitle('test!A1', true) ==> array('test', 'A1');
Tags:
Parameters:
static method getInvalidCharacters [line 379]
static array getInvalidCharacters(
)
|
|
Get array of invalid characters for sheet title
Tags:
constructor __construct [line 313]
PHPExcel_Worksheet __construct(
[
$pParent = null], [string
$pTitle = 'Worksheet'])
|
|
Create a new worksheet
Tags:
Parameters:
method calculateColumnWidths [line 542]
PHPExcel_Worksheet; calculateColumnWidths(
[boolean
$calculateMergeCells = false])
|
|
Calculate widths for auto-size columns
Tags:
Parameters:
method calculateWorksheetDimension [line 530]
string calculateWorksheetDimension(
)
|
|
Calculate worksheet dimension
Tags:
method cellExists [line 1005]
boolean cellExists(
[string
$pCoordinate = 'A1'])
|
|
Cell at a specific coordinate exists?
Tags:
Parameters:
method cellExistsByColumnAndRow [line 1052]
boolean cellExistsByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 0])
|
|
Cell at a specific coordinate by using numeric cell coordinates exists?
Tags:
Parameters:
method conditionalStylesExists [line 1190]
boolean conditionalStylesExists(
[string
$pCoordinate = 'A1'])
|
|
Do conditional styles exist for this cell?
Tags:
Parameters:
method copy [line 2455]
Copy worksheet (!= clone!)
Tags:
method dataValidationExists [line 2371]
boolean dataValidationExists(
[
$pCoordinate = 'A1'], string
$pCellCoordinate)
|
|
Data validation at a specific coordinate exists?
Tags:
Parameters:
method disconnectCells [line 356]
method duplicateStyle [line 1272]
Duplicate cell style to a range of cells Please note that this will overwrite existing cell styles for cells in range!
Tags:
Parameters:
method duplicateStyleArray [line 1340]
PHPExcel_Worksheet duplicateStyleArray(
[array
$pStyles = null], [string
$pRange = ''], [boolean
$pAdvanced = true])
|
|
Duplicate cell style array to a range of cells 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.
Tags:
Parameters:
method freezePane [line 1665]
Freeze Pane
Tags:
Parameters:
method freezePaneByColumnAndRow [line 1686]
Freeze Pane by using numeric cell coordinates
Tags:
Parameters:
method fromArray [line 2076]
PHPExcel_Worksheet fromArray(
[array
$source = null], [mixed
$nullValue = null], [
$pCell = 'A1'])
|
|
Fill worksheet from values in array
Tags:
Parameters:
method garbageCollect [line 2168]
Run PHPExcel garabage collector.
Tags:
method getActiveCell [line 1975]
method getAutoFilter [line 1604]
Get Autofilter Range
Tags:
method getBreaks [line 1387]
method getCell [line 906]
Get cell at a specific coordinate
Tags:
Parameters:
method getCellByColumnAndRow [line 977]
PHPExcel_Cell getCellByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 0])
|
|
Get cell at a specific coordinate by using numeric cell coordinates
Tags:
Parameters:
method getCellCacheController [line 369]
PHPExcel_CachedObjectStorage_xxx getCellCacheController(
)
|
|
Return the cache controller for the cell collection
Tags:
method getCellCollection [line 412]
PHPExcel_Cell[] getCellCollection(
[boolean
$pSorted = true])
|
|
Get collection of cells
Tags:
Parameters:
method getColumnDimension [line 1084]
Get column dimension at a specific column
Tags:
Parameters:
method getColumnDimensionByColumn [line 1106]
Get column dimension at a specific column by using numeric cell coordinates
Tags:
Parameters:
method getColumnDimensions [line 462]
PHPExcel_Worksheet_ColumnDimension[] getColumnDimensions(
)
|
|
Get collection of column dimensions
Tags:
method getComment [line 1923]
Get comment for cell
Tags:
Parameters:
method getCommentByColumnAndRow [line 1954]
Get comment for cell by using numeric cell coordinates
Tags:
Parameters:
method getComments [line 1911]
PHPExcel_Comment[] getComments(
)
|
|
Get comments
Tags:
method getConditionalStyles [line 1176]
PHPExcel_Style_Conditional[] getConditionalStyles(
[string
$pCoordinate = 'A1'])
|
|
Get conditional styles for a cell
Tags:
Parameters:
method getConditionalStylesCollection [line 1215]
array getConditionalStylesCollection(
)
|
|
Get collection of conditional styles
Tags:
method getDataValidation [line 2336]
void getDataValidation(
[string
$pCellCoordinate = 'A1'])
|
|
Get data validation
Tags:
Parameters:
method getDataValidationCollection [line 2381]
PHPExcel_Cell_DataValidation[] getDataValidationCollection(
)
|
|
Get collection of data validations
Tags:
method getDefaultColumnDimension [line 472]
Get default column dimension
Tags:
method getDefaultRowDimension [line 452]
Get default row dimension
Tags:
method getDefaultStyle [line 1128]
Get default style of workbork.
Tags:
method getDrawingCollection [line 482]
PHPExcel_Worksheet_BaseDrawing[] getDrawingCollection(
)
|
|
Get collection of drawings
Tags:
method getFreezePane [line 1653]
method getHashCode [line 2228]
method getHeaderFooter [line 750]
Get page header/footer
Tags:
method getHighestColumn [line 816]
string getHighestColumn(
)
|
|
Get highest worksheet column
Tags:
method getHighestRow [line 826]
Get highest worksheet row
Tags:
method getHyperlink [line 2281]
void getHyperlink(
[string
$pCellCoordinate = 'A1'])
|
|
Get hyperlink
Tags:
Parameters:
method getHyperlinkCollection [line 2326]
PHPExcel_Cell_Hyperlink[] getHyperlinkCollection(
)
|
|
Get collection of hyperlinks
Tags:
method getMergeCells [line 1493]
Get merge cells array.
Tags:
method getPageMargins [line 728]
method getPageSetup [line 706]
method getParent [line 603]
method getPrintGridlines [line 1831]
boolean getPrintGridlines(
)
|
|
Print gridlines?
Tags:
method getProtectedCells [line 1594]
array[] getProtectedCells(
)
|
|
Get protected cells
Tags:
method getProtection [line 794]
method getRightToLeft [line 2053]
boolean getRightToLeft(
)
|
|
Get right-to-left
Tags:
method getRowDimension [line 1063]
Get row dimension at a specific row
Tags:
Parameters:
method getRowDimensions [line 442]
PHPExcel_Worksheet_RowDimension[] getRowDimensions(
)
|
|
Get collection of row dimensions
Tags:
method getRowIterator [line 2159]
method getSelectedCell [line 1965]
string getSelectedCell(
)
|
|
Get selected cell
Tags:
method getSelectedCells [line 1985]
string getSelectedCells(
)
|
|
Get selected cells
Tags:
method getSheetState [line 686]
method getSheetView [line 772]
method getShowGridlines [line 1811]
boolean getShowGridlines(
)
|
|
Show gridlines?
Tags:
method getShowRowColHeaders [line 1851]
boolean getShowRowColHeaders(
)
|
|
Show row and column headers?
Tags:
method getShowSummaryBelow [line 1871]
boolean getShowSummaryBelow(
)
|
|
Show summary below? (Row/Column outlining)
Tags:
method getShowSummaryRight [line 1891]
boolean getShowSummaryRight(
)
|
|
Show summary right? (Row/Column outlining)
Tags:
method getStyle [line 1159]
Get style for cell
Tags:
Parameters:
method getStyleByColumnAndRow [line 1240]
PHPExcel_Style getStyleByColumnAndRow(
[int
$pColumn = 0], [int
$pRow = 0])
|
|
Get style for cell by using numeric cell coordinates
Tags:
Parameters:
method getStyles [line 1116]
PHPExcel_Style[] getStyles(
)
|
|
Get styles
Tags:
method getTabColor [line 2419]
method getTitle [line 632]
method hyperlinkExists [line 2316]
boolean hyperlinkExists(
[
$pCoordinate = 'A1'], string
$pCellCoordinate)
|
|
Hyperlink at a specific coordinate exists?
Tags:
Parameters:
method insertNewColumnBefore [line 1727]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewColumnBeforeByIndex [line 1745]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewRowBefore [line 1709]
Insert a new row, updating all possible related data
Tags:
Parameters:
method isTabColorSet [line 2445]
method mergeCells [line 1399]
Set merge on a cell range
Tags:
Parameters:
method mergeCellsByColumnAndRow [line 1441]
PHPExcel_Worksheet mergeCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 0], [int
$pColumn2 = 0], [int
$pRow2 = 0])
|
|
Set merge on a cell range by using numeric cell coordinates
Tags:
Parameters:
method protectCells [line 1520]
PHPExcel_Worksheet protectCells(
[string
$pRange = 'A1'], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range
Tags:
Parameters:
method protectCellsByColumnAndRow [line 1545]
PHPExcel_Worksheet protectCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 0], [int
$pColumn2 = 0], [int
$pRow2 = 0], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range by using numeric cell coordinates
Tags:
Parameters:
method rebindParent [line 613]
Re-bind parent
Tags:
Parameters:
method refreshColumnDimensions [line 492]
Refresh column dimensions
Tags:
method refreshRowDimensions [line 511]
Refresh row dimensions
Tags:
method removeColumn [line 1779]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeColumnByIndex [line 1798]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeConditionalStyles [line 1204]
Removes conditional styles for a cell
Tags:
Parameters:
method removeRow [line 1761]
Delete a row, updating all possible related data
Tags:
Parameters:
method resetTabColor [line 2432]
method setAutoFilter [line 1616]
Set Autofilter Range
Tags:
Parameters:
method setAutoFilterByColumnAndRow [line 1639]
PHPExcel_Worksheet setAutoFilterByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 0], [int
$pColumn2 = 0], [int
$pRow2 = 0])
|
|
Set Autofilter Range by using numeric cell coordinates
Tags:
Parameters:
method setBreak [line 1354]
PHPExcel_Worksheet setBreak(
[string
$pCell = 'A1'], [int
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell
Tags:
Parameters:
method setBreakByColumnAndRow [line 1377]
PHPExcel_Worksheet setBreakByColumnAndRow(
[int
$pColumn = 0], [int
$pRow = 0], [int
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell by using numeric cell coordinates
Tags:
Parameters:
method setCellValue [line 839]
Set a cell value
Tags:
Parameters:
method setCellValueByColumnAndRow [line 859]
PHPExcel_Worksheet|PHPExcel_Cell setCellValueByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 0], [mixed
$pValue = null], [bool
$returnCell = false])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setCellValueExplicit [line 878]
PHPExcel_Worksheet setCellValueExplicit(
[string
$pCoordinate = 'A1'], [mixed
$pValue = null], [string
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING])
|
|
Set a cell value
Tags:
Parameters:
method setCellValueExplicitByColumnAndRow [line 894]
PHPExcel_Worksheet setCellValueExplicitByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 0], [mixed
$pValue = null], [string
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setConditionalStyles [line 1227]
PHPExcel_Worksheet setConditionalStyles(
[$pCoordinate
$pCoordinate = 'A1'], $pValue
$pValue)
|
|
Set conditional styles
Tags:
Parameters:
method setDataValidation [line 2355]
PHPExcel_Worksheet setDataValidation(
[string
$pCellCoordinate = 'A1'], [
$pDataValidation = null])
|
|
Set data validation
Tags:
Parameters:
method setDefaultStyle [line 1141]
Set default style - should only be used by PHPExcel_IReader implementations!
Tags:
Parameters:
method setHeaderFooter [line 761]
Set page header/footer
Tags:
Parameters:
method setHyperlink [line 2300]
Set hyperlnk
Tags:
Parameters:
method setMergeCells [line 1504]
void setMergeCells(
[array
$pValue = array()])
|
|
Set merge cells array for the entire sheet. Use instead mergeCells() to merge a single cell range.
Tags:
Parameters:
method setPageMargins [line 739]
Set page margins
Tags:
Parameters:
method setPageSetup [line 717]
Set page setup
Tags:
Parameters:
method setPrintGridlines [line 1841]
Set print gridlines
Tags:
Parameters:
method setProtection [line 805]
Set Protection
Tags:
Parameters:
method setRightToLeft [line 2063]
Set right-to-left
Tags:
Parameters:
method setSelectedCell [line 1996]
Selected cell
Tags:
Parameters:
method setSelectedCellByColumnAndRow [line 2043]
Selected cell by using numeric cell coordinates
Tags:
Parameters:
method setSelectedCells [line 2008]
Select a range of cells.
Tags:
Parameters:
method setSharedStyle [line 1256]
Set shared cell style to a range of cells Please note that this will overwrite existing cell styles for cells in range!
Tags:
Parameters:
method setSheetState [line 696]
PHPExcel_Worksheet setSheetState(
[string
$value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE])
|
|
Set sheet state
Tags:
Parameters:
method setSheetView [line 783]
Set sheet view
Tags:
Parameters:
method setShowGridlines [line 1821]
Set show gridlines
Tags:
Parameters:
method setShowRowColHeaders [line 1861]
Set show row and column headers
Tags:
Parameters:
method setShowSummaryBelow [line 1881]
Set show summary below
Tags:
Parameters:
method setShowSummaryRight [line 1901]
Set show summary right
Tags:
Parameters:
method setTitle [line 643]
Set title
Tags:
Parameters:
method shrinkRangeToFit [line 2392]
string shrinkRangeToFit(
string
$range)
|
|
Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet
Tags:
Parameters:
method sortCellCollection [line 429]
Sort collection of cells
Tags:
method toArray [line 2110]
array toArray(
[mixed
$nullValue = null], [boolean
$calculateFormulas = true])
|
|
Create array from worksheet
Tags:
Parameters:
method unfreezePane [line 1696]
method unmergeCells [line 1454]
Remove merge on a cell range
Tags:
Parameters:
method unmergeCellsByColumnAndRow [line 1482]
PHPExcel_Worksheet unmergeCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 0], [int
$pColumn2 = 0], [int
$pRow2 = 0])
|
|
Remove merge on a cell range by using numeric cell coordinates
Tags:
Parameters:
method unprotectCells [line 1558]
Remove protection on a cell range
Tags:
Parameters:
method unprotectCellsByColumnAndRow [line 1583]
PHPExcel_Worksheet unprotectCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 0], [int
$pColumn2 = 0], [int
$pRow2 = 0], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Remove protection on a cell range by using numeric cell coordinates
Tags:
Parameters:
method __clone [line 2464]
Implement PHP __clone to create a deep clone, not just a shallow copy.
Tags:
Class Constants
|
|