DEFAULT_RANGE
DEFAULT_RANGE = 'A1:A1'
Default range variable constant
@var string
PHPExcel_Cell
$_valueBinder : \PHPExcel_Cell_IValueBinder
Value binder to use
$_calculatedValue : mixed
Calculated value of the cell (used for caching) This returns the value last calculated by MS Excel or whichever spreadsheet program was used to create the original spreadsheet file.
Note that this value is not guaranteed to reflect the actual calculated value because it is possible that auto-calculation was disabled in the original spreadsheet, and underlying data values used by the formula have changed since it was last calculated.
$_parent : \PHPExcel_CachedObjectStorage_CacheBase
Parent worksheet
attach(\PHPExcel_CachedObjectStorage_CacheBase $parent)
\PHPExcel_CachedObjectStorage_CacheBase | $parent |
__construct(mixed $pValue = NULL, string $pDataType = NULL, \PHPExcel_Worksheet $pSheet = NULL)
Create a new Cell
mixed | $pValue | |
string | $pDataType | |
\PHPExcel_Worksheet | $pSheet |
setValue(mixed $pValue = NULL) : \PHPExcel_Cell
Set cell value
Sets the value for a cell, automatically determining the datatype using the value binder
mixed | $pValue | Value |
setValueExplicit(mixed $pValue = NULL, string $pDataType = \PHPExcel_Cell_DataType::TYPE_STRING) : \PHPExcel_Cell
Set the value for a cell, with the explicit data type passed to the method (bypassing any use of the value binder)
mixed | $pValue | Value |
string | $pDataType | Explicit data type |
setCalculatedValue(mixed $pValue = NULL) : \PHPExcel_Cell
Set old calculated value (cached)
mixed | $pValue | Value |
None found |
getOldCalculatedValue() : mixed
Get old calculated value (cached) This returns the value last calculated by MS Excel or whichever spreadsheet program was used to create the original spreadsheet file.
Note that this value is not guaranteed to refelect the actual calculated value because it is possible that auto-calculation was disabled in the original spreadsheet, and underlying data values used by the formula have changed since it was last calculated.
None found |
None found |
setDataType(string $pDataType = \PHPExcel_Cell_DataType::TYPE_STRING) : \PHPExcel_Cell
Set cell data type
string | $pDataType |
None found |
None found |
hasDataValidation() : boolean
Does this cell contain Data validation rules?
None found |
getDataValidation() : \PHPExcel_Cell_DataValidation
Get Data validation rules
None found |
setDataValidation(\PHPExcel_Cell_DataValidation $pDataValidation = NULL) : \PHPExcel_Cell
Set Data validation rules
\PHPExcel_Cell_DataValidation | $pDataValidation |
None found |
hasHyperlink() : boolean
Does this cell contain a Hyperlink?
None found |
getHyperlink() : \PHPExcel_Cell_Hyperlink
Get Hyperlink
None found |
setHyperlink(\PHPExcel_Cell_Hyperlink $pHyperlink = NULL) : \PHPExcel_Cell
Set Hyperlink
\PHPExcel_Cell_Hyperlink | $pHyperlink |
None found |
getParent() : \PHPExcel_CachedObjectStorage_CacheBase
Get parent worksheet
None found |
getWorksheet() : \PHPExcel_Worksheet
Get parent worksheet
None found |
None found |
isMergeRangeValueCell() : boolean
Is this cell the master (top left cell) in a merge range (that holds the actual data value)
None found |
getMergeRange() : string
If this cell is in a merge range, then return the range
None found |
getStyle() : \PHPExcel_Style
Get cell style
None found |
rebindParent(\PHPExcel_Worksheet $parent) : \PHPExcel_Cell
Re-bind parent
\PHPExcel_Worksheet | $parent |
None found |
isInRange(string $pRange = 'A1:A1') : boolean
Is cell in a specific range?
string | $pRange | Cell range (e.g. A1:A1) |
None found |
coordinateFromString(string $pCoordinateString = 'A1') : array
Coordinate from string
string | $pCoordinateString |
Array containing column and row (indexes 0 and 1)
None found |
absoluteReference(string $pCoordinateString = 'A1') : string
Make string row, column or cell coordinate absolute
string | $pCoordinateString | e.g. 'A' or '1' or 'A1' Note that this value can be a row or column reference as well as a cell reference |
Absolute coordinate e.g. '$A' or '$1' or '$A$1'
None found |
absoluteCoordinate(string $pCoordinateString = 'A1') : string
Make string coordinate absolute
string | $pCoordinateString | e.g. 'A1' |
Absolute coordinate e.g. '$A$1'
None found |
splitRange(string $pRange = 'A1:A1') : array
Split range into coordinate strings
string | $pRange | e.g. 'B4:D9' or 'B4:D9,H2:O11' or 'B4' |
Array containg one or more arrays containing one or two coordinate strings e.g. array('B4','D9') or array(array('B4','D9'),array('H2','O11')) or array('B4')
None found |
buildRange(array $pRange) : string
Build range from coordinate strings
array | $pRange | Array containg one or more arrays containing one or two coordinate strings |
String representation of $pRange
None found |
rangeBoundaries(string $pRange = 'A1:A1') : array
Calculate range boundaries
string | $pRange | Cell range (e.g. A1:A1) |
Range coordinates array(Start Cell, End Cell) where Start Cell and End Cell are arrays (Column Number, Row Number)
None found |
rangeDimension(string $pRange = 'A1:A1') : array
Calculate range dimension
string | $pRange | Cell range (e.g. A1:A1) |
Range dimension (width, height)
None found |
getRangeBoundaries(string $pRange = 'A1:A1') : array
Calculate range boundaries
string | $pRange | Cell range (e.g. A1:A1) |
Range coordinates array(Start Cell, End Cell) where Start Cell and End Cell are arrays (Column ID, Row Number)
None found |
columnIndexFromString(string $pString = 'A') : integer
Column index from string
string | $pString |
Column index (base 1 !!!)
None found |
stringFromColumnIndex(integer $pColumnIndex) : string
String from columnindex
integer | $pColumnIndex | Column index (base 0 !!!) |
None found |
extractAllCellReferencesInRange(string $pRange = 'A1') : array
Extract all cell references in range
string | $pRange | Range (e.g. A1 or A1:C10 or A1:E10 A20:E25) |
Array containing single cell references
None found |
compareCells(\PHPExcel_Cell $a, \PHPExcel_Cell $b) : integer
Compare 2 cells
\PHPExcel_Cell | $a | Cell a |
\PHPExcel_Cell | $b | Cell b |
Result of comparison (always -1 or 1, never zero!)
None found |
getValueBinder() : \PHPExcel_Cell_IValueBinder
Get value binder to use
None found |
setValueBinder(\PHPExcel_Cell_IValueBinder $binder = NULL)
Set value binder to use
\PHPExcel_Cell_IValueBinder | $binder |
None found |
None found |
None found |
setXfIndex(integer $pValue) : \PHPExcel_Cell
Set index to cellXf
integer | $pValue |
None found |
None found |
None found |
None found |