Greetings all. This is my first time posting to the framework list, so
please forgive & advise me kindly if I make any netiquette faux pas (I
already did, apparently, as I posted this to the fw-general list initially).
I was using Zend_Db_Table_Rowset this morning, and it was working just
fine when I used it within a foreach loop, but I received a fatal error
when I attempted to access individual records within the Rowset as
though it were an array. After inspecting the code, I realized this was
due to the fact that while Rowset is implemented as an Iterator, it is
not (yet?) implemented as an ArrayAccess object.
I've created a similar kind of object at work (db_recordset) which
implements both ArrayAccess as well as Iterator, and I believe both are
available as of PHP 5. I implemented the index elements as the primary
key, as we have a convention where (most of the time), the primary key
is an auto-incremented integer. I think the same can be done within the
framework, so I'm wondering if this is planned and/or if it just needs
someone to do it. If it is the latter case, then I'm willing to take a
shot at contributing some code.
Thanks in advance, and if I can contribute the code, please let me know
how to do so.
--
Abu Hurayrah
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Hidayah Online - Guidance According to the Qur'an and Sunnah
<http://hidayahonline.org/>
`A'isha, the wife of Allah's Apostle (may peace be upon him), reported
Allah's Apostle (may peace be upon him) as saying:
/Kindness is not to be found in anything but that it adds to its beauty
and it is not withdrawn from anything but it makes it defective./
narrated in Sahih Muslim, Book 3, Number 6274