language/oop5.xml language.oop5 : Object-Oriented Programming in PHP5
First this section needs an intro part describing that the PHP 5 OO is different and offers much more than the PHP 4 OO, while keeping backwards compatibility (except a few changes which are described in the migration part in the appendix).
It should also be noted here that there are new stuff related to objects documented elsewhere: instanceof, exceptions, __METHOD__, "Dereferencing objects returned from functions", etc. So this should be a starting point for readers on what is new in PHP 5.
ID : Title
- oop5.decon : Unified Constructors and Destructors
- oop5.visibility : Public, Private, Protected Members and Properties
- oop5.static : Static Methods and Properties
- oop5.constants : Per-Class constants
- oop5.abstract : Abstract Classes and Methods
- oop5.interfaces : Interfaces
- oop5.overloading : Methods calls and Properties access overloading
- oop5.iterations : Iterations over Objects
- oop5.tostring : __toString magic method
- oop5.final : final keyword
- oop5.cloning : Objects cloning
- oop5.reflection : Reflection posibilities // base description "what is reflection" and link to proper chapter?
Another sections from zend-engine-2 have nothing to do here and should be added to proper chapters.
Well, instanceof is already added, exceptions need to be another part in the language section, but we need to integrate the __autoload() stuff here, since it does not fit elsewhere.
Additionaly not all of the IDs look fine to me, but I cannot come up with really better ones, so either we will be able to find better ones along the way or it will stay this way :)
Goba