Re: new entities needed for phpDocumentor tags

From: Date: Mon, 28 Jul 2003 11:32:17 +0000
Subject: Re: new entities needed for phpDocumentor tags
References: 1 2 3 4 5  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1120@lists.php.net to get a copy of this message
Greg Beaver wrote:
note.abstract
abstract functions/abstract classes, I understand the confusion now. ok. No problem to add it. I think it would make sense to add also an
special entity for the refpurpose text like ref.abstract: <refpurpose>&ref.abstract; does some weird stuff</refpurpose> which would result in output like: myfunction - (abstract) does some weird stuff
set of documentation from those who wish to extend phpDocumentor. The current peardoc design is very friendly to those who only wish to use a class, but is somewhat unhelpful to those who wish to extend a class. I know this problem already, and have still no real solution for that.
From an technical point - if you are forced to extend a class for using, the package maintainer should provide a set of methods avoiding to use private or protected variables in the extended class. The private/protected stuff is more dedicated for your own development - in Collections like PEAR all variables should be private. If you take a look to Java, you will see, that classes extending JFC-classes in user space never use private vars from parents class. In general, i would propose to keep information how to extend a class in the API-Docs (welcome phpDocumentator ;-) and add a link to this docs in the manual (yes, we should provide the API-Docs on pearweb)
to extend the class's functionality. The only other solution is to force the authors of the package to re-write it so that we can access these variables through the class. I don't see a clean answer to this problem, but perhaps you have one that I've overlooked? This is not a doc problem ;-) The best solution would be to set up an
feature request or talking with the maintainer. As you can see it in Java, it works :-)

« previous php.pear.doc (#1120) next »