ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct (PHPExcel $pParent=null, $pTitle='Worksheet') | |
Create a new worksheet. More... | |
disconnectCells () | |
Disconnect all cells from this PHPExcel_Worksheet object, typically so that the worksheet object can be unset. More... | |
__destruct () | |
Code to execute when this worksheet is unset() More... | |
getCellCacheController () | |
Return the cache controller for the cell collection. More... | |
getCellCollection ($pSorted=true) | |
Get collection of cells. More... | |
sortCellCollection () | |
Sort collection of cells. More... | |
getRowDimensions () | |
Get collection of row dimensions. More... | |
getDefaultRowDimension () | |
Get default row dimension. More... | |
getColumnDimensions () | |
Get collection of column dimensions. More... | |
getDefaultColumnDimension () | |
Get default column dimension. More... | |
getDrawingCollection () | |
Get collection of drawings. More... | |
getChartCollection () | |
Get collection of charts. More... | |
addChart (PHPExcel_Chart $pChart=null, $iChartIndex=null) | |
Add chart. More... | |
getChartCount () | |
Return the count of charts on this worksheet. More... | |
getChartByIndex ($index=null) | |
Get a chart by its index position. More... | |
getChartNames () | |
Return an array of the names of charts on this worksheet. More... | |
getChartByName ($chartName='') | |
Get a chart by name. More... | |
refreshColumnDimensions () | |
Refresh column dimensions. More... | |
refreshRowDimensions () | |
Refresh row dimensions. More... | |
calculateWorksheetDimension () | |
Calculate worksheet dimension. More... | |
calculateWorksheetDataDimension () | |
Calculate worksheet data dimension. More... | |
calculateColumnWidths ($calculateMergeCells=false) | |
Calculate widths for auto-size columns. More... | |
getParent () | |
Get parent. More... | |
rebindParent (PHPExcel $parent) | |
Re-bind parent. More... | |
getTitle () | |
Get title. More... | |
setTitle ($pValue='Worksheet', $updateFormulaCellReferences=true) | |
Set title. More... | |
getSheetState () | |
Get sheet state. More... | |
setSheetState ($value=PHPExcel_Worksheet::SHEETSTATE_VISIBLE) | |
Set sheet state. More... | |
getPageSetup () | |
Get page setup. More... | |
setPageSetup (PHPExcel_Worksheet_PageSetup $pValue) | |
Set page setup. More... | |
getPageMargins () | |
Get page margins. More... | |
setPageMargins (PHPExcel_Worksheet_PageMargins $pValue) | |
Set page margins. More... | |
getHeaderFooter () | |
Get page header/footer. More... | |
setHeaderFooter (PHPExcel_Worksheet_HeaderFooter $pValue) | |
Set page header/footer. More... | |
getSheetView () | |
Get sheet view. More... | |
setSheetView (PHPExcel_Worksheet_SheetView $pValue) | |
Set sheet view. More... | |
getProtection () | |
Get Protection. More... | |
setProtection (PHPExcel_Worksheet_Protection $pValue) | |
Set Protection. More... | |
getHighestColumn ($row=null) | |
Get highest worksheet column. More... | |
getHighestDataColumn ($row=null) | |
Get highest worksheet column that contains data. More... | |
getHighestRow ($column=null) | |
Get highest worksheet row. More... | |
getHighestDataRow ($column=null) | |
Get highest worksheet row that contains data. More... | |
getHighestRowAndColumn () | |
Get highest worksheet column and highest row that have cell records. More... | |
setCellValue ($pCoordinate='A1', $pValue=null, $returnCell=false) | |
Set a cell value. More... | |
setCellValueByColumnAndRow ($pColumn=0, $pRow=1, $pValue=null, $returnCell=false) | |
Set a cell value by using numeric cell coordinates. More... | |
setCellValueExplicit ($pCoordinate='A1', $pValue=null, $pDataType=PHPExcel_Cell_DataType::TYPE_STRING, $returnCell=false) | |
Set a cell value. More... | |
setCellValueExplicitByColumnAndRow ($pColumn=0, $pRow=1, $pValue=null, $pDataType=PHPExcel_Cell_DataType::TYPE_STRING, $returnCell=false) | |
Set a cell value by using numeric cell coordinates. More... | |
getCell ($pCoordinate='A1') | |
Get cell at a specific coordinate. More... | |
getCellByColumnAndRow ($pColumn=0, $pRow=1) | |
Get cell at a specific coordinate by using numeric cell coordinates. More... | |
cellExists ($pCoordinate='A1') | |
Does the cell at a specific coordinate exist? More... | |
cellExistsByColumnAndRow ($pColumn=0, $pRow=1) | |
Cell at a specific coordinate by using numeric cell coordinates exists? More... | |
getRowDimension ($pRow=1, $create=TRUE) | |
Get row dimension at a specific row. More... | |
getColumnDimension ($pColumn='A', $create=TRUE) | |
Get column dimension at a specific column. More... | |
getColumnDimensionByColumn ($pColumn=0) | |
Get column dimension at a specific column by using numeric cell coordinates. More... | |
getStyles () | |
Get styles. More... | |
getDefaultStyle () | |
Get default style of workbook. More... | |
setDefaultStyle (PHPExcel_Style $pValue) | |
Set default style - should only be used by PHPExcel_IReader implementations! More... | |
getStyle ($pCellCoordinate='A1') | |
Get style for cell. More... | |
getConditionalStyles ($pCoordinate='A1') | |
Get conditional styles for a cell. More... | |
conditionalStylesExists ($pCoordinate='A1') | |
Do conditional styles exist for this cell? More... | |
removeConditionalStyles ($pCoordinate='A1') | |
Removes conditional styles for a cell. More... | |
getConditionalStylesCollection () | |
Get collection of conditional styles. More... | |
setConditionalStyles ($pCoordinate='A1', $pValue) | |
Set conditional styles. More... | |
getStyleByColumnAndRow ($pColumn=0, $pRow=1, $pColumn2=null, $pRow2=null) | |
Get style for cell by using numeric cell coordinates. More... | |
setSharedStyle (PHPExcel_Style $pSharedCellStyle=null, $pRange='') | |
Set shared cell style to a range of cells. More... | |
duplicateStyle (PHPExcel_Style $pCellStyle=null, $pRange='') | |
Duplicate cell style to a range of cells. More... | |
duplicateConditionalStyle (array $pCellStyle=null, $pRange='') | |
Duplicate conditional style to a range of cells. More... | |
duplicateStyleArray ($pStyles=null, $pRange='', $pAdvanced=true) | |
Duplicate cell style array to a range of cells. More... | |
setBreak ($pCell='A1', $pBreak=PHPExcel_Worksheet::BREAK_NONE) | |
Set break on a cell. More... | |
setBreakByColumnAndRow ($pColumn=0, $pRow=1, $pBreak=PHPExcel_Worksheet::BREAK_NONE) | |
Set break on a cell by using numeric cell coordinates. More... | |
getBreaks () | |
Get breaks. More... | |
mergeCells ($pRange='A1:A1') | |
Set merge on a cell range. More... | |
mergeCellsByColumnAndRow ($pColumn1=0, $pRow1=1, $pColumn2=0, $pRow2=1) | |
Set merge on a cell range by using numeric cell coordinates. More... | |
unmergeCells ($pRange='A1:A1') | |
Remove merge on a cell range. More... | |
unmergeCellsByColumnAndRow ($pColumn1=0, $pRow1=1, $pColumn2=0, $pRow2=1) | |
Remove merge on a cell range by using numeric cell coordinates. More... | |
getMergeCells () | |
Get merge cells array. More... | |
setMergeCells ($pValue=array()) | |
Set merge cells array for the entire sheet. More... | |
protectCells ($pRange='A1', $pPassword='', $pAlreadyHashed=false) | |
Set protection on a cell range. More... | |
protectCellsByColumnAndRow ($pColumn1=0, $pRow1=1, $pColumn2=0, $pRow2=1, $pPassword='', $pAlreadyHashed=false) | |
Set protection on a cell range by using numeric cell coordinates. More... | |
unprotectCells ($pRange='A1') | |
Remove protection on a cell range. More... | |
unprotectCellsByColumnAndRow ($pColumn1=0, $pRow1=1, $pColumn2=0, $pRow2=1, $pPassword='', $pAlreadyHashed=false) | |
Remove protection on a cell range by using numeric cell coordinates. More... | |
getProtectedCells () | |
Get protected cells. More... | |
getAutoFilter () | |
Get Autofilter. More... | |
setAutoFilter ($pValue) | |
Set AutoFilter. More... | |
setAutoFilterByColumnAndRow ($pColumn1=0, $pRow1=1, $pColumn2=0, $pRow2=1) | |
Set Autofilter Range by using numeric cell coordinates. More... | |
removeAutoFilter () | |
Remove autofilter. More... | |
getFreezePane () | |
Get Freeze Pane. More... | |
freezePane ($pCell='') | |
Freeze Pane. More... | |
freezePaneByColumnAndRow ($pColumn=0, $pRow=1) | |
Freeze Pane by using numeric cell coordinates. More... | |
unfreezePane () | |
Unfreeze Pane. More... | |
insertNewRowBefore ($pBefore=1, $pNumRows=1) | |
Insert a new row, updating all possible related data. More... | |
insertNewColumnBefore ($pBefore='A', $pNumCols=1) | |
Insert a new column, updating all possible related data. More... | |
insertNewColumnBeforeByIndex ($pBefore=0, $pNumCols=1) | |
Insert a new column, updating all possible related data. More... | |
removeRow ($pRow=1, $pNumRows=1) | |
Delete a row, updating all possible related data. More... | |
removeColumn ($pColumn='A', $pNumCols=1) | |
Remove a column, updating all possible related data. More... | |
removeColumnByIndex ($pColumn=0, $pNumCols=1) | |
Remove a column, updating all possible related data. More... | |
getShowGridlines () | |
Show gridlines? More... | |
setShowGridlines ($pValue=false) | |
Set show gridlines. More... | |
getPrintGridlines () | |
Print gridlines? More... | |
setPrintGridlines ($pValue=false) | |
Set print gridlines. More... | |
getShowRowColHeaders () | |
Show row and column headers? More... | |
setShowRowColHeaders ($pValue=false) | |
Set show row and column headers. More... | |
getShowSummaryBelow () | |
Show summary below? (Row/Column outlining) More... | |
setShowSummaryBelow ($pValue=true) | |
Set show summary below. More... | |
getShowSummaryRight () | |
Show summary right? (Row/Column outlining) More... | |
setShowSummaryRight ($pValue=true) | |
Set show summary right. More... | |
getComments () | |
Get comments. More... | |
setComments ($pValue=array()) | |
Set comments array for the entire sheet. More... | |
getComment ($pCellCoordinate='A1') | |
Get comment for cell. More... | |
getCommentByColumnAndRow ($pColumn=0, $pRow=1) | |
Get comment for cell by using numeric cell coordinates. More... | |
getSelectedCell () | |
Get selected cell. More... | |
getActiveCell () | |
Get active cell. More... | |
getSelectedCells () | |
Get selected cells. More... | |
setSelectedCell ($pCoordinate='A1') | |
Selected cell. More... | |
setSelectedCells ($pCoordinate='A1') | |
Select a range of cells. More... | |
setSelectedCellByColumnAndRow ($pColumn=0, $pRow=1) | |
Selected cell by using numeric cell coordinates. More... | |
getRightToLeft () | |
Get right-to-left. More... | |
setRightToLeft ($value=false) | |
Set right-to-left. More... | |
fromArray ($source=null, $nullValue=null, $startCell='A1', $strictNullComparison=false) | |
Fill worksheet from values in array. More... | |
rangeToArray ($pRange='A1', $nullValue=null, $calculateFormulas=true, $formatData=true, $returnCellRef=false) | |
Create array from a range of cells. More... | |
namedRangeToArray ($pNamedRange='', $nullValue=null, $calculateFormulas=true, $formatData=true, $returnCellRef=false) | |
Create array from a range of cells. More... | |
toArray ($nullValue=null, $calculateFormulas=true, $formatData=true, $returnCellRef=false) | |
Create array from worksheet. More... | |
getRowIterator ($startRow=1, $endRow=null) | |
Get row iterator. More... | |
getColumnIterator ($startColumn='A', $endColumn=null) | |
Get column iterator. More... | |
garbageCollect () | |
Run PHPExcel garabage collector. More... | |
getHashCode () | |
Get hash code. More... | |
getHyperlink ($pCellCoordinate='A1') | |
Get hyperlink. More... | |
setHyperlink ($pCellCoordinate='A1', PHPExcel_Cell_Hyperlink $pHyperlink=null) | |
Set hyperlnk. More... | |
hyperlinkExists ($pCoordinate='A1') | |
Hyperlink at a specific coordinate exists? More... | |
getHyperlinkCollection () | |
Get collection of hyperlinks. More... | |
getDataValidation ($pCellCoordinate='A1') | |
Get data validation. More... | |
setDataValidation ($pCellCoordinate='A1', PHPExcel_Cell_DataValidation $pDataValidation=null) | |
Set data validation. More... | |
dataValidationExists ($pCoordinate='A1') | |
Data validation at a specific coordinate exists? More... | |
getDataValidationCollection () | |
Get collection of data validations. More... | |
shrinkRangeToFit ($range) | |
Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet. More... | |
getTabColor () | |
Get tab color. More... | |
resetTabColor () | |
Reset tab color. More... | |
isTabColorSet () | |
Tab color set? More... | |
copy () | |
Copy worksheet (!= clone!) More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
setCodeName ($pValue=null) | |
Define the code name of the sheet. More... | |
getCodeName () | |
Return the code name of the sheet. More... | |
hasCodeName () | |
Sheet has a code name ? More... | |
Static Public Member Functions | |
static | getInvalidCharacters () |
Get array of invalid characters for sheet title. More... | |
static | extractSheetTitle ($pRange, $returnRange=false) |
Extract worksheet title from range. More... | |
Data Fields | |
const | BREAK_NONE = 0 |
const | BREAK_ROW = 1 |
const | BREAK_COLUMN = 2 |
const | SHEETSTATE_VISIBLE = 'visible' |
const | SHEETSTATE_HIDDEN = 'hidden' |
const | SHEETSTATE_VERYHIDDEN = 'veryHidden' |
Private Member Functions | |
_createNewCell ($pCoordinate) | |
Create a new cell at the specified coordinate. More... | |
Static Private Member Functions | |
static | _checkSheetCodeName ($pValue) |
Check sheet code name for valid Excel syntax. More... | |
static | _checkSheetTitle ($pValue) |
Check sheet title for valid Excel syntax. More... | |
Private Attributes | |
$_parent | |
$_cellCollection = null | |
$_rowDimensions = array() | |
$_defaultRowDimension = null | |
$_columnDimensions = array() | |
$_defaultColumnDimension = null | |
$_drawingCollection = null | |
$_chartCollection = array() | |
$_title | |
$_sheetState | |
$_pageSetup | |
$_pageMargins | |
$_headerFooter | |
$_sheetView | |
$_protection | |
$_styles = array() | |
$_conditionalStylesCollection = array() | |
$_cellCollectionIsSorted = false | |
$_breaks = array() | |
$_mergeCells = array() | |
$_protectedCells = array() | |
$_autoFilter = NULL | |
$_freezePane = '' | |
$_showGridlines = true | |
$_printGridlines = false | |
$_showRowColHeaders = true | |
$_showSummaryBelow = true | |
$_showSummaryRight = true | |
$_comments = array() | |
$_activeCell = 'A1' | |
$_selectedCells = 'A1' | |
$_cachedHighestColumn = 'A' | |
$_cachedHighestRow = 1 | |
$_rightToLeft = false | |
$_hyperlinkCollection = array() | |
$_dataValidationCollection = array() | |
$_tabColor | |
$_dirty = true | |
$_hash = null | |
$_codeName = null | |
Static Private Attributes | |
static | $_invalidCharacters = array('*', ':', '/', '\\', '?', '[', ']') |
Definition at line 36 of file Worksheet.php.
PHPExcel_Worksheet::__construct | ( | PHPExcel | $pParent = null , |
$pTitle = 'Worksheet' |
|||
) |
Create a new worksheet.
PHPExcel | $pParent | |
string | $pTitle |
Definition at line 341 of file Worksheet.php.
References PHPExcel_CachedObjectStorageFactory\getInstance(), getTitle(), setCodeName(), setSheetState(), setTitle(), and SHEETSTATE_VISIBLE.
PHPExcel_Worksheet::__destruct | ( | ) |
Code to execute when this worksheet is unset()
Definition at line 401 of file Worksheet.php.
References disconnectCells(), and PHPExcel_Calculation\getInstance().
PHPExcel_Worksheet::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition at line 2856 of file Worksheet.php.
References $_autoFilter, $_cellCollection, and $_drawingCollection.
|
staticprivate |
Check sheet code name for valid Excel syntax.
string | $pValue | The string to check |
Exception |
Definition at line 435 of file Worksheet.php.
References PHPExcel_Shared_String\CountCharacters(), and PHPExcel_Shared_String\Substring().
|
staticprivate |
Check sheet title for valid Excel syntax.
string | $pValue | The string to check |
PHPExcel_Exception |
Definition at line 463 of file Worksheet.php.
References PHPExcel_Shared_String\CountCharacters().
|
private |
Create a new cell at the specified coordinate.
string | $pCoordinate | Coordinate of the cell |
Definition at line 1215 of file Worksheet.php.
References PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), getColumnDimension(), getRowDimension(), and PHPExcel_Cell_DataType\TYPE_NULL.
Referenced by getCell(), and getCellByColumnAndRow().
PHPExcel_Worksheet::addChart | ( | PHPExcel_Chart | $pChart = null , |
$iChartIndex = null |
|||
) |
Add chart.
PHPExcel_Chart | $pChart | |
int | null | $iChartIndex | Index where chart should go (0,1,..., or null for last) |
Definition at line 576 of file Worksheet.php.
References array.
PHPExcel_Worksheet::calculateColumnWidths | ( | $calculateMergeCells = false | ) |
Calculate widths for auto-size columns.
boolean | $calculateMergeCells | Calculate merge cell width |
Definition at line 724 of file Worksheet.php.
References array, PHPExcel_Shared_Font\calculateColumnWidth(), PHPExcel_Cell\extractAllCellReferencesInRange(), getCell(), getCellCollection(), getColumnDimension(), getColumnDimensions(), getDefaultColumnDimension(), getDefaultStyle(), getMergeCells(), getParent(), and PHPExcel_Style_NumberFormat\toFormattedString().
PHPExcel_Worksheet::calculateWorksheetDataDimension | ( | ) |
Calculate worksheet data dimension.
Definition at line 712 of file Worksheet.php.
References getHighestDataColumn(), and getHighestDataRow().
PHPExcel_Worksheet::calculateWorksheetDimension | ( | ) |
Calculate worksheet dimension.
Definition at line 701 of file Worksheet.php.
References getHighestColumn(), and getHighestRow().
PHPExcel_Worksheet::cellExists | ( | $pCoordinate = 'A1' | ) |
Does the cell at a specific coordinate exist?
string | $pCoordinate | Coordinate of the cell |
PHPExcel_Exception |
Definition at line 1256 of file Worksheet.php.
References PHPExcel_Calculation\CALCULATION_REGEXP_CELLREF, PHPExcel_Calculation\CALCULATION_REGEXP_NAMEDRANGE, PHPExcel_Cell\coordinateFromString(), extractSheetTitle(), getHashCode(), getTitle(), and PHPExcel_NamedRange\resolveRange().
Referenced by cellExistsByColumnAndRow(), and mergeCells().
PHPExcel_Worksheet::cellExistsByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 |
|||
) |
Cell at a specific coordinate by using numeric cell coordinates exists?
string | $pColumn | Numeric column coordinate of the cell |
string | $pRow | Numeric row coordinate of the cell |
Definition at line 1304 of file Worksheet.php.
References cellExists(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::conditionalStylesExists | ( | $pCoordinate = 'A1' | ) |
Do conditional styles exist for this cell?
string | $pCoordinate |
Definition at line 1445 of file Worksheet.php.
PHPExcel_Worksheet::copy | ( | ) |
PHPExcel_Worksheet::dataValidationExists | ( | $pCoordinate = 'A1' | ) |
Data validation at a specific coordinate exists?
string | $pCoordinate |
Definition at line 2764 of file Worksheet.php.
PHPExcel_Worksheet::disconnectCells | ( | ) |
Disconnect all cells from this PHPExcel_Worksheet object, typically so that the worksheet object can be unset.
Definition at line 388 of file Worksheet.php.
Referenced by __destruct().
PHPExcel_Worksheet::duplicateConditionalStyle | ( | array | $pCellStyle = null , |
$pRange = '' |
|||
) |
Duplicate conditional style to a range of cells.
Please note that this will overwrite existing cell styles for cells in range!
@param array of PHPExcel_Style_Conditional $pCellStyle Cell style to duplicate
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
PHPExcel_Exception |
Definition at line 1581 of file Worksheet.php.
References $row, PHPExcel_Cell\rangeBoundaries(), setConditionalStyles(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::duplicateStyle | ( | PHPExcel_Style | $pCellStyle = null , |
$pRange = '' |
|||
) |
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") |
PHPExcel_Exception |
Definition at line 1535 of file Worksheet.php.
References $_parent, $row, $style, getCell(), PHPExcel_Cell\rangeBoundaries(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by setSharedStyle().
PHPExcel_Worksheet::duplicateStyleArray | ( | $pStyles = null , |
|
$pRange = '' , |
|||
$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.
array | $pStyles | Array containing style information |
string | $pRange | Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") |
boolean | $pAdvanced | Advanced mode for setting borders. |
PHPExcel_Exception |
Definition at line 1623 of file Worksheet.php.
References getStyle().
|
static |
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) |
Definition at line 2654 of file Worksheet.php.
References array.
Referenced by cellExists(), PHPExcel_Calculation\extractCellRange(), PHPExcel_Calculation\extractNamedRange(), getCell(), and PHPExcel_Reader_Excel2007\load().
PHPExcel_Worksheet::freezePane | ( | $pCell = '' | ) |
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) |
PHPExcel_Exception |
Definition at line 1969 of file Worksheet.php.
Referenced by freezePaneByColumnAndRow(), and unfreezePane().
PHPExcel_Worksheet::freezePaneByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 |
|||
) |
Freeze Pane by using numeric cell coordinates.
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
PHPExcel_Exception |
Definition at line 1990 of file Worksheet.php.
References freezePane(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::fromArray | ( | $source = null , |
|
$nullValue = null , |
|||
$startCell = 'A1' , |
|||
$strictNullComparison = false |
|||
) |
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 |
boolean | $strictNullComparison | Apply strict comparison when testing for null values in the array |
PHPExcel_Exception |
Definition at line 2405 of file Worksheet.php.
References array, PHPExcel_Cell\coordinateFromString(), and getCell().
PHPExcel_Worksheet::garbageCollect | ( | ) |
Run PHPExcel garabage collector.
Definition at line 2588 of file Worksheet.php.
References PHPExcel_Cell\columnIndexFromString(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by toArray().
PHPExcel_Worksheet::getActiveCell | ( | ) |
Get active cell.
Definition at line 2302 of file Worksheet.php.
References $_activeCell.
PHPExcel_Worksheet::getAutoFilter | ( | ) |
PHPExcel_Worksheet::getBreaks | ( | ) |
Get breaks.
Definition at line 1675 of file Worksheet.php.
References $_breaks.
Referenced by PHPExcel_ReferenceHelper\_adjustPageBreaks(), and PHPExcel_Writer_HTML\_generateRow().
PHPExcel_Worksheet::getCell | ( | $pCoordinate = 'A1' | ) |
Get cell at a specific coordinate.
string | $pCoordinate | Coordinate of the cell |
PHPExcel_Exception |
Definition at line 1153 of file Worksheet.php.
References _createNewCell(), PHPExcel_Calculation\CALCULATION_REGEXP_CELLREF, PHPExcel_Calculation\CALCULATION_REGEXP_NAMEDRANGE, extractSheetTitle(), and PHPExcel_NamedRange\resolveRange().
Referenced by PHPExcel_Writer_HTML\_generateRow(), PHPExcel\addExternalSheet(), calculateColumnWidths(), duplicateStyle(), fromArray(), mergeCells(), PHPExcel_Chart_DataSeriesValues\refresh(), setCellValue(), and setCellValueExplicit().
PHPExcel_Worksheet::getCellByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 |
|||
) |
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 |
Definition at line 1197 of file Worksheet.php.
References _createNewCell(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by setCellValueByColumnAndRow(), and setCellValueExplicitByColumnAndRow().
PHPExcel_Worksheet::getCellCacheController | ( | ) |
Return the cache controller for the cell collection.
Definition at line 413 of file Worksheet.php.
References $_cellCollection.
Referenced by PHPExcel_Cell\rebindParent(), removeColumn(), and removeRow().
PHPExcel_Worksheet::getCellCollection | ( | $pSorted = true | ) |
Get collection of cells.
boolean | $pSorted | Also sort the cell collection? |
Definition at line 484 of file Worksheet.php.
References array, and sortCellCollection().
Referenced by PHPExcel\addExternalSheet(), and calculateColumnWidths().
PHPExcel_Worksheet::getChartByIndex | ( | $index = null | ) |
Get a chart by its index position.
string | $index | Chart index position |
PHPExcel_Exception |
Definition at line 606 of file Worksheet.php.
PHPExcel_Worksheet::getChartByName | ( | $chartName = '' | ) |
Get a chart by name.
string | $chartName | Chart name |
PHPExcel_Exception |
Definition at line 644 of file Worksheet.php.
References $chart.
PHPExcel_Worksheet::getChartCollection | ( | ) |
Get collection of charts.
Definition at line 564 of file Worksheet.php.
References $_chartCollection.
Referenced by PHPExcel_Writer_HTML\_extendRowsForChartsAndImages(), and PHPExcel_Writer_HTML\_writeChartInCell().
PHPExcel_Worksheet::getChartCount | ( | ) |
Return the count of charts on this worksheet.
Definition at line 594 of file Worksheet.php.
PHPExcel_Worksheet::getChartNames | ( | ) |
Return an array of the names of charts on this worksheet.
PHPExcel_Exception |
Definition at line 628 of file Worksheet.php.
PHPExcel_Worksheet::getCodeName | ( | ) |
Return the code name of the sheet.
Definition at line 2935 of file Worksheet.php.
References $_codeName.
Referenced by setCodeName().
PHPExcel_Worksheet::getColumnDimension | ( | $pColumn = 'A' , |
|
$create = TRUE |
|||
) |
Get column dimension at a specific column.
string | $pColumn | String index of the column |
Definition at line 1337 of file Worksheet.php.
References PHPExcel_Cell\columnIndexFromString().
Referenced by _createNewCell(), calculateColumnWidths(), and getColumnDimensionByColumn().
PHPExcel_Worksheet::getColumnDimensionByColumn | ( | $pColumn = 0 | ) |
Get column dimension at a specific column by using numeric cell coordinates.
string | $pColumn | Numeric column coordinate of the cell |
Definition at line 1360 of file Worksheet.php.
References getColumnDimension(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::getColumnDimensions | ( | ) |
Get collection of column dimensions.
Definition at line 534 of file Worksheet.php.
References $_columnDimensions.
Referenced by calculateColumnWidths(), and refreshColumnDimensions().
PHPExcel_Worksheet::getColumnIterator | ( | $startColumn = 'A' , |
|
$endColumn = null |
|||
) |
Get column iterator.
string | $startColumn | The column address at which to start iterating |
string | $endColumn | The column address at which to stop iterating |
Definition at line 2579 of file Worksheet.php.
PHPExcel_Worksheet::getComment | ( | $pCellCoordinate = 'A1' | ) |
Get comment for cell.
string | $pCellCoordinate | Cell coordinate to get comment for |
PHPExcel_Exception |
Definition at line 2250 of file Worksheet.php.
Referenced by getCommentByColumnAndRow().
PHPExcel_Worksheet::getCommentByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 |
|||
) |
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 |
Definition at line 2281 of file Worksheet.php.
References getComment(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::getComments | ( | ) |
Get comments.
Definition at line 2225 of file Worksheet.php.
References $_comments.
PHPExcel_Worksheet::getConditionalStyles | ( | $pCoordinate = 'A1' | ) |
Get conditional styles for a cell.
string | $pCoordinate |
Definition at line 1430 of file Worksheet.php.
References array.
PHPExcel_Worksheet::getConditionalStylesCollection | ( | ) |
Get collection of conditional styles.
Definition at line 1470 of file Worksheet.php.
References $_conditionalStylesCollection.
PHPExcel_Worksheet::getDataValidation | ( | $pCellCoordinate = 'A1' | ) |
Get data validation.
string | $pCellCoordinate | Cell coordinate to get data validation for |
Definition at line 2729 of file Worksheet.php.
PHPExcel_Worksheet::getDataValidationCollection | ( | ) |
Get collection of data validations.
Definition at line 2774 of file Worksheet.php.
References $_dataValidationCollection.
PHPExcel_Worksheet::getDefaultColumnDimension | ( | ) |
Get default column dimension.
Definition at line 544 of file Worksheet.php.
References $_defaultColumnDimension.
Referenced by calculateColumnWidths().
PHPExcel_Worksheet::getDefaultRowDimension | ( | ) |
Get default row dimension.
Definition at line 524 of file Worksheet.php.
References $_defaultRowDimension.
PHPExcel_Worksheet::getDefaultStyle | ( | ) |
Get default style of workbook.
PHPExcel_Exception |
Definition at line 1382 of file Worksheet.php.
Referenced by calculateColumnWidths().
PHPExcel_Worksheet::getDrawingCollection | ( | ) |
Get collection of drawings.
Definition at line 554 of file Worksheet.php.
References $_drawingCollection.
Referenced by PHPExcel_Writer_HTML\_extendRowsForChartsAndImages(), and PHPExcel_Writer_HTML\_writeImageInCell().
PHPExcel_Worksheet::getFreezePane | ( | ) |
Get Freeze Pane.
Definition at line 1952 of file Worksheet.php.
References $_freezePane.
PHPExcel_Worksheet::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 2632 of file Worksheet.php.
References $_hash.
Referenced by cellExists(), and PHPExcel\getIndex().
PHPExcel_Worksheet::getHeaderFooter | ( | ) |
PHPExcel_Worksheet::getHighestColumn | ( | $row = null | ) |
Get highest worksheet column.
string | $row | Return the data highest column for the specified row, or the highest column of any row if no row number is passed |
Definition at line 1028 of file Worksheet.php.
References $_cachedHighestColumn, $row, and getHighestDataColumn().
Referenced by calculateWorksheetDimension(), shrinkRangeToFit(), and toArray().
PHPExcel_Worksheet::getHighestDataColumn | ( | $row = null | ) |
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 |
Definition at line 1043 of file Worksheet.php.
References $row.
Referenced by calculateWorksheetDataDimension(), getHighestColumn(), and removeColumn().
PHPExcel_Worksheet::getHighestDataRow | ( | $column = null | ) |
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 |
Definition at line 1070 of file Worksheet.php.
References $column.
Referenced by calculateWorksheetDataDimension(), getHighestRow(), and removeRow().
PHPExcel_Worksheet::getHighestRow | ( | $column = null | ) |
Get highest worksheet row.
string | $column | Return the highest data row for the specified column, or the highest row of any column if no column letter is passed |
Definition at line 1055 of file Worksheet.php.
References $_cachedHighestRow, $column, and getHighestDataRow().
Referenced by calculateWorksheetDimension(), shrinkRangeToFit(), and toArray().
PHPExcel_Worksheet::getHighestRowAndColumn | ( | ) |
Get highest worksheet column and highest row that have cell records.
Definition at line 1080 of file Worksheet.php.
PHPExcel_Worksheet::getHyperlink | ( | $pCellCoordinate = 'A1' | ) |
Get hyperlink.
string | $pCellCoordinate | Cell coordinate to get hyperlink for |
Definition at line 2674 of file Worksheet.php.
Referenced by PHPExcel_Writer_HTML\_generateRow().
PHPExcel_Worksheet::getHyperlinkCollection | ( | ) |
Get collection of hyperlinks.
Definition at line 2719 of file Worksheet.php.
References $_hyperlinkCollection.
|
static |
Get array of invalid characters for sheet title.
Definition at line 423 of file Worksheet.php.
PHPExcel_Worksheet::getMergeCells | ( | ) |
Get merge cells array.
Definition at line 1781 of file Worksheet.php.
References $_mergeCells.
Referenced by calculateColumnWidths().
PHPExcel_Worksheet::getPageMargins | ( | ) |
Get page margins.
Definition at line 936 of file Worksheet.php.
References $_pageMargins.
Referenced by PHPExcel_Writer_HTML\_setMargins().
PHPExcel_Worksheet::getPageSetup | ( | ) |
Get page setup.
Definition at line 914 of file Worksheet.php.
References $_pageSetup.
PHPExcel_Worksheet::getParent | ( | ) |
Get parent.
Definition at line 786 of file Worksheet.php.
References $_parent.
Referenced by PHPExcel_Writer_HTML\_generateRow(), PHPExcel\addExternalSheet(), PHPExcel\addSheet(), calculateColumnWidths(), PHPExcel_Chart_DataSeriesValues\refresh(), PHPExcel_NamedRange\resolveRange(), and setCodeName().
PHPExcel_Worksheet::getPrintGridlines | ( | ) |
Print gridlines?
Definition at line 2145 of file Worksheet.php.
References $_printGridlines.
PHPExcel_Worksheet::getProtectedCells | ( | ) |
Get protected cells.
Definition at line 1882 of file Worksheet.php.
References $_protectedCells.
PHPExcel_Worksheet::getProtection | ( | ) |
PHPExcel_Worksheet::getRightToLeft | ( | ) |
Get right-to-left.
Definition at line 2380 of file Worksheet.php.
References $_rightToLeft.
PHPExcel_Worksheet::getRowDimension | ( | $pRow = 1 , |
|
$create = TRUE |
|||
) |
Get row dimension at a specific row.
int | $pRow | Numeric index of the row |
Definition at line 1315 of file Worksheet.php.
Referenced by _createNewCell().
PHPExcel_Worksheet::getRowDimensions | ( | ) |
Get collection of row dimensions.
Definition at line 514 of file Worksheet.php.
References $_rowDimensions.
Referenced by refreshRowDimensions().
PHPExcel_Worksheet::getRowIterator | ( | $startRow = 1 , |
|
$endRow = null |
|||
) |
Get row iterator.
integer | $startRow | The row number at which to start iterating |
integer | $endRow | The row number at which to stop iterating |
Definition at line 2567 of file Worksheet.php.
Referenced by PHPExcel_Writer_OpenDocument_Content\_writeRows().
PHPExcel_Worksheet::getSelectedCell | ( | ) |
Get selected cell.
Definition at line 2292 of file Worksheet.php.
References getSelectedCells().
PHPExcel_Worksheet::getSelectedCells | ( | ) |
Get selected cells.
Definition at line 2312 of file Worksheet.php.
References $_selectedCells.
Referenced by getSelectedCell().
PHPExcel_Worksheet::getSheetState | ( | ) |
Get sheet state.
Definition at line 894 of file Worksheet.php.
References $_sheetState.
PHPExcel_Worksheet::getSheetView | ( | ) |
Get sheet view.
Definition at line 980 of file Worksheet.php.
References $_sheetView.
PHPExcel_Worksheet::getShowGridlines | ( | ) |
Show gridlines?
Definition at line 2125 of file Worksheet.php.
References $_showGridlines.
PHPExcel_Worksheet::getShowRowColHeaders | ( | ) |
Show row and column headers?
Definition at line 2165 of file Worksheet.php.
References $_showRowColHeaders.
PHPExcel_Worksheet::getShowSummaryBelow | ( | ) |
Show summary below? (Row/Column outlining)
Definition at line 2185 of file Worksheet.php.
References $_showSummaryBelow.
PHPExcel_Worksheet::getShowSummaryRight | ( | ) |
Show summary right? (Row/Column outlining)
Definition at line 2205 of file Worksheet.php.
References $_showSummaryRight.
PHPExcel_Worksheet::getStyle | ( | $pCellCoordinate = 'A1' | ) |
Get style for cell.
string | $pCellCoordinate | Cell coordinate (or range) to get style for |
PHPExcel_Exception |
Definition at line 1413 of file Worksheet.php.
References setSelectedCells().
Referenced by duplicateStyleArray(), and getStyleByColumnAndRow().
PHPExcel_Worksheet::getStyleByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 , |
|||
$pColumn2 = null , |
|||
$pRow2 = null |
|||
) |
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 |
int | pColumn2 Numeric column coordinate of the range cell | |
int | pRow2 Numeric row coordinate of the range cell |
Definition at line 1497 of file Worksheet.php.
References getStyle(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::getStyles | ( | ) |
Get styles.
Definition at line 1370 of file Worksheet.php.
References $_styles.
PHPExcel_Worksheet::getTabColor | ( | ) |
Get tab color.
Definition at line 2811 of file Worksheet.php.
References $_tabColor.
PHPExcel_Worksheet::getTitle | ( | ) |
Get title.
Definition at line 817 of file Worksheet.php.
References $_title.
Referenced by __construct(), PHPExcel\addExternalSheet(), PHPExcel\addSheet(), cellExists(), and setTitle().
PHPExcel_Worksheet::hasCodeName | ( | ) |
PHPExcel_Worksheet::hyperlinkExists | ( | $pCoordinate = 'A1' | ) |
Hyperlink at a specific coordinate exists?
string | $pCoordinate |
Definition at line 2709 of file Worksheet.php.
Referenced by PHPExcel_Writer_HTML\_generateRow().
PHPExcel_Worksheet::insertNewColumnBefore | ( | $pBefore = 'A' , |
|
$pNumCols = 1 |
|||
) |
Insert a new column, updating all possible related data.
int | $pBefore | Insert before this one |
int | $pNumCols | Number of columns to insert |
PHPExcel_Exception |
Definition at line 2031 of file Worksheet.php.
References PHPExcel_ReferenceHelper\getInstance().
Referenced by insertNewColumnBeforeByIndex().
PHPExcel_Worksheet::insertNewColumnBeforeByIndex | ( | $pBefore = 0 , |
|
$pNumCols = 1 |
|||
) |
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 |
PHPExcel_Exception |
Definition at line 2049 of file Worksheet.php.
References insertNewColumnBefore(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::insertNewRowBefore | ( | $pBefore = 1 , |
|
$pNumRows = 1 |
|||
) |
Insert a new row, updating all possible related data.
int | $pBefore | Insert before this one |
int | $pNumRows | Number of rows to insert |
PHPExcel_Exception |
Definition at line 2013 of file Worksheet.php.
References PHPExcel_ReferenceHelper\getInstance().
PHPExcel_Worksheet::isTabColorSet | ( | ) |
PHPExcel_Worksheet::mergeCells | ( | $pRange = 'A1:A1' | ) |
Set merge on a cell range.
string | $pRange | Cell range (e.g. A1:E1) |
PHPExcel_Exception |
Definition at line 1687 of file Worksheet.php.
References cellExists(), PHPExcel_Cell\extractAllCellReferencesInRange(), getCell(), and PHPExcel_Cell_DataType\TYPE_NULL.
Referenced by mergeCellsByColumnAndRow().
PHPExcel_Worksheet::mergeCellsByColumnAndRow | ( | $pColumn1 = 0 , |
|
$pRow1 = 1 , |
|||
$pColumn2 = 0 , |
|||
$pRow2 = 1 |
|||
) |
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 |
PHPExcel_Exception |
Definition at line 1729 of file Worksheet.php.
References mergeCells(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::namedRangeToArray | ( | $pNamedRange = '' , |
|
$nullValue = null , |
|||
$calculateFormulas = true , |
|||
$formatData = true , |
|||
$returnCellRef = false |
|||
) |
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 |
boolean | $calculateFormulas | Should formulas be calculated? |
boolean | $formatData | Should formatting be applied to cell values? |
boolean | $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 |
PHPExcel_Exception |
Definition at line 2523 of file Worksheet.php.
References PHPExcel_NamedRange\resolveRange().
PHPExcel_Worksheet::protectCells | ( | $pRange = 'A1' , |
|
$pPassword = '' , |
|||
$pAlreadyHashed = false |
|||
) |
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 |
boolean | $pAlreadyHashed | If the password has already been hashed, set this to true |
PHPExcel_Exception |
Definition at line 1808 of file Worksheet.php.
References PHPExcel_Shared_PasswordHasher\hashPassword().
Referenced by protectCellsByColumnAndRow().
PHPExcel_Worksheet::protectCellsByColumnAndRow | ( | $pColumn1 = 0 , |
|
$pRow1 = 1 , |
|||
$pColumn2 = 0 , |
|||
$pRow2 = 1 , |
|||
$pPassword = '' , |
|||
$pAlreadyHashed = false |
|||
) |
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 |
boolean | $pAlreadyHashed | If the password has already been hashed, set this to true |
PHPExcel_Exception |
Definition at line 1833 of file Worksheet.php.
References protectCells(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::rangeToArray | ( | $pRange = 'A1' , |
|
$nullValue = null , |
|||
$calculateFormulas = true , |
|||
$formatData = true , |
|||
$returnCellRef = false |
|||
) |
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 |
boolean | $calculateFormulas | Should formulas be calculated? |
boolean | $formatData | Should formatting be applied to cell values? |
boolean | $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 |
Definition at line 2451 of file Worksheet.php.
References $r, $row, $style, array, PHPExcel_Style_NumberFormat\FORMAT_GENERAL, PHPExcel_Cell\rangeBoundaries(), PHPExcel_Cell\stringFromColumnIndex(), and PHPExcel_Style_NumberFormat\toFormattedString().
Referenced by toArray().
PHPExcel_Worksheet::rebindParent | ( | PHPExcel | $parent | ) |
Re-bind parent.
PHPExcel | $parent |
Definition at line 796 of file Worksheet.php.
References PHPExcel\addNamedRange().
Referenced by PHPExcel\addExternalSheet(), and PHPExcel\addSheet().
PHPExcel_Worksheet::refreshColumnDimensions | ( | ) |
Refresh column dimensions.
Definition at line 663 of file Worksheet.php.
References array, and getColumnDimensions().
PHPExcel_Worksheet::refreshRowDimensions | ( | ) |
Refresh row dimensions.
Definition at line 682 of file Worksheet.php.
References array, and getRowDimensions().
PHPExcel_Worksheet::removeAutoFilter | ( | ) |
PHPExcel_Worksheet::removeColumn | ( | $pColumn = 'A' , |
|
$pNumCols = 1 |
|||
) |
Remove a column, updating all possible related data.
string | $pColumn | Remove starting with this one |
int | $pNumCols | Number of columns to remove |
PHPExcel_Exception |
Definition at line 2088 of file Worksheet.php.
References PHPExcel_Cell\columnIndexFromString(), getCellCacheController(), getHighestDataColumn(), PHPExcel_ReferenceHelper\getInstance(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by removeColumnByIndex().
PHPExcel_Worksheet::removeColumnByIndex | ( | $pColumn = 0 , |
|
$pNumCols = 1 |
|||
) |
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 |
PHPExcel_Exception |
Definition at line 2112 of file Worksheet.php.
References removeColumn(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::removeConditionalStyles | ( | $pCoordinate = 'A1' | ) |
Removes conditional styles for a cell.
string | $pCoordinate |
Definition at line 1459 of file Worksheet.php.
PHPExcel_Worksheet::removeRow | ( | $pRow = 1 , |
|
$pNumRows = 1 |
|||
) |
Delete a row, updating all possible related data.
int | $pRow | Remove starting with this one |
int | $pNumRows | Number of rows to remove |
PHPExcel_Exception |
Definition at line 2065 of file Worksheet.php.
References $r, getCellCacheController(), getHighestDataRow(), and PHPExcel_ReferenceHelper\getInstance().
PHPExcel_Worksheet::resetTabColor | ( | ) |
PHPExcel_Worksheet::setAutoFilter | ( | $pValue | ) |
Set AutoFilter.
PHPExcel_Worksheet_AutoFilter | string | $pValue | A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility |
PHPExcel_Exception |
Definition at line 1905 of file Worksheet.php.
Referenced by setAutoFilterByColumnAndRow().
PHPExcel_Worksheet::setAutoFilterByColumnAndRow | ( | $pColumn1 = 0 , |
|
$pRow1 = 1 , |
|||
$pColumn2 = 0 , |
|||
$pRow2 = 1 |
|||
) |
Set Autofilter Range by using numeric cell coordinates.
integer | $pColumn1 | Numeric column coordinate of the first cell |
integer | $pRow1 | Numeric row coordinate of the first cell |
integer | $pColumn2 | Numeric column coordinate of the second cell |
integer | $pRow2 | Numeric row coordinate of the second cell |
PHPExcel_Exception |
Definition at line 1927 of file Worksheet.php.
References setAutoFilter(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::setBreak | ( | $pCell = 'A1' , |
|
$pBreak = PHPExcel_Worksheet::BREAK_NONE |
|||
) |
Set break on a cell.
string | $pCell | Cell coordinate (e.g. A1) |
int | $pBreak | Break type (type of PHPExcel_Worksheet::BREAK_*) |
PHPExcel_Exception |
Definition at line 1637 of file Worksheet.php.
References BREAK_NONE.
Referenced by PHPExcel_ReferenceHelper\_adjustPageBreaks(), and setBreakByColumnAndRow().
PHPExcel_Worksheet::setBreakByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 , |
|||
$pBreak = PHPExcel_Worksheet::BREAK_NONE |
|||
) |
Set break on a cell by using numeric cell coordinates.
integer | $pColumn | Numeric column coordinate of the cell |
integer | $pRow | Numeric row coordinate of the cell |
integer | $pBreak | Break type (type of PHPExcel_Worksheet::BREAK_*) |
Definition at line 1665 of file Worksheet.php.
References setBreak(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::setCellValue | ( | $pCoordinate = 'A1' , |
|
$pValue = null , |
|||
$returnCell = false |
|||
) |
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) |
Definition at line 1093 of file Worksheet.php.
References getCell().
PHPExcel_Worksheet::setCellValueByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 , |
|||
$pValue = null , |
|||
$returnCell = false |
|||
) |
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) |
Definition at line 1108 of file Worksheet.php.
References getCellByColumnAndRow().
PHPExcel_Worksheet::setCellValueExplicit | ( | $pCoordinate = 'A1' , |
|
$pValue = null , |
|||
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING , |
|||
$returnCell = false |
|||
) |
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) |
Definition at line 1123 of file Worksheet.php.
References getCell().
PHPExcel_Worksheet::setCellValueExplicitByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 , |
|||
$pValue = null , |
|||
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING , |
|||
$returnCell = false |
|||
) |
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) |
Definition at line 1140 of file Worksheet.php.
References getCellByColumnAndRow().
PHPExcel_Worksheet::setCodeName | ( | $pValue = null | ) |
Define the code name of the sheet.
null|string | Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) |
PHPExcel_Exception |
Definition at line 2887 of file Worksheet.php.
References PHPExcel_Shared_String\CountCharacters(), getCodeName(), getParent(), and PHPExcel_Shared_String\Substring().
Referenced by __construct().
PHPExcel_Worksheet::setComments | ( | $pValue = array() | ) |
Set comments array for the entire sheet.
array | of PHPExcel_Comment |
Definition at line 2236 of file Worksheet.php.
PHPExcel_Worksheet::setConditionalStyles | ( | $pCoordinate = 'A1' , |
|
$pValue | |||
) |
Set conditional styles.
$pCoordinate | string E.g. 'A1' |
$pValue | PHPExcel_Style_Conditional[] |
Definition at line 1482 of file Worksheet.php.
Referenced by duplicateConditionalStyle().
PHPExcel_Worksheet::setDataValidation | ( | $pCellCoordinate = 'A1' , |
|
PHPExcel_Cell_DataValidation | $pDataValidation = null |
||
) |
Set data validation.
string | $pCellCoordinate | Cell coordinate to insert data validation |
PHPExcel_Cell_DataValidation | $pDataValidation |
Definition at line 2748 of file Worksheet.php.
PHPExcel_Worksheet::setDefaultStyle | ( | PHPExcel_Style | $pValue | ) |
Set default style - should only be used by PHPExcel_IReader implementations!
PHPExcel_Style | $pValue |
PHPExcel_Exception |
Definition at line 1395 of file Worksheet.php.
References array, and PHPExcel_Style\getFont().
PHPExcel_Worksheet::setHeaderFooter | ( | PHPExcel_Worksheet_HeaderFooter | $pValue | ) |
Set page header/footer.
PHPExcel_Worksheet_HeaderFooter | $pValue |
Definition at line 969 of file Worksheet.php.
PHPExcel_Worksheet::setHyperlink | ( | $pCellCoordinate = 'A1' , |
|
PHPExcel_Cell_Hyperlink | $pHyperlink = null |
||
) |
Set hyperlnk.
string | $pCellCoordinate | Cell coordinate to insert hyperlink |
PHPExcel_Cell_Hyperlink | $pHyperlink |
Definition at line 2693 of file Worksheet.php.
PHPExcel_Worksheet::setMergeCells | ( | $pValue = array() | ) |
Set merge cells array for the entire sheet.
Use instead mergeCells() to merge a single cell range.
array |
Definition at line 1792 of file Worksheet.php.
PHPExcel_Worksheet::setPageMargins | ( | PHPExcel_Worksheet_PageMargins | $pValue | ) |
Set page margins.
PHPExcel_Worksheet_PageMargins | $pValue |
Definition at line 947 of file Worksheet.php.
PHPExcel_Worksheet::setPageSetup | ( | PHPExcel_Worksheet_PageSetup | $pValue | ) |
Set page setup.
PHPExcel_Worksheet_PageSetup | $pValue |
Definition at line 925 of file Worksheet.php.
PHPExcel_Worksheet::setPrintGridlines | ( | $pValue = false | ) |
Set print gridlines.
boolean | $pValue | Print gridlines (true/false) |
Definition at line 2155 of file Worksheet.php.
PHPExcel_Worksheet::setProtection | ( | PHPExcel_Worksheet_Protection | $pValue | ) |
Set Protection.
PHPExcel_Worksheet_Protection | $pValue |
Definition at line 1013 of file Worksheet.php.
PHPExcel_Worksheet::setRightToLeft | ( | $value = false | ) |
Set right-to-left.
boolean | $value | Right-to-left true/false |
Definition at line 2390 of file Worksheet.php.
PHPExcel_Worksheet::setSelectedCell | ( | $pCoordinate = 'A1' | ) |
Selected cell.
string | $pCoordinate | Cell (i.e. A1) |
Definition at line 2323 of file Worksheet.php.
References setSelectedCells().
PHPExcel_Worksheet::setSelectedCellByColumnAndRow | ( | $pColumn = 0 , |
|
$pRow = 1 |
|||
) |
Selected cell by using numeric cell coordinates.
int | $pColumn | Numeric column coordinate of the cell |
int | $pRow | Numeric row coordinate of the cell |
PHPExcel_Exception |
Definition at line 2370 of file Worksheet.php.
References setSelectedCells(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::setSelectedCells | ( | $pCoordinate = 'A1' | ) |
Select a range of cells.
string | $pCoordinate | Cell range, examples: 'A1', 'B2:G5', 'A:C', '3:6' |
PHPExcel_Exception |
Definition at line 2335 of file Worksheet.php.
References PHPExcel_Cell\splitRange().
Referenced by getStyle(), setSelectedCell(), and setSelectedCellByColumnAndRow().
PHPExcel_Worksheet::setSharedStyle | ( | PHPExcel_Style | $pSharedCellStyle = null , |
$pRange = '' |
|||
) |
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") |
PHPExcel_Exception |
Definition at line 1519 of file Worksheet.php.
References duplicateStyle().
PHPExcel_Worksheet::setSheetState | ( | $value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE | ) |
Set sheet state.
string | $value | Sheet state (visible, hidden, veryHidden) |
Definition at line 904 of file Worksheet.php.
Referenced by __construct().
PHPExcel_Worksheet::setSheetView | ( | PHPExcel_Worksheet_SheetView | $pValue | ) |
Set sheet view.
PHPExcel_Worksheet_SheetView | $pValue |
Definition at line 991 of file Worksheet.php.
PHPExcel_Worksheet::setShowGridlines | ( | $pValue = false | ) |
Set show gridlines.
boolean | $pValue | Show gridlines (true/false) |
Definition at line 2135 of file Worksheet.php.
PHPExcel_Worksheet::setShowRowColHeaders | ( | $pValue = false | ) |
Set show row and column headers.
boolean | $pValue | Show row and column headers (true/false) |
Definition at line 2175 of file Worksheet.php.
PHPExcel_Worksheet::setShowSummaryBelow | ( | $pValue = true | ) |
Set show summary below.
boolean | $pValue | Show summary below (true/false) |
Definition at line 2195 of file Worksheet.php.
PHPExcel_Worksheet::setShowSummaryRight | ( | $pValue = true | ) |
Set show summary right.
boolean | $pValue | Show summary right (true/false) |
Definition at line 2215 of file Worksheet.php.
PHPExcel_Worksheet::setTitle | ( | $pValue = 'Worksheet' , |
|
$updateFormulaCellReferences = true |
|||
) |
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 |
Definition at line 833 of file Worksheet.php.
References PHPExcel_Shared_String\CountCharacters(), PHPExcel_ReferenceHelper\getInstance(), PHPExcel_Calculation\getInstance(), getTitle(), and PHPExcel_Shared_String\Substring().
Referenced by __construct().
PHPExcel_Worksheet::shrinkRangeToFit | ( | $range | ) |
Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet.
string | $range |
Definition at line 2785 of file Worksheet.php.
References PHPExcel_Cell\columnIndexFromString(), getHighestColumn(), getHighestRow(), PHPExcel_Cell\getRangeBoundaries(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Worksheet::sortCellCollection | ( | ) |
Sort collection of cells.
Definition at line 501 of file Worksheet.php.
References array.
Referenced by getCellCollection().
PHPExcel_Worksheet::toArray | ( | $nullValue = null , |
|
$calculateFormulas = true , |
|||
$formatData = true , |
|||
$returnCellRef = false |
|||
) |
Create array from worksheet.
mixed | $nullValue | Value returned in the array entry if a cell doesn't exist |
boolean | $calculateFormulas | Should formulas be calculated? |
boolean | $formatData | Should formatting be applied to cell values? |
boolean | $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 |
Definition at line 2547 of file Worksheet.php.
References garbageCollect(), getHighestColumn(), getHighestRow(), and rangeToArray().
PHPExcel_Worksheet::unfreezePane | ( | ) |
Unfreeze Pane.
Definition at line 2000 of file Worksheet.php.
References freezePane().
PHPExcel_Worksheet::unmergeCells | ( | $pRange = 'A1:A1' | ) |
Remove merge on a cell range.
string | $pRange | Cell range (e.g. A1:E1) |
PHPExcel_Exception |
Definition at line 1742 of file Worksheet.php.
Referenced by unmergeCellsByColumnAndRow().
PHPExcel_Worksheet::unmergeCellsByColumnAndRow | ( | $pColumn1 = 0 , |
|
$pRow1 = 1 , |
|||
$pColumn2 = 0 , |
|||
$pRow2 = 1 |
|||
) |
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 |
PHPExcel_Exception |
Definition at line 1770 of file Worksheet.php.
References PHPExcel_Cell\stringFromColumnIndex(), and unmergeCells().
PHPExcel_Worksheet::unprotectCells | ( | $pRange = 'A1' | ) |
Remove protection on a cell range.
string | $pRange | Cell (e.g. A1) or cell range (e.g. A1:E1) |
PHPExcel_Exception |
Definition at line 1846 of file Worksheet.php.
Referenced by unprotectCellsByColumnAndRow().
PHPExcel_Worksheet::unprotectCellsByColumnAndRow | ( | $pColumn1 = 0 , |
|
$pRow1 = 1 , |
|||
$pColumn2 = 0 , |
|||
$pRow2 = 1 , |
|||
$pPassword = '' , |
|||
$pAlreadyHashed = false |
|||
) |
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 |
boolean | $pAlreadyHashed | If the password has already been hashed, set this to true |
PHPExcel_Exception |
Definition at line 1871 of file Worksheet.php.
References PHPExcel_Cell\stringFromColumnIndex(), and unprotectCells().
|
private |
Definition at line 263 of file Worksheet.php.
Referenced by getActiveCell().
|
private |
Definition at line 207 of file Worksheet.php.
Referenced by __clone(), and getAutoFilter().
|
private |
Definition at line 186 of file Worksheet.php.
Referenced by getBreaks().
|
private |
Definition at line 277 of file Worksheet.php.
Referenced by getHighestColumn().
|
private |
Definition at line 284 of file Worksheet.php.
Referenced by getHighestRow().
|
private |
Definition at line 67 of file Worksheet.php.
Referenced by __clone(), and getCellCacheController().
|
private |
Definition at line 179 of file Worksheet.php.
|
private |
Definition at line 109 of file Worksheet.php.
Referenced by getChartCollection().
|
private |
Definition at line 333 of file Worksheet.php.
Referenced by getCodeName().
|
private |
Definition at line 88 of file Worksheet.php.
Referenced by getColumnDimensions().
|
private |
Definition at line 256 of file Worksheet.php.
Referenced by getComments().
|
private |
Definition at line 172 of file Worksheet.php.
Referenced by getConditionalStylesCollection().
|
private |
Definition at line 305 of file Worksheet.php.
Referenced by getDataValidationCollection().
|
private |
Definition at line 95 of file Worksheet.php.
Referenced by getDefaultColumnDimension().
|
private |
Definition at line 81 of file Worksheet.php.
Referenced by getDefaultRowDimension().
|
private |
Definition at line 319 of file Worksheet.php.
|
private |
Definition at line 102 of file Worksheet.php.
Referenced by __clone(), and getDrawingCollection().
|
private |
Definition at line 214 of file Worksheet.php.
Referenced by getFreezePane().
|
private |
Definition at line 326 of file Worksheet.php.
Referenced by getHashCode().
|
private |
Definition at line 144 of file Worksheet.php.
Referenced by getHeaderFooter().
|
private |
Definition at line 298 of file Worksheet.php.
Referenced by getHyperlinkCollection().
|
staticprivate |
Definition at line 53 of file Worksheet.php.
|
private |
Definition at line 193 of file Worksheet.php.
Referenced by getMergeCells().
|
private |
Definition at line 137 of file Worksheet.php.
Referenced by getPageMargins().
|
private |
Definition at line 130 of file Worksheet.php.
Referenced by getPageSetup().
|
private |
Definition at line 60 of file Worksheet.php.
Referenced by duplicateStyle(), and getParent().
|
private |
Definition at line 228 of file Worksheet.php.
Referenced by getPrintGridlines().
|
private |
Definition at line 200 of file Worksheet.php.
Referenced by getProtectedCells().
|
private |
Definition at line 158 of file Worksheet.php.
Referenced by getProtection().
|
private |
Definition at line 291 of file Worksheet.php.
Referenced by getRightToLeft().
|
private |
Definition at line 74 of file Worksheet.php.
Referenced by getRowDimensions().
|
private |
Definition at line 270 of file Worksheet.php.
Referenced by getSelectedCells().
|
private |
Definition at line 123 of file Worksheet.php.
Referenced by getSheetState().
|
private |
Definition at line 151 of file Worksheet.php.
Referenced by getSheetView().
|
private |
Definition at line 221 of file Worksheet.php.
Referenced by getShowGridlines().
|
private |
Definition at line 235 of file Worksheet.php.
Referenced by getShowRowColHeaders().
|
private |
Definition at line 242 of file Worksheet.php.
Referenced by getShowSummaryBelow().
|
private |
Definition at line 249 of file Worksheet.php.
Referenced by getShowSummaryRight().
|
private |
Definition at line 165 of file Worksheet.php.
Referenced by getStyles().
|
private |
Definition at line 312 of file Worksheet.php.
Referenced by getTabColor().
|
private |
Definition at line 116 of file Worksheet.php.
Referenced by getTitle().
const PHPExcel_Worksheet::BREAK_COLUMN = 2 |
Definition at line 41 of file Worksheet.php.
Referenced by PHPExcel_Reader_Excel5\_readVerticalPageBreaks(), PHPExcel_Writer_Excel2007_Worksheet\_writeBreaks(), PHPExcel_Writer_Excel5_Worksheet\_writeBreaks(), and PHPExcel_Reader_Excel2007\load().
const PHPExcel_Worksheet::BREAK_NONE = 0 |
Definition at line 39 of file Worksheet.php.
Referenced by PHPExcel_ReferenceHelper\_adjustPageBreaks(), PHPExcel_Writer_Excel5_Worksheet\_writeBreaks(), and setBreak().
const PHPExcel_Worksheet::BREAK_ROW = 1 |
Definition at line 40 of file Worksheet.php.
Referenced by PHPExcel_Reader_Excel5\_readHorizontalPageBreaks(), PHPExcel_Writer_Excel2007_Worksheet\_writeBreaks(), PHPExcel_Writer_Excel5_Worksheet\_writeBreaks(), and PHPExcel_Reader_Excel2007\load().
const PHPExcel_Worksheet::SHEETSTATE_HIDDEN = 'hidden' |
Definition at line 45 of file Worksheet.php.
Referenced by PHPExcel_Reader_Excel5\_readSheet().
const PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN = 'veryHidden' |
Definition at line 46 of file Worksheet.php.
Referenced by PHPExcel_Reader_Excel5\_readSheet().
const PHPExcel_Worksheet::SHEETSTATE_VISIBLE = 'visible' |
Definition at line 44 of file Worksheet.php.
Referenced by __construct(), and PHPExcel_Reader_Excel5\_readSheet().