Class: PHPExcel_Worksheet
Source Location: /PHPExcel/Worksheet.php
PHPExcel_Worksheet
Author(s):
Copyright:
- Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
Implements interfaces:
|
|
|
Class Details
Class Methods
static method extractSheetTitle [line 2360]
static mixed extractSheetTitle(
string
$pRange, [bool
$returnRange = false])
|
|
Extract worksheet title from range. Example: extractSheetTitle("testSheet!A1") ==> 'A1' Example: extractSheetTitle("'testSheet 1'!A1", true) ==> array('testSheet 1', 'A1');
Tags:
Parameters:
static method getInvalidCharacters [line 385]
static array getInvalidCharacters(
)
|
|
Get array of invalid characters for sheet title
Tags:
constructor __construct [line 327]
PHPExcel_Worksheet __construct(
[
$pParent = null], [string
$pTitle = 'Worksheet'])
|
|
Create a new worksheet
Tags:
Parameters:
method calculateColumnWidths [line 548]
PHPExcel_Worksheet; calculateColumnWidths(
[boolean
$calculateMergeCells = false])
|
|
Calculate widths for auto-size columns
Tags:
Parameters:
method calculateWorksheetDimension [line 536]
string calculateWorksheetDimension(
)
|
|
Calculate worksheet dimension
Tags:
method cellExists [line 1022]
boolean cellExists(
[string
$pCoordinate = 'A1'])
|
|
Cell at a specific coordinate exists?
Tags:
Parameters:
method cellExistsByColumnAndRow [line 1069]
boolean cellExistsByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1])
|
|
Cell at a specific coordinate by using numeric cell coordinates exists?
Tags:
Parameters:
method conditionalStylesExists [line 1206]
boolean conditionalStylesExists(
[string
$pCoordinate = 'A1'])
|
|
Do conditional styles exist for this cell?
Tags:
Parameters:
method copy [line 2554]
Copy worksheet (!= clone!)
Tags:
method dataValidationExists [line 2470]
boolean dataValidationExists(
[
$pCoordinate = 'A1'], string
$pCellCoordinate)
|
|
Data validation at a specific coordinate exists?
Tags:
Parameters:
method disconnectCells [line 362]
method duplicateStyle [line 1288]
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 1356]
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 1693]
Freeze Pane
Tags:
Parameters:
method freezePaneByColumnAndRow [line 1714]
Freeze Pane by using numeric cell coordinates
Tags:
Parameters:
method fromArray [line 2119]
PHPExcel_Worksheet fromArray(
[array
$source = null], [mixed
$nullValue = null], [string
$startCell = 'A1'], [boolean
$strictNullComparison = false])
|
|
Fill worksheet from values in array
Tags:
Parameters:
method garbageCollect [line 2284]
Run PHPExcel garabage collector.
Tags:
method getActiveCell [line 2016]
method getAutoFilter [line 1620]
Get Autofilter Range
Tags:
method getBreaks [line 1403]
method getCell [line 925]
Get cell at a specific coordinate
Tags:
Parameters:
method getCellByColumnAndRow [line 995]
PHPExcel_Cell getCellByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1])
|
|
Get cell at a specific coordinate by using numeric cell coordinates
Tags:
Parameters:
method getCellCacheController [line 375]
PHPExcel_CachedObjectStorage_xxx getCellCacheController(
)
|
|
Return the cache controller for the cell collection
Tags:
method getCellCollection [line 418]
PHPExcel_Cell[] getCellCollection(
[boolean
$pSorted = true])
|
|
Get collection of cells
Tags:
Parameters:
method getColumnDimension [line 1100]
Get column dimension at a specific column
Tags:
Parameters:
method getColumnDimensionByColumn [line 1122]
Get column dimension at a specific column by using numeric cell coordinates
Tags:
Parameters:
method getColumnDimensions [line 468]
PHPExcel_Worksheet_ColumnDimension[] getColumnDimensions(
)
|
|
Get collection of column dimensions
Tags:
method getComment [line 1964]
Get comment for cell
Tags:
Parameters:
method getCommentByColumnAndRow [line 1995]
Get comment for cell by using numeric cell coordinates
Tags:
Parameters:
method getComments [line 1939]
PHPExcel_Comment[] getComments(
)
|
|
Get comments
Tags:
method getConditionalStyles [line 1192]
PHPExcel_Style_Conditional[] getConditionalStyles(
[string
$pCoordinate = 'A1'])
|
|
Get conditional styles for a cell
Tags:
Parameters:
method getConditionalStylesCollection [line 1231]
array getConditionalStylesCollection(
)
|
|
Get collection of conditional styles
Tags:
method getDataValidation [line 2435]
void getDataValidation(
[string
$pCellCoordinate = 'A1'])
|
|
Get data validation
Tags:
Parameters:
method getDataValidationCollection [line 2480]
PHPExcel_Cell_DataValidation[] getDataValidationCollection(
)
|
|
Get collection of data validations
Tags:
method getDefaultColumnDimension [line 478]
Get default column dimension
Tags:
method getDefaultRowDimension [line 458]
Get default row dimension
Tags:
method getDefaultStyle [line 1144]
Get default style of workbork.
Tags:
method getDrawingCollection [line 488]
PHPExcel_Worksheet_BaseDrawing[] getDrawingCollection(
)
|
|
Get collection of drawings
Tags:
method getFreezePane [line 1681]
method getHashCode [line 2338]
method getHeaderFooter [line 767]
Get page header/footer
Tags:
method getHighestColumn [line 835]
string getHighestColumn(
)
|
|
Get highest worksheet column
Tags:
method getHighestRow [line 845]
Get highest worksheet row
Tags:
method getHyperlink [line 2380]
void getHyperlink(
[string
$pCellCoordinate = 'A1'])
|
|
Get hyperlink
Tags:
Parameters:
method getHyperlinkCollection [line 2425]
PHPExcel_Cell_Hyperlink[] getHyperlinkCollection(
)
|
|
Get collection of hyperlinks
Tags:
method getMergeCells [line 1509]
Get merge cells array.
Tags:
method getPageMargins [line 745]
method getPageSetup [line 723]
method getParent [line 609]
method getPrintGridlines [line 1859]
boolean getPrintGridlines(
)
|
|
Print gridlines?
Tags:
method getProtectedCells [line 1610]
array[] getProtectedCells(
)
|
|
Get protected cells
Tags:
method getProtection [line 811]
method getRightToLeft [line 2094]
boolean getRightToLeft(
)
|
|
Get right-to-left
Tags:
method getRowDimension [line 1080]
Get row dimension at a specific row
Tags:
Parameters:
method getRowDimensions [line 448]
PHPExcel_Worksheet_RowDimension[] getRowDimensions(
)
|
|
Get collection of row dimensions
Tags:
method getRowIterator [line 2275]
method getSelectedCell [line 2006]
string getSelectedCell(
)
|
|
Get selected cell
Tags:
method getSelectedCells [line 2026]
string getSelectedCells(
)
|
|
Get selected cells
Tags:
method getSheetState [line 703]
method getSheetView [line 789]
method getShowGridlines [line 1839]
boolean getShowGridlines(
)
|
|
Show gridlines?
Tags:
method getShowRowColHeaders [line 1879]
boolean getShowRowColHeaders(
)
|
|
Show row and column headers?
Tags:
method getShowSummaryBelow [line 1899]
boolean getShowSummaryBelow(
)
|
|
Show summary below? (Row/Column outlining)
Tags:
method getShowSummaryRight [line 1919]
boolean getShowSummaryRight(
)
|
|
Show summary right? (Row/Column outlining)
Tags:
method getStyle [line 1175]
Get style for cell
Tags:
Parameters:
method getStyleByColumnAndRow [line 1256]
PHPExcel_Style getStyleByColumnAndRow(
[int
$pColumn = 0], [int
$pRow = 1])
|
|
Get style for cell by using numeric cell coordinates
Tags:
Parameters:
method getStyles [line 1132]
PHPExcel_Style[] getStyles(
)
|
|
Get styles
Tags:
method getTabColor [line 2518]
method getTitle [line 638]
method hyperlinkExists [line 2415]
boolean hyperlinkExists(
[
$pCoordinate = 'A1'], string
$pCellCoordinate)
|
|
Hyperlink at a specific coordinate exists?
Tags:
Parameters:
method insertNewColumnBefore [line 1755]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewColumnBeforeByIndex [line 1773]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewRowBefore [line 1737]
Insert a new row, updating all possible related data
Tags:
Parameters:
method isTabColorSet [line 2544]
method mergeCells [line 1415]
Set merge on a cell range
Tags:
Parameters:
method mergeCellsByColumnAndRow [line 1457]
PHPExcel_Worksheet mergeCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1])
|
|
Set merge on a cell range by using numeric cell coordinates
Tags:
Parameters:
method namedRangeToArray [line 2233]
array namedRangeToArray(
[string
$pNamedRange = ''], [mixed
$nullValue = null], [boolean
$calculateFormulas = true], [boolean
$formatData = true], [boolean
$returnCellRef = false])
|
|
Create array from a range of cells
Tags:
Parameters:
method protectCells [line 1536]
PHPExcel_Worksheet protectCells(
[string
$pRange = 'A1'], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range
Tags:
Parameters:
method protectCellsByColumnAndRow [line 1561]
PHPExcel_Worksheet protectCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range by using numeric cell coordinates
Tags:
Parameters:
method rangeToArray [line 2165]
array rangeToArray(
[string
$pRange = 'A1'], [mixed
$nullValue = null], [boolean
$calculateFormulas = true], [boolean
$formatData = true], [boolean
$returnCellRef = false])
|
|
Create array from a range of cells
Tags:
Parameters:
method rebindParent [line 619]
Re-bind parent
Tags:
Parameters:
method refreshColumnDimensions [line 498]
Refresh column dimensions
Tags:
method refreshRowDimensions [line 517]
Refresh row dimensions
Tags:
method removeAutoFilter [line 1670]
method removeColumn [line 1807]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeColumnByIndex [line 1826]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeConditionalStyles [line 1220]
Removes conditional styles for a cell
Tags:
Parameters:
method removeRow [line 1789]
Delete a row, updating all possible related data
Tags:
Parameters:
method resetTabColor [line 2531]
method setAutoFilter [line 1632]
Set Autofilter Range
Tags:
Parameters:
method setAutoFilterByColumnAndRow [line 1656]
PHPExcel_Worksheet setAutoFilterByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1])
|
|
Set Autofilter Range by using numeric cell coordinates
Tags:
Parameters:
method setBreak [line 1370]
PHPExcel_Worksheet setBreak(
[string
$pCell = 'A1'], [int
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell
Tags:
Parameters:
method setBreakByColumnAndRow [line 1393]
PHPExcel_Worksheet setBreakByColumnAndRow(
[integer
$pColumn = 0], [integer
$pRow = 1], [integer
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell by using numeric cell coordinates
Tags:
Parameters:
method setCellValue [line 858]
Set a cell value
Tags:
Parameters:
method setCellValueByColumnAndRow [line 878]
PHPExcel_Worksheet|PHPExcel_Cell setCellValueByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1], [mixed
$pValue = null], [bool
$returnCell = false])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setCellValueExplicit [line 897]
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 913]
PHPExcel_Worksheet setCellValueExplicitByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1], [mixed
$pValue = null], [string
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setComments [line 1950]
Set comments array for the entire sheet.
Tags:
Parameters:
method setConditionalStyles [line 1243]
PHPExcel_Worksheet setConditionalStyles(
[$pCoordinate
$pCoordinate = 'A1'], $pValue
$pValue)
|
|
Set conditional styles
Tags:
Parameters:
method setDataValidation [line 2454]
PHPExcel_Worksheet setDataValidation(
[string
$pCellCoordinate = 'A1'], [
$pDataValidation = null])
|
|
Set data validation
Tags:
Parameters:
method setDefaultStyle [line 1157]
Set default style - should only be used by PHPExcel_IReader implementations!
Tags:
Parameters:
method setHeaderFooter [line 778]
Set page header/footer
Tags:
Parameters:
method setHyperlink [line 2399]
Set hyperlnk
Tags:
Parameters:
method setMergeCells [line 1520]
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 756]
Set page margins
Tags:
Parameters:
method setPageSetup [line 734]
Set page setup
Tags:
Parameters:
method setPrintGridlines [line 1869]
Set print gridlines
Tags:
Parameters:
method setProtection [line 822]
Set Protection
Tags:
Parameters:
method setRightToLeft [line 2104]
Set right-to-left
Tags:
Parameters:
method setSelectedCell [line 2037]
Selected cell
Tags:
Parameters:
method setSelectedCellByColumnAndRow [line 2084]
Selected cell by using numeric cell coordinates
Tags:
Parameters:
method setSelectedCells [line 2049]
Select a range of cells.
Tags:
Parameters:
method setSharedStyle [line 1272]
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 713]
PHPExcel_Worksheet setSheetState(
[string
$value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE])
|
|
Set sheet state
Tags:
Parameters:
method setSheetView [line 800]
Set sheet view
Tags:
Parameters:
method setShowGridlines [line 1849]
Set show gridlines
Tags:
Parameters:
method setShowRowColHeaders [line 1889]
Set show row and column headers
Tags:
Parameters:
method setShowSummaryBelow [line 1909]
Set show summary below
Tags:
Parameters:
method setShowSummaryRight [line 1929]
Set show summary right
Tags:
Parameters:
method setTitle [line 649]
Set title
Tags:
Parameters:
method shrinkRangeToFit [line 2491]
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 435]
Sort collection of cells
Tags:
method toArray [line 2257]
array toArray(
[mixed
$nullValue = null], [boolean
$calculateFormulas = true], [boolean
$formatData = true], [boolean
$returnCellRef = false])
|
|
Create array from worksheet
Tags:
Parameters:
method unfreezePane [line 1724]
method unmergeCells [line 1470]
Remove merge on a cell range
Tags:
Parameters:
method unmergeCellsByColumnAndRow [line 1498]
PHPExcel_Worksheet unmergeCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1])
|
|
Remove merge on a cell range by using numeric cell coordinates
Tags:
Parameters:
method unprotectCells [line 1574]
Remove protection on a cell range
Tags:
Parameters:
method unprotectCellsByColumnAndRow [line 1599]
PHPExcel_Worksheet unprotectCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Remove protection on a cell range by using numeric cell coordinates
Tags:
Parameters:
method __clone [line 2563]
Implement PHP __clone to create a deep clone, not just a shallow copy.
Tags:
Class Constants
|
|