ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
updateInCollection () | |
Update the cell into the cell collection. More... | |
detach () | |
attach (Cells $parent) | |
__construct ($pValue, $pDataType, Worksheet $pSheet) | |
Create a new Cell. More... | |
getColumn () | |
Get cell coordinate column. More... | |
getRow () | |
Get cell coordinate row. More... | |
getCoordinate () | |
Get cell coordinate. More... | |
getValue () | |
Get cell value. More... | |
getFormattedValue () | |
Get cell value with formatting. More... | |
setValue ($pValue) | |
Set cell value. More... | |
setValueExplicit ($pValue, $pDataType) | |
Set the value for a cell, with the explicit data type passed to the method (bypassing any use of the value binder). More... | |
getCalculatedValue ($resetLog=true) | |
Get calculated cell value. More... | |
setCalculatedValue ($pValue) | |
Set old calculated value (cached). More... | |
getOldCalculatedValue () | |
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. More... | |
getDataType () | |
Get cell data type. More... | |
setDataType ($pDataType) | |
Set cell data type. More... | |
isFormula () | |
Identify if the cell contains a formula. More... | |
hasDataValidation () | |
Does this cell contain Data validation rules? More... | |
getDataValidation () | |
Get Data validation rules. More... | |
setDataValidation (?DataValidation $pDataValidation=null) | |
Set Data validation rules. More... | |
hasValidValue () | |
Does this cell contain valid value? More... | |
hasHyperlink () | |
Does this cell contain a Hyperlink? More... | |
getHyperlink () | |
Get Hyperlink. More... | |
setHyperlink (?Hyperlink $pHyperlink=null) | |
Set Hyperlink. More... | |
getParent () | |
Get cell collection. More... | |
getWorksheet () | |
Get parent worksheet. More... | |
isInMergeRange () | |
Is this cell in a merge range. More... | |
isMergeRangeValueCell () | |
Is this cell the master (top left cell) in a merge range (that holds the actual data value). More... | |
getMergeRange () | |
If this cell is in a merge range, then return the range. More... | |
getStyle () | |
Get cell style. More... | |
rebindParent (Worksheet $parent) | |
Re-bind parent. More... | |
isInRange ($pRange) | |
Is cell in a specific range? More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
getXfIndex () | |
Get index to cellXf. More... | |
setXfIndex ($pValue) | |
Set index to cellXf. More... | |
setFormulaAttributes ($pAttributes) | |
Set the formula attributes. More... | |
getFormulaAttributes () | |
Get the formula attributes. More... | |
__toString () | |
Convert to string. More... | |
Static Public Member Functions | |
static | compareCells (self $a, self $b) |
Compare 2 cells. More... | |
static | getValueBinder () |
Get value binder to use. More... | |
static | setValueBinder (IValueBinder $binder) |
Set value binder to use. More... | |
Private Attributes | |
$value | |
$calculatedValue | |
$dataType | |
$parent | |
$xfIndex = 0 | |
$formulaAttributes | |
Attributes of the formula. More... | |
Static Private Attributes | |
static | $valueBinder |
PhpOffice\PhpSpreadsheet\Cell\Cell::__construct | ( | $pValue, | |
$pDataType, | |||
Worksheet | $pSheet | ||
) |
Create a new Cell.
mixed | $pValue | |
string | $pDataType |
Definition at line 96 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getCellCollection(), PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING, and PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING2.
PhpOffice\PhpSpreadsheet\Cell\Cell::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition at line 616 of file Cell.php.
References $key, and PhpOffice\PhpSpreadsheet\Cell\Cell\$value.
PhpOffice\PhpSpreadsheet\Cell\Cell::__toString | ( | ) |
Convert to string.
Definition at line 679 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getValue().
PhpOffice\PhpSpreadsheet\Cell\Cell::attach | ( | Cells | $parent | ) |
|
static |
Compare 2 cells.
Definition at line 578 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString().
PhpOffice\PhpSpreadsheet\Cell\Cell::detach | ( | ) |
PhpOffice\PhpSpreadsheet\Cell\Cell::getCalculatedValue | ( | $resetLog = true | ) |
Get calculated cell value.
bool | $resetLog | Whether the calculation engine logger should be reset or not |
Definition at line 251 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$calculatedValue, $index, $result, PhpOffice\PhpSpreadsheet\Cell\Cell\$value, PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\getInstance(), PhpOffice\PhpSpreadsheet\Cell\Cell\getParent(), PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet(), and PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_FORMULA.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getFormattedValue(), PhpOffice\PhpSpreadsheet\Shared\Date\isDateTime(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeCellFormula().
PhpOffice\PhpSpreadsheet\Cell\Cell::getColumn | ( | ) |
Get cell coordinate column.
Definition at line 120 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\cellColumn(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), and PhpOffice\PhpSpreadsheet\Cell\Cell\isInRange().
PhpOffice\PhpSpreadsheet\Cell\Cell::getCoordinate | ( | ) |
Get cell coordinate.
Definition at line 140 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue(), PhpOffice\PhpSpreadsheet\Cell\Cell\getDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\getHyperlink(), PhpOffice\PhpSpreadsheet\Cell\Cell\getStyle(), PhpOffice\PhpSpreadsheet\Cell\Cell\hasDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\hasHyperlink(), PhpOffice\PhpSpreadsheet\Shared\Date\isDateTime(), PhpOffice\PhpSpreadsheet\Cell\Cell\isMergeRangeValueCell(), PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValueInList(), PhpOffice\PhpSpreadsheet\Cell\Cell\setDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\setHyperlink(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setImproperFraction(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setPercentage(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setProperFraction(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setTimeHoursMinutes(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setTimeHoursMinutesSeconds(), PhpOffice\PhpSpreadsheet\Collection\Cells\update(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Comment\write().
PhpOffice\PhpSpreadsheet\Cell\Cell::getDataType | ( | ) |
Get cell data type.
Definition at line 328 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$dataType.
PhpOffice\PhpSpreadsheet\Cell\Cell::getDataValidation | ( | ) |
Get Data validation rules.
Definition at line 379 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet().
Referenced by PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValid(), and PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValueInList().
PhpOffice\PhpSpreadsheet\Cell\Cell::getFormattedValue | ( | ) |
Get cell value with formatting.
Definition at line 160 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue(), PhpOffice\PhpSpreadsheet\Cell\Cell\getStyle(), and PhpOffice\PhpSpreadsheet\Style\NumberFormat\toFormattedString().
PhpOffice\PhpSpreadsheet\Cell\Cell::getFormulaAttributes | ( | ) |
Get the formula attributes.
Definition at line 669 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$formulaAttributes.
PhpOffice\PhpSpreadsheet\Cell\Cell::getHyperlink | ( | ) |
Get Hyperlink.
Definition at line 437 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet().
PhpOffice\PhpSpreadsheet\Cell\Cell::getMergeRange | ( | ) |
If this cell is in a merge range, then return the range.
Definition at line 517 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet(), and PhpOffice\PhpSpreadsheet\Cell\Cell\isInRange().
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\isInMergeRange(), PhpOffice\PhpSpreadsheet\Cell\Cell\isMergeRangeValueCell(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeCellMerge().
PhpOffice\PhpSpreadsheet\Cell\Cell::getOldCalculatedValue | ( | ) |
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 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.
Definition at line 318 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$calculatedValue.
PhpOffice\PhpSpreadsheet\Cell\Cell::getParent | ( | ) |
Get cell collection.
Definition at line 469 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$parent.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue().
PhpOffice\PhpSpreadsheet\Cell\Cell::getRow | ( | ) |
Get cell coordinate row.
Definition at line 130 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\cellRow(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), and PhpOffice\PhpSpreadsheet\Cell\Cell\isInRange().
PhpOffice\PhpSpreadsheet\Cell\Cell::getStyle | ( | ) |
Get cell style.
Definition at line 533 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet().
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getFormattedValue(), and ilExcel\setDateFormat().
PhpOffice\PhpSpreadsheet\Cell\Cell::getValue | ( | ) |
Get cell value.
Definition at line 150 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$value.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\__toString(), PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValid(), and PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValueInList().
|
static |
Get value binder to use.
PhpOffice\PhpSpreadsheet\Cell\Cell::getWorksheet | ( | ) |
Get parent worksheet.
Definition at line 479 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Helpers\extractWorksheet(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\extractWorksheet(), PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue(), PhpOffice\PhpSpreadsheet\Cell\Cell\getDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\getHyperlink(), PhpOffice\PhpSpreadsheet\Cell\Cell\getMergeRange(), PhpOffice\PhpSpreadsheet\Cell\Cell\getStyle(), PhpOffice\PhpSpreadsheet\Cell\Cell\hasDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\hasHyperlink(), PhpOffice\PhpSpreadsheet\Shared\Date\isDateTime(), PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValueInList(), PhpOffice\PhpSpreadsheet\Cell\Cell\setDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\setHyperlink(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setImproperFraction(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setPercentage(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setProperFraction(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setTimeHoursMinutes(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setTimeHoursMinutesSeconds(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Comment\write().
PhpOffice\PhpSpreadsheet\Cell\Cell::getXfIndex | ( | ) |
Get index to cellXf.
Definition at line 633 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\$xfIndex.
PhpOffice\PhpSpreadsheet\Cell\Cell::hasDataValidation | ( | ) |
Does this cell contain Data validation rules?
Definition at line 365 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet().
Referenced by PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValid().
PhpOffice\PhpSpreadsheet\Cell\Cell::hasHyperlink | ( | ) |
Does this cell contain a Hyperlink?
Definition at line 423 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet().
PhpOffice\PhpSpreadsheet\Cell\Cell::hasValidValue | ( | ) |
PhpOffice\PhpSpreadsheet\Cell\Cell::isFormula | ( | ) |
Identify if the cell contains a formula.
Definition at line 355 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_FORMULA.
PhpOffice\PhpSpreadsheet\Cell\Cell::isInMergeRange | ( | ) |
Is this cell in a merge range.
Definition at line 489 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getMergeRange().
PhpOffice\PhpSpreadsheet\Cell\Cell::isInRange | ( | $pRange | ) |
Is cell in a specific range?
string | $pRange | Cell range (e.g. A1:A1) |
Definition at line 557 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Cell\Cell\getColumn(), PhpOffice\PhpSpreadsheet\Cell\Cell\getRow(), and PhpOffice\PhpSpreadsheet\Cell\Coordinate\rangeBoundaries().
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getMergeRange().
PhpOffice\PhpSpreadsheet\Cell\Cell::isMergeRangeValueCell | ( | ) |
Is this cell the master (top left cell) in a merge range (that holds the actual data value).
Definition at line 499 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), PhpOffice\PhpSpreadsheet\Cell\Cell\getMergeRange(), and PhpOffice\PhpSpreadsheet\Cell\Coordinate\splitRange().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeCellMerge().
PhpOffice\PhpSpreadsheet\Cell\Cell::rebindParent | ( | Worksheet | $parent | ) |
Re-bind parent.
Definition at line 543 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getCellCollection(), and PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
PhpOffice\PhpSpreadsheet\Cell\Cell::setCalculatedValue | ( | $pValue | ) |
Set old calculated value (cached).
mixed | $pValue | Value |
Definition at line 299 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
PhpOffice\PhpSpreadsheet\Cell\Cell::setDataType | ( | $pDataType | ) |
Set cell data type.
string | $pDataType | see DataType::TYPE_* |
Definition at line 340 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING2, and PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
PhpOffice\PhpSpreadsheet\Cell\Cell::setDataValidation | ( | ?DataValidation | $pDataValidation = null | ) |
Set Data validation rules.
DataValidation | $pDataValidation |
Definition at line 395 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet(), and PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
PhpOffice\PhpSpreadsheet\Cell\Cell::setFormulaAttributes | ( | $pAttributes | ) |
PhpOffice\PhpSpreadsheet\Cell\Cell::setHyperlink | ( | ?Hyperlink | $pHyperlink = null | ) |
Set Hyperlink.
Hyperlink | $pHyperlink |
Definition at line 453 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), PhpOffice\PhpSpreadsheet\Cell\Cell\getWorksheet(), and PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
PhpOffice\PhpSpreadsheet\Cell\Cell::setValue | ( | $pValue | ) |
Set cell value.
Sets the value for a cell, automatically determining the datatype using the value binder
mixed | $pValue | Value |
|
static |
PhpOffice\PhpSpreadsheet\Cell\Cell::setValueExplicit | ( | $pValue, | |
$pDataType | |||
) |
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, see DataType::TYPE_* |
Definition at line 195 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\DataType\checkErrorCode(), PhpOffice\PhpSpreadsheet\Cell\DataType\checkString(), PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_BOOL, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_ERROR, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_FORMULA, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_INLINE, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_NULL, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_NUMERIC, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING2, and PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
Referenced by PhpOffice\PhpSpreadsheet\Cell\StringValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Cell\DefaultValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setImproperFraction(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setPercentage(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setProperFraction(), PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setTimeHoursMinutes(), and PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\setTimeHoursMinutesSeconds().
PhpOffice\PhpSpreadsheet\Cell\Cell::setXfIndex | ( | $pValue | ) |
Set index to cellXf.
int | $pValue |
Definition at line 645 of file Cell.php.
References PhpOffice\PhpSpreadsheet\Cell\Cell\updateInCollection().
PhpOffice\PhpSpreadsheet\Cell\Cell::updateInCollection | ( | ) |
Update the cell into the cell collection.
Definition at line 72 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\rebindParent(), PhpOffice\PhpSpreadsheet\Cell\Cell\setCalculatedValue(), PhpOffice\PhpSpreadsheet\Cell\Cell\setDataType(), PhpOffice\PhpSpreadsheet\Cell\Cell\setDataValidation(), PhpOffice\PhpSpreadsheet\Cell\Cell\setHyperlink(), PhpOffice\PhpSpreadsheet\Cell\Cell\setValueExplicit(), and PhpOffice\PhpSpreadsheet\Cell\Cell\setXfIndex().
|
private |
Definition at line 39 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getOldCalculatedValue().
|
private |
Definition at line 46 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getDataType().
|
private |
Attributes of the formula.
Definition at line 65 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getFormulaAttributes().
|
private |
Definition at line 53 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\attach(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getParent().
|
private |
Definition at line 27 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\__clone(), PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue(), and PhpOffice\PhpSpreadsheet\Cell\Cell\getValue().
|
staticprivate |
|
private |
Definition at line 60 of file Cell.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\Cell\getXfIndex().