Code highlight in docs for PhpStorm
This commit is contained in:
parent
b9a59660d0
commit
dcf3b9860d
|
@ -56,7 +56,7 @@ the cell object will still retain its data values.
|
||||||
|
|
||||||
What does this mean? Consider the following code:
|
What does this mean? Consider the following code:
|
||||||
|
|
||||||
```
|
```php
|
||||||
$spreadSheet = new Spreadsheet();
|
$spreadSheet = new Spreadsheet();
|
||||||
$workSheet = $spreadSheet->getActiveSheet();
|
$workSheet = $spreadSheet->getActiveSheet();
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ was a formula.
|
||||||
|
|
||||||
To do this, you need to "escape" the value by setting it as "quoted text".
|
To do this, you need to "escape" the value by setting it as "quoted text".
|
||||||
|
|
||||||
```
|
```php
|
||||||
// Set cell A4 with a formula
|
// Set cell A4 with a formula
|
||||||
$spreadsheet->getActiveSheet()->setCellValue(
|
$spreadsheet->getActiveSheet()->setCellValue(
|
||||||
'A4',
|
'A4',
|
||||||
|
|
|
@ -55,7 +55,7 @@ However, there may be times when you don't want this, perhaps you've changed
|
||||||
the underlying data and need to re-evaluate the same formula with that new
|
the underlying data and need to re-evaluate the same formula with that new
|
||||||
data.
|
data.
|
||||||
|
|
||||||
```
|
```php
|
||||||
Calculation::getInstance($spreadsheet)->disableCalculationCache();
|
Calculation::getInstance($spreadsheet)->disableCalculationCache();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ Will disable calculation caching, and flush the current calculation cache.
|
||||||
|
|
||||||
If you want only to flush the cache, then you can call
|
If you want only to flush the cache, then you can call
|
||||||
|
|
||||||
```
|
```php
|
||||||
Calculation::getInstance($spreadsheet)->clearCalculationCache();
|
Calculation::getInstance($spreadsheet)->clearCalculationCache();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue