neos / flow-development-collection

The unified repository containing the Flow core packages, used for Flow development.
https://flow.neos.io/
MIT License
138 stars 188 forks source link

Document the usage of a Constructor in the OOP chapter #622

Open neos-bot opened 10 years ago

neos-bot commented 10 years ago

Jira issue originally created by user tpei:

In the Object Oriented Programming section of the Typo3 Flow 2.2 definitive guide there is a section on PHP constructors (http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartI/Object-OrientedProgramming.html#constructor). However there is no example here whatsoever. Seeing as the constructor is used in the next section on Inheritance, it should be demonstrated how a Constructor can be implemented and used.

I’m thinking of something like https://gist.github.com/TPei/7f3731c72ea2588c5dd0

Jira-URL: https://jira.neos.io/browse/FLOW-56

sorenmalling commented 4 years ago

Still relevant, the mentioned section is now linked to

https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartI/Object-OrientedProgramming.html#constructor

albe commented 4 years ago

I think I never actually read this part of the Flow documentation and oh boy... :D Yes, that specific section could be quite improved

Here's a link to the file to edit directly in GH: https://github.com/neos/flow-development-collection/edit/5.3/Neos.Flow/Documentation/TheDefinitiveGuide/PartI/Object-OrientedProgramming.rst - the above gist could be a great first step