in other places, for the REST_RESPONSE class, you can call xml elements like
that dynamically,
even still accessing the variable directly is not possible because of the -
remaining-hits would be translated to $remaining ( minus ) $hits.
dan.latter wrote:
>
> remaing-hits is not a function, maybe that's your problem, ie drop the
> "()"
>
>
> On Nov 20, 2008, at 21:00, issackelly <[EMAIL PROTECTED]> wrote:
>
>>
>> I'm tring to obtain the value remaining-hits
>>
>> from this object (we'll call it response)
>> object(Zend_Rest_Client_Result)#10 (1) {
>> ["_sxml:protected"]=>
>> object(SimpleXMLElement)#8 (4) {
>> ["reset-time"]=>
>> string(25) "2008-11-20T21:36:50+00:00"
>> ["remaining-hits"]=>
>> string(2) "98"
>> ["hourly-limit"]=>
>> string(3) "100"
>> ["reset-time-in-seconds"]=>
>> string(10) "1227217010"
>> }
>> }
>>
>> $response->remaining-hits() doesn't work, because the - isn't a
>> valid PHP
>> element.
>>
>> This is a total noobie question, but I'm wondering how to access
>> that value
>> correctly. Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/Zend_Rest_Response%2C-obtaining-a-value-tp20609926p20609926.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>
>
--
View this message in context:
http://www.nabble.com/Zend_Rest_Response%2C-obtaining-a-value-tp20609926p20612429.html
Sent from the Zend Framework mailing list archive at Nabble.com.