Using the Documenter Class
That completes the description of the Documenter class. We will now use it in a web page to display information about all internal and user-defined classes. We'll create a sidebar of links to all existing classes and interfaces, and display detailed information in the main portion of the page. Again, we won't discuss every line of code, only those lines that are of special interest.
Creating a Sidebar of Classes and Interfaces
Let's create a sidebar that will display the names of all PHP classes as hyperlinks—fulfilling the promise of a central repository of information about all classes. Clicking a hyperlink will display documentation for this class in the main portion of your web page. The code to do this follows: ...
Get Object-Oriented PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.