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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: matti dot jarvinen at nitroid dot fi
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC