BREAK_NONE
BREAK_NONE = 0
PHPExcel_Worksheet
$_invalidCharacters : array
Invalid characters in sheet title
$_parent : \PHPExcel
Parent spreadsheet
$_rowDimensions : \PHPExcel_Worksheet_RowDimension[]
Collection of row dimensions
$_defaultRowDimension : \PHPExcel_Worksheet_RowDimension
Default row dimension
$_columnDimensions : \PHPExcel_Worksheet_ColumnDimension[]
Collection of column dimensions
$_defaultColumnDimension : \PHPExcel_Worksheet_ColumnDimension
Default column dimension
$_drawingCollection : \PHPExcel_Worksheet_BaseDrawing[]
Collection of drawings
$_chartCollection : \PHPExcel_Chart[]
Collection of Chart objects
$_title : string
Worksheet title
$_sheetState : string
Sheet state
$_pageMargins : \PHPExcel_Worksheet_PageMargins
Page margins
$_headerFooter : \PHPExcel_Worksheet_HeaderFooter
Page header/footer
$_sheetView : \PHPExcel_Worksheet_SheetView
Sheet view
$_protection : \PHPExcel_Worksheet_Protection
Protection
$_styles : \PHPExcel_Style[]
Collection of styles
$_conditionalStylesCollection : array
Conditional styles. Indexed by cell coordinate, e.g. 'A1'
$_cellCollectionIsSorted : bool
Is the current cell collection sorted already?
$_breaks : array
Collection of breaks
$_mergeCells : array
Collection of merged cell ranges
$_protectedCells : array
Collection of protected cell ranges
$_autoFilter : \PHPExcel_Worksheet_AutoFilter
Autofilter Range and selection
$_freezePane : string
Freeze pane
$_showGridlines : bool
Show gridlines?
$_printGridlines : bool
Print gridlines?
$_showRowColHeaders : bool
Show row and column headers?
$_showSummaryBelow : bool
Show summary below? (Row/Column outline)
$_showSummaryRight : bool
Show summary right? (Row/Column outline)
$_comments : \PHPExcel_Comment[]
Collection of comments
$_activeCell : string
Active cell. (Only one!)
$_selectedCells : string
Selected cells
$_cachedHighestColumn : string
Cached highest column
$_cachedHighestRow : int
Cached highest row
$_rightToLeft : bool
Right-to-left?
$_hyperlinkCollection : array
Hyperlinks. Indexed by cell coordinate, e.g. 'A1'
$_dataValidationCollection : array
Data validation objects. Indexed by cell coordinate, e.g. 'A1'
$_tabColor : \PHPExcel_Style_Color
Tab color
$_dirty : bool
Dirty flag
$_hash : string
Hash
$_codeName : string
CodeName
setTitle(string $pValue = 'Worksheet', string $updateFormulaCellReferences = true) : \PHPExcel_Worksheet
Set title
string | $pValue | String containing the dimension of this worksheet |
string | $updateFormulaCellReferences | 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 |
getHighestDataColumn(string $row = null) : string
Get highest worksheet column that contains data
string | $row | Return the highest data column for the specified row, or the highest data column of any row if no row number is passed |
Highest column name that contains data
getHighestDataRow(string $column = null) : string
Get highest worksheet row that contains data
string | $column | Return the highest data row for the specified column, or the highest data row of any column if no column letter is passed |
Highest row number that contains data
setCellValue(string $pCoordinate = 'A1', mixed $pValue = null, bool $returnCell = false) : \PHPExcel_Worksheet|\PHPExcel_Cell
Set a cell value
string | $pCoordinate | Coordinate of the cell |
mixed | $pValue | Value of the cell |
bool | $returnCell | Return the worksheet (false, default) or the cell (true) |
Depending on the last parameter being specified
setCellValueByColumnAndRow(string $pColumn, string $pRow = 1, mixed $pValue = null, bool $returnCell = false) : \PHPExcel_Worksheet|\PHPExcel_Cell
Set a cell value by using numeric cell coordinates
string | $pColumn | Numeric column coordinate of the cell (A = 0) |
string | $pRow | Numeric row coordinate of the cell |
mixed | $pValue | Value of the cell |
bool | $returnCell | Return the worksheet (false, default) or the cell (true) |
Depending on the last parameter being specified
setCellValueExplicit(string $pCoordinate = 'A1', mixed $pValue = null, string $pDataType = PHPExcel_Cell_DataType::TYPE_STRING, bool $returnCell = false) : \PHPExcel_Worksheet|\PHPExcel_Cell
Set a cell value
string | $pCoordinate | Coordinate of the cell |
mixed | $pValue | Value of the cell |
string | $pDataType | Explicit data type |
bool | $returnCell | Return the worksheet (false, default) or the cell (true) |
Depending on the last parameter being specified
setCellValueExplicitByColumnAndRow(string $pColumn, string $pRow = 1, mixed $pValue = null, string $pDataType = PHPExcel_Cell_DataType::TYPE_STRING, bool $returnCell = false) : \PHPExcel_Worksheet|\PHPExcel_Cell
Set a cell value by using numeric cell coordinates
string | $pColumn | Numeric column coordinate of the cell |
string | $pRow | Numeric row coordinate of the cell |
mixed | $pValue | Value of the cell |
string | $pDataType | Explicit data type |
bool | $returnCell | Return the worksheet (false, default) or the cell (true) |
Depending on the last parameter being specified
getCellByColumnAndRow(string $pColumn, string $pRow = 1) : \PHPExcel_Cell
Get cell at a specific coordinate by using numeric cell coordinates
string | $pColumn | Numeric column coordinate of the cell |
string | $pRow | Numeric row coordinate of the cell |
Cell that was found
setDefaultStyle(\PHPExcel_Style $pValue) : \PHPExcel_Worksheet
Set default style - should only be used by PHPExcel_IReader implementations!
\PHPExcel_Style | $pValue |
None found |
getStyle(string $pCellCoordinate = 'A1') : \PHPExcel_Style
Get style for cell
string | $pCellCoordinate | Cell coordinate to get style for |
None found |
getConditionalStyles(string $pCoordinate = 'A1') : \PHPExcel_Style_Conditional[]
Get conditional styles for a cell
string | $pCoordinate |
None found |
conditionalStylesExists(string $pCoordinate = 'A1') : bool
Do conditional styles exist for this cell?
string | $pCoordinate |
None found |
removeConditionalStyles(string $pCoordinate = 'A1') : \PHPExcel_Worksheet
Removes conditional styles for a cell
string | $pCoordinate |
None found |
getConditionalStylesCollection() : array
Get collection of conditional styles
None found |
setConditionalStyles( $pCoordinate = 'A1', $pValue) : \PHPExcel_Worksheet
Set conditional styles
$pCoordinate | string E.g. 'A1' |
|
$pValue | PHPExcel_Style_Conditional[] |
None found |
getStyleByColumnAndRow(int $pColumn, int $pRow = 1) : \PHPExcel_Style
Get style for cell by using numeric cell coordinates
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
None found |
setSharedStyle(\PHPExcel_Style $pSharedCellStyle = null, string $pRange = '') : \PHPExcel_Worksheet
Set shared cell style to a range of cells
Please note that this will overwrite existing cell styles for cells in range!
\PHPExcel_Style | $pSharedCellStyle | Cell style to share |
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
None found |
duplicateStyle(\PHPExcel_Style $pCellStyle = null, string $pRange = '') : \PHPExcel_Worksheet
Duplicate cell style to a range of cells
Please note that this will overwrite existing cell styles for cells in range!
\PHPExcel_Style | $pCellStyle | Cell style to duplicate |
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
None found |
duplicateConditionalStyle(array $pCellStyle = null, string $pRange = '') : \PHPExcel_Worksheet
Duplicate conditional style to a range of cells
Please note that this will overwrite existing cell styles for cells in range!
array | $pCellStyle | |
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
None found |
duplicateStyleArray(array $pStyles = null, string $pRange = '', bool $pAdvanced = true) : \PHPExcel_Worksheet
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.
array | $pStyles | Array containing style information |
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
bool | $pAdvanced | Advanced mode for setting borders. |
None found |
setBreak(string $pCell = 'A1', int $pBreak = PHPExcel_Worksheet::BREAK_NONE) : \PHPExcel_Worksheet
Set break on a cell
string | $pCell | Cell coordinate (e.g. A1) |
int | $pBreak | Break type (type of PHPExcel_Worksheet::BREAK_*) |
None found |
setBreakByColumnAndRow(int $pColumn, int $pRow = 1, int $pBreak = PHPExcel_Worksheet::BREAK_NONE) : \PHPExcel_Worksheet
Set break on a cell by using numeric cell coordinates
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
int | $pBreak | Break type (type of PHPExcel_Worksheet::BREAK_*) |
None found |
None found |
mergeCells(string $pRange = 'A1:A1') : \PHPExcel_Worksheet
Set merge on a cell range
string | $pRange | Cell range (e.g. A1:E1) |
None found |
mergeCellsByColumnAndRow(int $pColumn1, int $pRow1 = 1, int $pColumn2, int $pRow2 = 1) : \PHPExcel_Worksheet
Set merge on a cell range by using numeric cell coordinates
int | $pColumn1 | Numeric column coordinate of the first cell |
int | $pRow1 | Numeric row coordinate of the first cell |
int | $pColumn2 | Numeric column coordinate of the last cell |
int | $pRow2 | Numeric row coordinate of the last cell |
None found |
unmergeCells(string $pRange = 'A1:A1') : \PHPExcel_Worksheet
Remove merge on a cell range
string | $pRange | Cell range (e.g. A1:E1) |
None found |
unmergeCellsByColumnAndRow(int $pColumn1, int $pRow1 = 1, int $pColumn2, int $pRow2 = 1) : \PHPExcel_Worksheet
Remove merge on a cell range by using numeric cell coordinates
int | $pColumn1 | Numeric column coordinate of the first cell |
int | $pRow1 | Numeric row coordinate of the first cell |
int | $pColumn2 | Numeric column coordinate of the last cell |
int | $pRow2 | Numeric row coordinate of the last cell |
None found |
None found |
setMergeCells(mixed $pValue = array()) : mixed
Set merge cells array for the entire sheet. Use instead mergeCells() to merge a single cell range.
mixed | $pValue |
None found |
protectCells(string $pRange = 'A1', string $pPassword = '', bool $pAlreadyHashed = false) : \PHPExcel_Worksheet
Set protection on a cell range
string | $pRange | Cell (e.g. A1) or cell range (e.g. A1:E1) |
string | $pPassword | Password to unlock the protection |
bool | $pAlreadyHashed | If the password has already been hashed, set this to true |
None found |
protectCellsByColumnAndRow(int $pColumn1, int $pRow1 = 1, int $pColumn2, int $pRow2 = 1, string $pPassword = '', bool $pAlreadyHashed = false) : \PHPExcel_Worksheet
Set protection on a cell range by using numeric cell coordinates
int | $pColumn1 | Numeric column coordinate of the first cell |
int | $pRow1 | Numeric row coordinate of the first cell |
int | $pColumn2 | Numeric column coordinate of the last cell |
int | $pRow2 | Numeric row coordinate of the last cell |
string | $pPassword | Password to unlock the protection |
bool | $pAlreadyHashed | If the password has already been hashed, set this to true |
None found |
unprotectCells(string $pRange = 'A1') : \PHPExcel_Worksheet
Remove protection on a cell range
string | $pRange | Cell (e.g. A1) or cell range (e.g. A1:E1) |
None found |
unprotectCellsByColumnAndRow(int $pColumn1, int $pRow1 = 1, int $pColumn2, int $pRow2 = 1, string $pPassword = '', bool $pAlreadyHashed = false) : \PHPExcel_Worksheet
Remove protection on a cell range by using numeric cell coordinates
int | $pColumn1 | Numeric column coordinate of the first cell |
int | $pRow1 | Numeric row coordinate of the first cell |
int | $pColumn2 | Numeric column coordinate of the last cell |
int | $pRow2 | Numeric row coordinate of the last cell |
string | $pPassword | Password to unlock the protection |
bool | $pAlreadyHashed | If the password has already been hashed, set this to true |
None found |
None found |
getAutoFilter() : mixed
Get Autofilter
@return PHPExcel_Worksheet_AutoFilter
None found |
setAutoFilter(mixed $pValue) : mixed
Set AutoFilter
@param PHPExcel_Worksheet_AutoFilter|string $pValue A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility
mixed | $pValue |
@return PHPExcel_Worksheet
None found |
setAutoFilterByColumnAndRow(mixed $pColumn1, int $pRow1 = 1, mixed $pColumn2, mixed $pRow2 = 1) : mixed
Set Autofilter Range by using numeric cell coordinates
@param integer $pColumn1 Numeric column coordinate of the first cell
mixed | $pColumn1 | |
int | $pRow1 | 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 |
mixed | $pColumn2 | |
mixed | $pRow2 |
None found |
removeAutoFilter() : \PHPExcel_Worksheet
Remove autofilter
None found |
None found |
freezePane(string $pCell = '') : \PHPExcel_Worksheet
Freeze Pane
string | $pCell | 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) |
None found |
freezePaneByColumnAndRow(int $pColumn, int $pRow = 1) : \PHPExcel_Worksheet
Freeze Pane by using numeric cell coordinates
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
None found |
None found |
insertNewRowBefore(int $pBefore = 1, int $pNumRows = 1) : \PHPExcel_Worksheet
Insert a new row, updating all possible related data
int | $pBefore | Insert before this one |
int | $pNumRows | Number of rows to insert |
None found |
insertNewColumnBefore(int $pBefore = 'A', int $pNumCols = 1) : \PHPExcel_Worksheet
Insert a new column, updating all possible related data
int | $pBefore | Insert before this one |
int | $pNumCols | Number of columns to insert |
None found |
insertNewColumnBeforeByIndex(int $pBefore, int $pNumCols = 1) : \PHPExcel_Worksheet
Insert a new column, updating all possible related data
int | $pBefore | Insert before this one (numeric column coordinate of the cell) |
int | $pNumCols | Number of columns to insert |
None found |
removeRow(int $pRow = 1, int $pNumRows = 1) : \PHPExcel_Worksheet
Delete a row, updating all possible related data
int | $pRow | Remove starting with this one |
int | $pNumRows | Number of rows to remove |
None found |
removeColumn(int $pColumn = 'A', int $pNumCols = 1) : \PHPExcel_Worksheet
Remove a column, updating all possible related data
int | $pColumn | Remove starting with this one |
int | $pNumCols | Number of columns to remove |
None found |
removeColumnByIndex(int $pColumn, int $pNumCols = 1) : \PHPExcel_Worksheet
Remove a column, updating all possible related data
int | $pColumn | Remove starting with this one (numeric column coordinate of the cell) |
int | $pNumCols | Number of columns to remove |
None found |
None found |
setShowGridlines(bool $pValue = false) : \PHPExcel_Worksheet
Set show gridlines
bool | $pValue | Show gridlines (true/false) |
None found |
None found |
setPrintGridlines(bool $pValue = false) : \PHPExcel_Worksheet
Set print gridlines
bool | $pValue | Print gridlines (true/false) |
None found |
None found |
setShowRowColHeaders(bool $pValue = false) : \PHPExcel_Worksheet
Set show row and column headers
bool | $pValue | Show row and column headers (true/false) |
None found |
getShowSummaryBelow() : bool
Show summary below? (Row/Column outlining)
None found |
setShowSummaryBelow(bool $pValue = true) : \PHPExcel_Worksheet
Set show summary below
bool | $pValue | Show summary below (true/false) |
None found |
getShowSummaryRight() : bool
Show summary right? (Row/Column outlining)
None found |
setShowSummaryRight(bool $pValue = true) : \PHPExcel_Worksheet
Set show summary right
bool | $pValue | Show summary right (true/false) |
None found |
None found |
setComments(mixed $pValue = array()) : \PHPExcel_Worksheet
Set comments array for the entire sheet.
mixed | $pValue |
None found |
getComment(string $pCellCoordinate = 'A1') : \PHPExcel_Comment
Get comment for cell
string | $pCellCoordinate | Cell coordinate to get comment for |
None found |
getCommentByColumnAndRow(int $pColumn, int $pRow = 1) : \PHPExcel_Comment
Get comment for cell by using numeric cell coordinates
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
None found |
None found |
None found |
None found |
setSelectedCell(string $pCoordinate = 'A1') : \PHPExcel_Worksheet
Selected cell
string | $pCoordinate | Cell (i.e. A1) |
None found |
setSelectedCells(string $pCoordinate = 'A1') : \PHPExcel_Worksheet
Select a range of cells.
string | $pCoordinate | Cell range, examples: 'A1', 'B2:G5', 'A:C', '3:6' |
None found |
setSelectedCellByColumnAndRow(int $pColumn, int $pRow = 1) : \PHPExcel_Worksheet
Selected cell by using numeric cell coordinates
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
None found |
None found |
setRightToLeft(bool $value = false) : \PHPExcel_Worksheet
Set right-to-left
bool | $value | Right-to-left true/false |
None found |
fromArray(array $source = null, mixed $nullValue = null, string $startCell = 'A1', bool $strictNullComparison = false) : \PHPExcel_Worksheet
Fill worksheet from values in array
array | $source | Source array |
mixed | $nullValue | Value in source array that stands for blank cell |
string | $startCell | Insert array starting from this cell address as the top left coordinate |
bool | $strictNullComparison | Apply strict comparison when testing for null values in the array |
None found |
rangeToArray(string $pRange = 'A1', mixed $nullValue = null, bool $calculateFormulas = true, bool $formatData = true, bool $returnCellRef = false) : array
Create array from a range of cells
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
mixed | $nullValue | Value returned in the array entry if a cell doesn't exist |
bool | $calculateFormulas | Should formulas be calculated? |
bool | $formatData | Should formatting be applied to cell values? |
bool | $returnCellRef | 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 |
None found |
namedRangeToArray(string $pNamedRange = '', mixed $nullValue = null, bool $calculateFormulas = true, bool $formatData = true, bool $returnCellRef = false) : array
Create array from a range of cells
string | $pNamedRange | Name of the Named Range |
mixed | $nullValue | Value returned in the array entry if a cell doesn't exist |
bool | $calculateFormulas | Should formulas be calculated? |
bool | $formatData | Should formatting be applied to cell values? |
bool | $returnCellRef | 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 |
None found |
toArray(mixed $nullValue = null, bool $calculateFormulas = true, bool $formatData = true, bool $returnCellRef = false) : array
Create array from worksheet
mixed | $nullValue | Value returned in the array entry if a cell doesn't exist |
bool | $calculateFormulas | Should formulas be calculated? |
bool | $formatData | Should formatting be applied to cell values? |
bool | $returnCellRef | 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 |
None found |
getRowIterator(int $startRow = 1) : \PHPExcel_Worksheet_RowIterator
Get row iterator
int | $startRow | The row number at which to start iterating |
None found |
garbageCollect() : \PHPExcel_Worksheet
Run PHPExcel garabage collector.
None found |
None found |
extractSheetTitle(string $pRange, bool $returnRange = false) : mixed
Extract worksheet title from range.
Example: extractSheetTitle("testSheet!A1") ==> 'A1' Example: extractSheetTitle("'testSheet 1'!A1", true) ==> array('testSheet 1', 'A1');
string | $pRange | Range to extract title from |
bool | $returnRange | Return range? (see example) |
None found |
getHyperlink(string $pCellCoordinate = 'A1') : mixed
Get hyperlink
string | $pCellCoordinate | Cell coordinate to get hyperlink for |
None found |
setHyperlink(string $pCellCoordinate = 'A1', \PHPExcel_Cell_Hyperlink $pHyperlink = null) : \PHPExcel_Worksheet
Set hyperlnk
string | $pCellCoordinate | Cell coordinate to insert hyperlink |
\PHPExcel_Cell_Hyperlink | $pHyperlink |
None found |
hyperlinkExists(string $pCoordinate = 'A1') : bool
Hyperlink at a specific coordinate exists?
string | $pCoordinate |
None found |
getHyperlinkCollection() : \PHPExcel_Cell_Hyperlink[]
Get collection of hyperlinks
None found |
getDataValidation(string $pCellCoordinate = 'A1') : mixed
Get data validation
string | $pCellCoordinate | Cell coordinate to get data validation for |
None found |
setDataValidation(string $pCellCoordinate = 'A1', \PHPExcel_Cell_DataValidation $pDataValidation = null) : \PHPExcel_Worksheet
Set data validation
string | $pCellCoordinate | Cell coordinate to insert data validation |
\PHPExcel_Cell_DataValidation | $pDataValidation |
None found |
dataValidationExists(string $pCoordinate = 'A1') : bool
Data validation at a specific coordinate exists?
string | $pCoordinate |
None found |
getDataValidationCollection() : \PHPExcel_Cell_DataValidation[]
Get collection of data validations
None found |
shrinkRangeToFit(string $range) : string
Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet
string | $range |
Adjusted range value
None found |
None found |
None found |
None found |
None found |
__clone() : mixed
Implement PHP __clone to create a deep clone, not just a shallow copy.
None found |
setCodeName(mixed $pValue = null) : \objWorksheet
Define the code name of the sheet
mixed | $pValue |
None found |
None found |
None found |
_checkSheetCodeName(string $pValue) : string
Check sheet code name for valid Excel syntax
string | $pValue | The string to check |
The valid string
None found |
_checkSheetTitle(string $pValue) : string
Check sheet title for valid Excel syntax
string | $pValue | The string to check |
The valid string
None found |
_createNewCell(string $pCoordinate) : \PHPExcel_Cell
Create a new cell at the specified coordinate
string | $pCoordinate | Coordinate of the cell |
Cell that was created
None found |