For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2007 > Compressed methodnames patch









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compressed methodnames patch
Edward Z. Yang

2007-11-06, 7:05 pm

This patch compresses the methodnames in a class synopsis if it matches
the class name it belongs to. Since cvs patch doesn't seem to pick up on
added files, PhDTheme.class.php is also attached, which needs to be
placed in the include/ directory. A few notes:

- The serialized index cache hack has been added until we get a same
indexing algorithm. On regular runs, index.ser is generated.
- PhDTheme is now an abstract class that implements iPhDTheme and now
contains a pointer to the Format object. All themes inherit from it.
Since we only support xhtml currently, that format object is always the
one to get registered, soon, however, we'll have to split up themes by
format
- phpdotnet is now an abstract class, as it presumably isn't supposed to
be used as a theme
- phpdotnet->format_function_text() now has an optional parameter
$display_value, which if set overrides the original value. The original
value is still necessary to generate the link, however.
- There is no support for constants; adding that shouldn't be difficult
to do though

I don't like big PHP files, because my editor doesn't let me open up
multiple tabs of different locations in the same file, so I find myself
constantly sing from end to end to make changes. Any suggestions?
(Besides using gvim, which I do need to learn, but later.)

--
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

Edward Z. Yang

2007-11-10, 10:02 pm

Edward Z. Yang wrote:
> - There is no support for constants; adding that shouldn't be difficult
> to do though


I have a question: why do inline property names (inside fieldsynopsis)
not have the class name prefixed on them? Methods and constants do.
Plus, they can be inherited, and if "method" style documentation is
used, it probably would have the classname attached.

--
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com