Re: PhD - Patch to add support to DBTimestamp processing instructions
| From: | Hannes Magnusson | Date: | Wed, 06 Jan 2010 08:14:40 +0000 |
| Subject: | Re: PhD - Patch to add support to DBTimestamp processing instructions | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381251@lists.php.net to get a copy of this message | ||
On Wed, Jan 6, 2010 at 08:52, Hannes Magnusson
<hannes.magnusson@gmail.com> wrote:
> On Wed, Jan 6, 2010 at 03:59, Moacir de Oliveira
> <moacirdeoliveira.eng@gmail.com> wrote:
>> hi all,
>>
>> Here a patch to add support to DBTimestamp processing instructions to PhD
>>
>> Patch:
>> http://pastie.org/768355
>
> Looks good. I tested it with the zenddocs and it seems to work fine.
Out of curiosity, why does the ::PI section in Render.php not do the
same as all the others?
All other handlers do similar to:
foreach($this as $format) {
$parsed_value = $format->doStuff($with, $value);
if ($parsed_value === false) {
$format->appendData($orginal_value);
} else {
$format->appendData($parsed_value);
}
}
But with PI, you have to manually call $this->format->appendData()
from the PI handler.. it seems wrong.
-Hannes