[kronolith] vCalendar Into Kronolith

Jan Schneider jan@horde.org
Sat, 11 May 2002 17:48:10 +0200


Zitat von Brandon Knitter <knitterb@blandsite.org>:

> Okay, I started to look into this, about time huh? :)  I did notice a bug
> in the
> horde/lib/Data.php version I'm using.  Not sure if you say this:
> 
> Around line 255 in the _build method:
>                 if ($data[$i]['name'] == 'BEGIN') {
>                     $object['objects'][] = $this->build($data, $i);
>                 } else {
>                     $object['params'][] = $data[$i];
>                 }
> 
> that first match needs to call "_build" not "build" (note the
> underscore).  I'm
> assuming this is a recursively called routine.  When I try this out, it
> all
> works quite well, except there is not data.

You were right, this was a typo. Fixed in cvs.
 
> Question 1: Does PHP have a similar module to the Perl Data::Dumper
> routines?  I
> want to dump what I get back from the Data_rfc2425::import method, cause
> it
> seems to be an empty set to me?  Not sure if you've tested all this, but
> I just
> can't seem to get any iCalendar objects to import properly, it flips
> through the
> recurive calls, but it seems to lose the data.

I'm not sure what this method does, but I guess var_dump() is what you want.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft