I've run into a case where my app is getting a bunch of GET params and
I need to be able to iterate through all the caged GET params, but
that doesn't seem possible. I see that I could get crazy and access
Inspekt_Cage::_source, but that obviously isn't intended. Is their a
recommend way to accomplish this without having to specify the name of
each param?
Not really, but it sounds like something that should be considered.
Now that we're PHP5-only, we should be able to implement some sort of
iterable interface, I'd think. Do you have any thoughts on how to
accomplish this?
--
Ed Finkler
http://funkatron.com Twitter:@funkatron
AIM: funka7ron
ICQ: 3922133
XMPP:funkat...@gmail.com
On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
> I've run into a case where my app is getting a bunch of GET params and
> I need to be able to iterate through all the caged GET params, but
> that doesn't seem possible. I see that I could get crazy and access
> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
> recommend way to accomplish this without having to specify the name of
> each param?
I'm thinking making the cage's array-like by extending the ArrayObject
[0] class would make accessing and iterating pretty easy. What are
your thoughts?
> Not really, but it sounds like something that should be considered.
> Now that we're PHP5-only, we should be able to implement some sort of
> iterable interface, I'd think. Do you have any thoughts on how to
> accomplish this?
> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
> > I've run into a case where my app is getting a bunch of GET params and
> > I need to be able to iterate through all the caged GET params, but
> > that doesn't seem possible. I see that I could get crazy and access
> > Inspekt_Cage::_source, but that obviously isn't intended. Is their a
> > recommend way to accomplish this without having to specify the name of
> > each param?
It makes sense. I am not sure what all will be involved in refactoring
the Cage object, and we also need to make sure that we can't modify
the data inside the Cage object. I might ask someone smarter than me
to help with this 8)
--
Ed Finkler
http://funkatron.com Twitter:@funkatron
AIM: funka7ron
ICQ: 3922133
XMPP:funkat...@gmail.com
On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
> I'm thinking making the cage's array-like by extending the ArrayObject
> [0] class would make accessing and iterating pretty easy. What are
> your thoughts?
> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>> Not really, but it sounds like something that should be considered.
>> Now that we're PHP5-only, we should be able to implement some sort of
>> iterable interface, I'd think. Do you have any thoughts on how to
>> accomplish this?
>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>> > I've run into a case where my app is getting a bunch of GET params and
>> > I need to be able to iterate through all the caged GET params, but
>> > that doesn't seem possible. I see that I could get crazy and access
>> > Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>> > recommend way to accomplish this without having to specify the name of
>> > each param?
On Sat, Jun 27, 2009 at 4:32 PM, Ed Finkler <funkat...@gmail.com> wrote:
> It makes sense. I am not sure what all will be involved in refactoring
> the Cage object, and we also need to make sure that we can't modify
> the data inside the Cage object. I might ask someone smarter than me
> to help with this 8)
> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
> > I'm thinking making the cage's array-like by extending the ArrayObject
> > [0] class would make accessing and iterating pretty easy. What are
> > your thoughts?
> > On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
> >> Not really, but it sounds like something that should be considered.
> >> Now that we're PHP5-only, we should be able to implement some sort of
> >> iterable interface, I'd think. Do you have any thoughts on how to
> >> accomplish this?
> >> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
> >> > I've run into a case where my app is getting a bunch of GET params and
> >> > I need to be able to iterate through all the caged GET params, but
> >> > that doesn't seem possible. I see that I could get crazy and access
> >> > Inspekt_Cage::_source, but that obviously isn't intended. Is their a
> >> > recommend way to accomplish this without having to specify the name of
> >> > each param?
> >> > Thanks,
> >> > Matt
-- Alex J P Vargas
Email: mailto:varg...@gmail.com
On Sun, Jun 28, 2009 at 4:30 PM, Alex Vargas<varg...@gmail.com> wrote:
> I am not smarter, but I would like to give it a shot :-p
> On Sat, Jun 27, 2009 at 4:32 PM, Ed Finkler <funkat...@gmail.com> wrote:
>> It makes sense. I am not sure what all will be involved in refactoring
>> the Cage object, and we also need to make sure that we can't modify
>> the data inside the Cage object. I might ask someone smarter than me
>> to help with this 8)
>> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>> > I'm thinking making the cage's array-like by extending the ArrayObject
>> > [0] class would make accessing and iterating pretty easy. What are
>> > your thoughts?
>> > On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>> >> Not really, but it sounds like something that should be considered.
>> >> Now that we're PHP5-only, we should be able to implement some sort of
>> >> iterable interface, I'd think. Do you have any thoughts on how to
>> >> accomplish this?
>> >> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>> >> > I've run into a case where my app is getting a bunch of GET params
>> >> > and
>> >> > I need to be able to iterate through all the caged GET params, but
>> >> > that doesn't seem possible. I see that I could get crazy and access
>> >> > Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>> >> > recommend way to accomplish this without having to specify the name
>> >> > of
>> >> > each param?
>> >> > Thanks,
>> >> > Matt
> --
> Alex J P Vargas
> Email: mailto:varg...@gmail.com
Ok, I started to get this working, but needs to be cleaned up. Weekend
got a little busy. Hoping to have some code ready for review tonight to
see what you think.
Ed Finkler wrote:
> It makes sense. I am not sure what all will be involved in refactoring
> the Cage object, and we also need to make sure that we can't modify
> the data inside the Cage object. I might ask someone smarter than me
> to help with this 8)
> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>> I'm thinking making the cage's array-like by extending the ArrayObject
>> [0] class would make accessing and iterating pretty easy. What are
>> your thoughts?
>> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>>> Not really, but it sounds like something that should be considered.
>>> Now that we're PHP5-only, we should be able to implement some sort of
>>> iterable interface, I'd think. Do you have any thoughts on how to
>>> accomplish this?
>>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>>>> I've run into a case where my app is getting a bunch of GET params and
>>>> I need to be able to iterate through all the caged GET params, but
>>>> that doesn't seem possible. I see that I could get crazy and access
>>>> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>>>> recommend way to accomplish this without having to specify the name of
>>>> each param?
On Mon, Jun 29, 2009 at 8:43 AM, Matt McKeon<m...@mmckeon.com> wrote:
> Ok, I started to get this working, but needs to be cleaned up. Weekend
> got a little busy. Hoping to have some code ready for review tonight to
> see what you think.
> -Matt
> Ed Finkler wrote:
>> It makes sense. I am not sure what all will be involved in refactoring
>> the Cage object, and we also need to make sure that we can't modify
>> the data inside the Cage object. I might ask someone smarter than me
>> to help with this 8)
>> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>>> I'm thinking making the cage's array-like by extending the ArrayObject
>>> [0] class would make accessing and iterating pretty easy. What are
>>> your thoughts?
>>> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>>>> Not really, but it sounds like something that should be considered.
>>>> Now that we're PHP5-only, we should be able to implement some sort of
>>>> iterable interface, I'd think. Do you have any thoughts on how to
>>>> accomplish this?
>>>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>>>>> I've run into a case where my app is getting a bunch of GET params and
>>>>> I need to be able to iterate through all the caged GET params, but
>>>>> that doesn't seem possible. I see that I could get crazy and access
>>>>> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>>>>> recommend way to accomplish this without having to specify the name of
>>>>> each param?
> On Mon, Jun 29, 2009 at 8:43 AM, Matt McKeon<m...@mmckeon.com> wrote:
>> Ok, I started to get this working, but needs to be cleaned up. Weekend
>> got a little busy. Hoping to have some code ready for review tonight to
>> see what you think.
>> -Matt
>> Ed Finkler wrote:
>>> It makes sense. I am not sure what all will be involved in refactoring
>>> the Cage object, and we also need to make sure that we can't modify
>>> the data inside the Cage object. I might ask someone smarter than me
>>> to help with this 8)
>>> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>>>> I'm thinking making the cage's array-like by extending the ArrayObject
>>>> [0] class would make accessing and iterating pretty easy. What are
>>>> your thoughts?
>>>> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>>>>> Not really, but it sounds like something that should be considered.
>>>>> Now that we're PHP5-only, we should be able to implement some sort of
>>>>> iterable interface, I'd think. Do you have any thoughts on how to
>>>>> accomplish this?
>>>>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>>>>>> I've run into a case where my app is getting a bunch of GET params and
>>>>>> I need to be able to iterate through all the caged GET params, but
>>>>>> that doesn't seem possible. I see that I could get crazy and access
>>>>>> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>>>>>> recommend way to accomplish this without having to specify the name of
>>>>>> each param?
Awesome. I believe you can send me a pull request on GitHub, but I
don't know that this is necessary -- I can just pull from your repo
without it. I'll look into it when I have a minute.
--
Ed Finkler
http://funkatron.com Twitter:@funkatron
AIM: funka7ron
ICQ: 3922133
XMPP:funkat...@gmail.com
> Now, I tested with the(some) examples that were already in there. I also
> created another one showing looping through caged GET data.
> So, if anyone has any suggestions/comments/changes/etc I'm more then
> welcome to hear them. Hope this can be useful, if not as an idea starter.
> Matt
> Ed Finkler wrote:
>> word up, thx!
>> On Mon, Jun 29, 2009 at 8:43 AM, Matt McKeon<m...@mmckeon.com> wrote:
>>> Ok, I started to get this working, but needs to be cleaned up. Weekend
>>> got a little busy. Hoping to have some code ready for review tonight to
>>> see what you think.
>>> -Matt
>>> Ed Finkler wrote:
>>>> It makes sense. I am not sure what all will be involved in refactoring
>>>> the Cage object, and we also need to make sure that we can't modify
>>>> the data inside the Cage object. I might ask someone smarter than me
>>>> to help with this 8)
>>>> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>>>>> I'm thinking making the cage's array-like by extending the ArrayObject
>>>>> [0] class would make accessing and iterating pretty easy. What are
>>>>> your thoughts?
>>>>> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>>>>>> Not really, but it sounds like something that should be considered.
>>>>>> Now that we're PHP5-only, we should be able to implement some sort of
>>>>>> iterable interface, I'd think. Do you have any thoughts on how to
>>>>>> accomplish this?
>>>>>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>>>>>>> I've run into a case where my app is getting a bunch of GET params and
>>>>>>> I need to be able to iterate through all the caged GET params, but
>>>>>>> that doesn't seem possible. I see that I could get crazy and access
>>>>>>> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>>>>>>> recommend way to accomplish this without having to specify the name of
>>>>>>> each param?
Ed Finkler wrote:
> Awesome. I believe you can send me a pull request on GitHub, but I
> don't know that this is necessary -- I can just pull from your repo
> without it. I'll look into it when I have a minute.
>> Now, I tested with the(some) examples that were already in there. I also
>> created another one showing looping through caged GET data.
>> So, if anyone has any suggestions/comments/changes/etc I'm more then
>> welcome to hear them. Hope this can be useful, if not as an idea starter.
>> Matt
>> Ed Finkler wrote:
>>> word up, thx!
>>> On Mon, Jun 29, 2009 at 8:43 AM, Matt McKeon<m...@mmckeon.com> wrote:
>>>> Ok, I started to get this working, but needs to be cleaned up. Weekend
>>>> got a little busy. Hoping to have some code ready for review tonight to
>>>> see what you think.
>>>> -Matt
>>>> Ed Finkler wrote:
>>>>> It makes sense. I am not sure what all will be involved in refactoring
>>>>> the Cage object, and we also need to make sure that we can't modify
>>>>> the data inside the Cage object. I might ask someone smarter than me
>>>>> to help with this 8)
>>>>> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>>>>>> I'm thinking making the cage's array-like by extending the ArrayObject
>>>>>> [0] class would make accessing and iterating pretty easy. What are
>>>>>> your thoughts?
>>>>>> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>>>>>>> Not really, but it sounds like something that should be considered.
>>>>>>> Now that we're PHP5-only, we should be able to implement some sort of
>>>>>>> iterable interface, I'd think. Do you have any thoughts on how to
>>>>>>> accomplish this?
>>>>>>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>>>>>>>> I've run into a case where my app is getting a bunch of GET params and
>>>>>>>> I need to be able to iterate through all the caged GET params, but
>>>>>>>> that doesn't seem possible. I see that I could get crazy and access
>>>>>>>> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>>>>>>>> recommend way to accomplish this without having to specify the name of
>>>>>>>> each param?
On Tue, Jun 30, 2009 at 9:55 AM, Matt McKeon<m...@mmckeon.com> wrote:
> Let me know if you'd like me to submit a pull request. I'm not all that
> familiar with GitHub yet.
> Thanks,
> Matt
> Ed Finkler wrote:
>> Awesome. I believe you can send me a pull request on GitHub, but I
>> don't know that this is necessary -- I can just pull from your repo
>> without it. I'll look into it when I have a minute.
>>> Now, I tested with the(some) examples that were already in there. I also
>>> created another one showing looping through caged GET data.
>>> So, if anyone has any suggestions/comments/changes/etc I'm more then
>>> welcome to hear them. Hope this can be useful, if not as an idea starter.
>>> Matt
>>> Ed Finkler wrote:
>>>> word up, thx!
>>>> On Mon, Jun 29, 2009 at 8:43 AM, Matt McKeon<m...@mmckeon.com> wrote:
>>>>> Ok, I started to get this working, but needs to be cleaned up. Weekend
>>>>> got a little busy. Hoping to have some code ready for review tonight to
>>>>> see what you think.
>>>>> -Matt
>>>>> Ed Finkler wrote:
>>>>>> It makes sense. I am not sure what all will be involved in refactoring
>>>>>> the Cage object, and we also need to make sure that we can't modify
>>>>>> the data inside the Cage object. I might ask someone smarter than me
>>>>>> to help with this 8)
>>>>>> On Sat, Jun 27, 2009 at 5:19 PM, matt<m...@mmckeon.com> wrote:
>>>>>>> I'm thinking making the cage's array-like by extending the ArrayObject
>>>>>>> [0] class would make accessing and iterating pretty easy. What are
>>>>>>> your thoughts?
>>>>>>> On Jun 27, 4:13 pm, Ed Finkler <funkat...@gmail.com> wrote:
>>>>>>>> Not really, but it sounds like something that should be considered.
>>>>>>>> Now that we're PHP5-only, we should be able to implement some sort of
>>>>>>>> iterable interface, I'd think. Do you have any thoughts on how to
>>>>>>>> accomplish this?
>>>>>>>> On Sat, Jun 27, 2009 at 2:30 PM, matt<m...@mmckeon.com> wrote:
>>>>>>>>> I've run into a case where my app is getting a bunch of GET params and
>>>>>>>>> I need to be able to iterate through all the caged GET params, but
>>>>>>>>> that doesn't seem possible. I see that I could get crazy and access
>>>>>>>>> Inspekt_Cage::_source, but that obviously isn't intended. Is their a
>>>>>>>>> recommend way to accomplish this without having to specify the name of
>>>>>>>>> each param?