For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2007 > Re: [PHP-DOC] 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 Re: [PHP-DOC] Compressed methodnames patch
Hannes Magnusson

2007-11-09, 8:01 am

On Nov 6, 2007 8:02 PM, Edward Z. Yang <edwardzyang@thewritingpot.com> wrote:
> 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 PhDTheme.classs.php attachment didn't come through (all
non-text/plain attachments are stripped), and the phpweb patch looks
broken.

Other than that, the patch seems ok :]

-Hannes
Edward Z. Yang

2007-11-10, 7:01 pm

Hannes Magnusson wrote:
> The PhDTheme.classs.php attachment didn't come through (all
> non-text/plain attachments are stripped), and the phpweb patch looks
> broken.


That one is very simple: replace

class phpweb extends phpdotnet implements PhDTheme {

with

class phpweb extends phpdotnet {

I'm not exactly sure why that patch wouldn't be working.

Here's PhDTheme.class.php:

<?php

abstract class PhDTheme extends PhDHelper implements iPhDTheme {
protected $format;
public function registerFormat($format) {
$this->format = $format;
}
}

interface iPhDTheme {
public function appendData($data, $isChunk);
}

--
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