Thanks for the feedback! 2009/4/6 Hannes Magnusson <hannes.magnus...@gmail.com>
> Few comments: > - I think it wasn't until 5.3 that ArrayObject implemented > Serializable, so the classrefernce page should have a changelog for > it. Ok - The ArrayObject->count() example should probably mention count() > and an example usage. > - Same for the offsetSet()/offsetGet()/.. they should probably > contain example of $obj[..] = ..; too Would a 'See Also' reference to count() and ArrayAccess::offsetSet()/ArrayAccess::offsetGet() etc do? Just feels wrong to be documenting the same functionality in two places. > - When talking about parameters, they should be wrapped in > <parameter>foobar</parameter> to make it more obvious (example; > ArrayObject::offsetExists(), "&true; if the requested > <parameter>index</parameter> exists, otherwise &false;".. Ok - iterator_to_array(): > - > <methodparam><type>Traversable</type><parameter>iterator</parameter></methodparam> > + > <methodparam><type>Object</type><parameter>iterator</parameter></methodpar > I don't think this change is correct, the object needs to implement > Traversable. Hmm, I disagree :) Traversable cannot be used in PHP code. It only has meaning in the C code. In userland PHP the top level (parent) classes are Iterator and IteratorAggregate. To me, it feels wrong to be telling people to implement Traversable when that's not possible. That's just my opinion though and I'm new here, it's your call. :) The Traversable interface is also documented so I guess there's a case for leaving it as Traversable. I did intend to expand the parameter description to match iterator_count() though, looks like I missed that. (see below) <term><parameter>iterator</parameter></term> <listitem> <para> - The iterator being counted. + The iterator being copied. + The iterator must either implement or inherit from a class implementing the + <classname>Iterator</classname> or <classname>IteratorAggregate</classname> interface. </para> </listitem> Is the change from Traversable ok with you when I include this expanded description, or do you still prefer to see Traversable as the passed parameter? Juliette