Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit da91993

Browse files
author
MarkBaker
committed
Minor fixes to documentation
1 parent 39d8b8f commit da91993

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

Documentation/markdown/Overview/01-Getting-Started.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ Installation is quite easy: copy the contents of the Classes folder to any locat
2121

2222
If your web root folder is /var/www/ you may want to create a subfolder called /var/www/Classes/ and copy the files into that folder so you end up with files:
2323

24-
/var/www/Classes/PHPExcel.php
25-
/var/www/Classes/PHPExcel/Calculation.php
26-
/var/www/Classes/PHPExcel/Cell.php
27-
...
24+
/var/www/Classes/PHPExcel.php
25+
/var/www/Classes/PHPExcel/Calculation.php
26+
/var/www/Classes/PHPExcel/Cell.php
27+
...
2828

2929

3030
### Getting started
3131

3232
A good way to get started is to run some of the tests included in the download.
3333
Copy the "Examples" folder next to your "Classes" folder from above so you end up with:
3434

35-
/var/www/Examples/01simple.php
36-
/var/www/Examples/02types.php
37-
...
35+
/var/www/Examples/01simple.php
36+
/var/www/Examples/02types.php
37+
...
3838

3939
Start running the tests by pointing your browser to the test scripts:
4040

@@ -89,7 +89,7 @@ At present, this only allows you to write Excel2007 files without the need for Z
8989

9090
##### Excel 2007 cannot open the file generated by PHPExcel_Writer_2007 on Windows
9191

92-
*"Excel found unreadable content in '*.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes."*
92+
"Excel found unreadable content in '*.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes."
9393

9494
Some older versions of the 5.2.x php_zip extension on Windows contain an error when creating ZIP files. The version that can be found on [http://snaps.php.net/win32/php5.2-win32-latest.zip][8] should work at all times.
9595

Documentation/markdown/Overview/02-Architecture.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
### Schematical
77

8-
![01-schematic.png](./images/01-schematic.png "")
8+
![01-schematic.png](./images/01-schematic.png "Basic Architecture Schematic")
99

1010

1111
### Lazy Loader
1212

13-
PHPExcel implements an autoloader or "lazy loader", which means that it is not necessary to include every file within PHPExcel. It is only necessary to include the initial PHPExcel class file, then the autoloader will include other class files as and when required, so only those files that are actually required by your script will be loaded into PHP memory. The main benefit of this is that it reduces the memory footprint of PHPExcel itself, so that it uses less PHP memory.
13+
PHPExcel implements an autoloader or "lazy loader", which means that it is not necessary to include every file within PHPExcel. It is only necessary to include the initial PHPExcel class file, then the autoloader will include other class files as and when required, so only those files that are actually required by your script will be loaded into PHP memory. The main benefit of this is that it reduces the memory footprint of PHPExcel itself, so that it uses less PHP memory.
1414

1515
If your own scripts already define an autoload function, then this may be overwritten by the PHPExcel autoload function. For example, if you have:
1616
```php
@@ -42,11 +42,12 @@ On its own, PHPExcel does not provide the functionality to read from or write to
4242

4343
By default, the PHPExcel package provides some readers and writers, including one for the Open XML spreadsheet format (a.k.a. Excel 2007 file format). You are not limited to the default readers and writers, as you are free to implement the PHPExcel_Reader_IReader and PHPExcel_Writer_IWriter interface in a custom class.
4444

45-
![02-readers-writers.png](./images/02-readers-writers.png "")
45+
![02-readers-writers.png](./images/02-readers-writers.png "Readers/Writers")
4646

4747
### Fluent interfaces
4848

49-
PHPExcel supports fluent interfaces in most locations. This means that you can easily "chain"" calls to specific methods without requiring a new PHP statement. For example, take the following code:
49+
PHPExcel supports fluent interfaces in most locations. This means that you can easily "chain" calls to specific methods without requiring a new PHP statement. For example, take the following code:
50+
5051
```php
5152
$objPHPExcel->getProperties()->setCreator("Maarten Balliauw");
5253
$objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw");
@@ -56,7 +57,9 @@ $objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLS
5657
$objPHPExcel->getProperties()->setKeywords("office 2007 openxml php");
5758
$objPHPExcel->getProperties()->setCategory("Test result file");
5859
```
60+
5961
This can be rewritten as:
62+
6063
```php
6164
$objPHPExcel->getProperties()
6265
->setCreator("Maarten Balliauw")

0 commit comments

Comments
 (0)