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 2262]
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 546]
PHPExcel_Worksheet; calculateColumnWidths(
[boolean
$calculateMergeCells = false])
|
|
Calculate widths for auto-size columns
Tags:
Parameters:
method calculateWorksheetDimension [line 534]
string calculateWorksheetDimension(
)
|
|
Calculate worksheet dimension
Tags:
method cellExists [line 998]
boolean cellExists(
[string
$pCoordinate = 'A1'])
|
|
Cell at a specific coordinate exists?
Tags:
Parameters:
method cellExistsByColumnAndRow [line 1045]
boolean cellExistsByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 0])
|
|
Cell at a specific coordinate by using numeric cell coordinates exists?
Tags:
Parameters:
method conditionalStylesExists [line 1183]
boolean conditionalStylesExists(
[string
$pCoordinate = 'A1'])
|
|
Do conditional styles exist for this cell?
Tags:
Parameters:
method copy [line 2469]
Copy worksheet (!= clone!)
Tags:
method dataValidationExists [line 2385]
boolean dataValidationExists(
[
$pCoordinate = 'A1'], string
$pCellCoordinate)
|
|
Data validation at a specific coordinate exists?
Tags:
Parameters:
method disconnectCells [line 356]
method duplicateStyle [line 1265]
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 1333]
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 1658]
Freeze Pane
Tags:
Parameters:
method freezePaneByColumnAndRow [line 1679]
Freeze Pane by using numeric cell coordinates
Tags:
Parameters:
method fromArray [line 2069]
PHPExcel_Worksheet fromArray(
[array
$source = null], [mixed
$nullValue = null], [
$pCell = 'A1'])
|
|
Fill worksheet from values in array
Tags:
Parameters:
method garbageCollect [line 2161]
Run PHPExcel garabage collector.
Tags:
method getActiveCell [line 1968]
method getAutoFilter [line 1597]
Get Autofilter Range
Tags:
method getBreaks [line 1380]
method getCell [line 899]
Get cell at a specific coordinate
Tags:
Parameters:
method getCellByColumnAndRow [line 970]
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 1077]
Get column dimension at a specific column
Tags:
Parameters:
method getColumnDimensionByColumn [line 1099]
Get column dimension at a specific column by using numeric cell coordinates
Tags:
Parameters:
method getColumnDimensions [line 466]
PHPExcel_Worksheet_ColumnDimension[] getColumnDimensions(
)
|
|
Get collection of column dimensions
Tags:
method getComment [line 1916]
Get comment for cell
Tags:
Parameters:
method getCommentByColumnAndRow [line 1947]
Get comment for cell by using numeric cell coordinates
Tags:
Parameters:
method getComments [line 1904]
PHPExcel_Comment[] getComments(
)
|
|
Get comments
Tags:
method getConditionalStyles [line 1169]
PHPExcel_Style_Conditional[] getConditionalStyles(
[string
$pCoordinate = 'A1'])
|
|
Get conditional styles for a cell
Tags:
Parameters:
method getConditionalStylesCollection [line 1208]
array getConditionalStylesCollection(
)
|
|
Get collection of conditional styles
Tags:
method getDataValidation [line 2350]
void getDataValidation(
[string
$pCellCoordinate = 'A1'])
|
|
Get data validation
Tags:
Parameters:
method getDataValidationCollection [line 2395]
PHPExcel_Cell_DataValidation[] getDataValidationCollection(
)
|
|
Get collection of data validations
Tags:
method getDefaultColumnDimension [line 476]
Get default column dimension
Tags:
method getDefaultRowDimension [line 456]
Get default row dimension
Tags:
method getDefaultStyle [line 1121]
Get default style of workbork.
Tags:
method getDrawingCollection [line 486]
PHPExcel_Worksheet_BaseDrawing[] getDrawingCollection(
)
|
|
Get collection of drawings
Tags:
method getFreezePane [line 1646]
method getHashCode [line 2242]
method getHeaderFooter [line 754]
Get page header/footer
Tags:
method getHighestColumn [line 820]
string getHighestColumn(
)
|
|
Get highest worksheet column
Tags:
method getHighestRow [line 830]
Get highest worksheet row
Tags:
method getHyperlink [line 2295]
void getHyperlink(
[string
$pCellCoordinate = 'A1'])
|
|
Get hyperlink
Tags:
Parameters:
method getHyperlinkCollection [line 2340]
PHPExcel_Cell_Hyperlink[] getHyperlinkCollection(
)
|
|
Get collection of hyperlinks
Tags:
method getMergeCells [line 1486]
Get merge cells array.
Tags:
method getPageMargins [line 732]
method getPageSetup [line 710]
method getParent [line 607]
method getPrintGridlines [line 1824]
boolean getPrintGridlines(
)
|
|
Print gridlines?
Tags:
method getProtectedCells [line 1587]
array[] getProtectedCells(
)
|
|
Get protected cells
Tags:
method getProtection [line 798]
method getRightToLeft [line 2046]
boolean getRightToLeft(
)
|
|
Get right-to-left
Tags:
method getRowDimension [line 1056]
Get row dimension at a specific row
Tags:
Parameters:
method getRowDimensions [line 446]
PHPExcel_Worksheet_RowDimension[] getRowDimensions(
)
|
|
Get collection of row dimensions
Tags:
method getRowIterator [line 2152]
method getSelectedCell [line 1958]
string getSelectedCell(
)
|
|
Get selected cell
Tags:
method getSelectedCells [line 1978]
string getSelectedCells(
)
|
|
Get selected cells
Tags:
method getSheetState [line 690]
method getSheetView [line 776]
method getShowGridlines [line 1804]
boolean getShowGridlines(
)
|
|
Show gridlines?
Tags:
method getShowRowColHeaders [line 1844]
boolean getShowRowColHeaders(
)
|
|
Show row and column headers?
Tags:
method getShowSummaryBelow [line 1864]
boolean getShowSummaryBelow(
)
|
|
Show summary below? (Row/Column outlining)
Tags:
method getShowSummaryRight [line 1884]
boolean getShowSummaryRight(
)
|
|
Show summary right? (Row/Column outlining)
Tags:
method getStyle [line 1152]
Get style for cell
Tags:
Parameters:
method getStyleByColumnAndRow [line 1233]
PHPExcel_Style getStyleByColumnAndRow(
[int
$pColumn = 0], [int
$pRow = 0])
|
|
Get style for cell by using numeric cell coordinates
Tags:
Parameters:
method getStyles [line 1109]
PHPExcel_Style[] getStyles(
)
|
|
Get styles
Tags:
method getTabColor [line 2433]
method getTitle [line 636]
method hyperlinkExists [line 2330]
boolean hyperlinkExists(
[
$pCoordinate = 'A1'], string
$pCellCoordinate)
|
|
Hyperlink at a specific coordinate exists?
Tags:
Parameters:
method insertNewColumnBefore [line 1720]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewColumnBeforeByIndex [line 1738]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewRowBefore [line 1702]
Insert a new row, updating all possible related data
Tags:
Parameters:
method isTabColorSet [line 2459]
method mergeCells [line 1392]
Set merge on a cell range
Tags:
Parameters:
method mergeCellsByColumnAndRow [line 1434]
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 1513]
PHPExcel_Worksheet protectCells(
[string
$pRange = 'A1'], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range
Tags:
Parameters:
method protectCellsByColumnAndRow [line 1538]
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 617]
Re-bind parent
Tags:
Parameters:
method refreshColumnDimensions [line 496]
Refresh column dimensions
Tags:
method refreshRowDimensions [line 515]
Refresh row dimensions
Tags:
method removeColumn [line 1772]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeColumnByIndex [line 1791]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeConditionalStyles [line 1197]
Removes conditional styles for a cell
Tags:
Parameters:
method removeRow [line 1754]
Delete a row, updating all possible related data
Tags:
Parameters:
method resetTabColor [line 2446]
method setAutoFilter [line 1609]
Set Autofilter Range
Tags:
Parameters:
method setAutoFilterByColumnAndRow [line 1632]
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 1347]
PHPExcel_Worksheet setBreak(
[string
$pCell = 'A1'], [int
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell
Tags:
Parameters:
method setBreakByColumnAndRow [line 1370]
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 842]
Set a cell value
Tags:
Parameters:
method setCellValueByColumnAndRow [line 858]
PHPExcel_Worksheet setCellValueByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 0], [mixed
$pValue = null])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setCellValueExplicit [line 871]
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 887]
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 1220]
PHPExcel_Worksheet setConditionalStyles(
[$pCoordinate
$pCoordinate = 'A1'], $pValue
$pValue)
|
|
Set conditional styles
Tags:
Parameters:
method setDataValidation [line 2369]
PHPExcel_Worksheet setDataValidation(
[string
$pCellCoordinate = 'A1'], [
$pDataValidation = null])
|
|
Set data validation
Tags:
Parameters:
method setDefaultStyle [line 1134]
Set default style - should only be used by PHPExcel_IReader implementations!
Tags:
Parameters:
method setHeaderFooter [line 765]
Set page header/footer
Tags:
Parameters:
method setHyperlink [line 2314]
Set hyperlnk
Tags:
Parameters:
method setMergeCells [line 1497]
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 743]
Set page margins
Tags:
Parameters:
method setPageSetup [line 721]
Set page setup
Tags:
Parameters:
method setPrintGridlines [line 1834]
Set print gridlines
Tags:
Parameters:
method setProtection [line 809]
Set Protection
Tags:
Parameters:
method setRightToLeft [line 2056]
Set right-to-left
Tags:
Parameters:
method setSelectedCell [line 1989]
Selected cell
Tags:
Parameters:
method setSelectedCellByColumnAndRow [line 2036]
Selected cell by using numeric cell coordinates
Tags:
Parameters:
method setSelectedCells [line 2001]
Select a range of cells.
Tags:
Parameters:
method setSharedStyle [line 1249]
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 700]
PHPExcel_Worksheet setSheetState(
[string
$value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE])
|
|
Set sheet state
Tags:
Parameters:
method setSheetView [line 787]
Set sheet view
Tags:
Parameters:
method setShowGridlines [line 1814]
Set show gridlines
Tags:
Parameters:
method setShowRowColHeaders [line 1854]
Set show row and column headers
Tags:
Parameters:
method setShowSummaryBelow [line 1874]
Set show summary below
Tags:
Parameters:
method setShowSummaryRight [line 1894]
Set show summary right
Tags:
Parameters:
method setTitle [line 647]
Set title
Tags:
Parameters:
method shrinkRangeToFit [line 2406]
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 430]
Sort collection of cells
Tags:
method toArray [line 2103]
array toArray(
[mixed
$nullValue = null], [boolean
$calculateFormulas = true])
|
|
Create array from worksheet
Tags:
Parameters:
method unfreezePane [line 1689]
method unmergeCells [line 1447]
Remove merge on a cell range
Tags:
Parameters:
method unmergeCellsByColumnAndRow [line 1475]
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 1551]
Remove protection on a cell range
Tags:
Parameters:
method unprotectCellsByColumnAndRow [line 1576]
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 2478]
Implement PHP __clone to create a deep clone, not just a shallow copy.
Tags:
Class Constants
|
|