php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66631 Visual representation of class hierarchies.
Submitted: 2014-02-03 08:16 UTC Modified: 2014-03-07 18:26 UTC
From: matti dot jarvinen at nitroid dot fi Assigned:
Status: Suspended Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
13 - 11 = ?
Subscribe to this entry?

 
 [2014-02-03 08:16 UTC] matti dot jarvinen at nitroid dot fi
Description:
------------
I believe class inheritance diagrams would be beneficial in helping people to understand relations of some of the internal classes and interfaces and also would promote better use of exceptions through understanding.

Currently some classes like BadFunctionCallException don't list their descendants at all.

SPL documentation that was originally in ~helly/php/ext/spl/ had a great way of explaining class inheritance through clickable diagrams. I believe those were made with dot and doxygen.

Found an SPL documentation example from
http://fossies.org/dox/php-5.2.17/classException.html

Feature could be used at least in:
 DateTimeInterface -> DateTime, DateTimeImmutable,
 Exceptions and SPL Exceptions...



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-04 05:11 UTC] krakjoe@php.net
-Type: Documentation Problem +Type: Feature/Change Request -Package: Documentation problem +Package: Website problem
 [2014-03-07 16:59 UTC] levim@php.net
-Status: Open +Status: Closed -PHP Version: 5.5.8 +PHP Version: Irrelevant -Assigned To: +Assigned To: levim
 [2014-03-07 16:59 UTC] levim@php.net
You can view the SPL Exception hierarchy here: http://php.net/manual/en/spl.exceptions.php#spl.exceptions.tree

As for a general solution: I'm going to decline it. You can view the parents of a class which is generally the most useful. Adding child information to the parents' page would be a lot of work that I don't think is worth it.
 [2014-03-07 18:26 UTC] bjori@php.net
-Status: Closed +Status: Suspended -Package: Website problem +Package: Documentation problem -Assigned To: levim +Assigned To:
 [2014-03-07 18:26 UTC] bjori@php.net
~helly is not coming back, but we've been trying to figure something else out...
One do it will come
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Aug 12 21:01:26 2020 UTC