Updates to 3rd party libraries
Add Dockerfile and specific docker-php.ini
This commit is contained in:
@ -426,9 +426,9 @@ for ($row = 1; $row <= $highestRow; ++$row) {
|
||||
echo '</table>' . PHP_EOL;
|
||||
```
|
||||
|
||||
Note that we can't use a <= comparison here, because 'AA' would match
|
||||
as <= 'B', so we increment the highest column letter and then loop
|
||||
while \$col != the incremented highest column.
|
||||
Note that we can't use a `<=` comparison here, because `'AA'` would match
|
||||
as `<= 'B'`, so we increment the highest column letter and then loop
|
||||
while `$col !=` the incremented highest column.
|
||||
|
||||
## Using value binders to facilitate data entry
|
||||
|
||||
|
@ -285,8 +285,8 @@ $columnFilter->createRule()
|
||||
|
||||
We also set the rule type to CUSTOMFILTER.
|
||||
|
||||
This defined two rules, filtering numbers that are >= -20 OR <=
|
||||
20, so we also need to modify the join condition to reflect AND rather
|
||||
This defined two rules, filtering numbers that are `>= -20` OR `<=
|
||||
20`, so we also need to modify the join condition to reflect AND rather
|
||||
than OR.
|
||||
|
||||
``` php
|
||||
|
@ -634,16 +634,16 @@ $writer->setSheetIndex(0);
|
||||
#### Setting the images root of the HTML file
|
||||
|
||||
There might be situations where you want to explicitly set the included
|
||||
images root. For example, one might want to see
|
||||
images root. For example, instead of:
|
||||
|
||||
``` html
|
||||
<img src="./images/logo.jpg">
|
||||
```
|
||||
|
||||
You might want to see:
|
||||
|
||||
``` html
|
||||
<img style="position: relative; left: 0px; top: 0px; width: 140px; height: 78px;" src="http://www.domain.com/*images/logo.jpg" border="0">
|
||||
```
|
||||
|
||||
instead of
|
||||
|
||||
``` html
|
||||
<img style="position: relative; left: 0px; top: 0px; width: 140px; height: 78px;" src="./images/logo.jpg" border="0">.
|
||||
<img src="http://www.domain.com/images/logo.jpg">
|
||||
```
|
||||
|
||||
You can use the following code to achieve this result:
|
||||
|
@ -3,12 +3,12 @@
|
||||
The following pages offer you some widely-used PhpSpreadsheet recipes.
|
||||
Please note that these do NOT offer complete documentation on specific
|
||||
PhpSpreadsheet API functions, but just a bump to get you started. If you
|
||||
need specific API functions, please refer to the API documentation.
|
||||
need specific API functions, please refer to the [API documentation](https://phpoffice.github.io/PhpSpreadsheet/master).
|
||||
|
||||
For example, [setting a worksheet's page orientation and size
|
||||
](#setting-a-worksheets-page-orientation-and-size) covers setting a page
|
||||
orientation to A4. Other paper formats, like US Letter, are not covered
|
||||
in this document, but in the PhpSpreadsheet API documentation.
|
||||
in this document, but in the PhpSpreadsheet [API documentation](https://phpoffice.github.io/PhpSpreadsheet/master).
|
||||
|
||||
## Setting a spreadsheet's metadata
|
||||
|
||||
@ -132,7 +132,7 @@ will take care of displaying the formula according the applications
|
||||
language. Translation is taken care of by the application!
|
||||
|
||||
The following line of code writes the formula
|
||||
`=IF(C4>500,"profit","loss")` into the cell B8. Note that the
|
||||
`=IF(C4>500,"profit","loss")` into the cell B8. Note that the
|
||||
formula must start with `=` to make PhpSpreadsheet recognise this as a
|
||||
formula.
|
||||
|
||||
@ -301,7 +301,7 @@ $spreadsheet->getActiveSheet()->getPageSetup()
|
||||
```
|
||||
|
||||
Note that there are additional page settings available. Please refer to
|
||||
the API documentation for all possible options.
|
||||
the [API documentation](https://phpoffice.github.io/PhpSpreadsheet/master) for all possible options.
|
||||
|
||||
### Page Setup: Scaling options
|
||||
|
||||
|
@ -31,8 +31,6 @@ index, use the `getSheet()` method.
|
||||
$spreadsheet->getSheet(1);
|
||||
```
|
||||
|
||||
If you don't specify a sheet index, then the first worksheet will be
|
||||
returned.
|
||||
|
||||
Methods also exist allowing you to reorder the worksheets in the
|
||||
workbook.
|
||||
@ -71,7 +69,7 @@ $spreadsheet->createSheet();
|
||||
```
|
||||
|
||||
A new worksheet created using this method will be called
|
||||
"Worksheet<n>" where "<n>" is the lowest number possible to
|
||||
`Worksheet<n>` where `<n>` is the lowest number possible to
|
||||
guarantee that the title is unique.
|
||||
|
||||
Alternatively, you can instantiate a new worksheet (setting the title to
|
||||
|
Reference in New Issue
Block a user