[SabreAMF] SabreAMF returns object with private array.

Evert | Rooftop evert at rooftopsolutions.nl
Mon Jan 8 11:22:18 EST 2007


Hi Edwin,

When a flex-class isn't mapped to a php-class, SabreAMF_TypedObject will 
be used as default.

This object has 4 public methods:

1) getAMFClassName
2) getAMFData
3) setAMFClassName
4) setAMFData

You can check out the source here: 
http://www.rooftopsolutions.nl/code/?p=SabreAMF&a=s&file=/SabreAMF/TypedObject.php

So the method you'll need is getAMFData..

hope this helps,

Evert


Edwin Koster wrote:
>
> Hi,
>
> I’m building a flex application wich uses sabreAMF to connect to 
> PHP/MySQL.
>
> When i send an arrayCollenction from flex to PHP i receive the 
> following object:
>
> (vardump)
>
> SabreAMF_TypedObject Object
>
> (
>
> [amfClassName:private] => flex.messaging.io.ArrayCollection
>
> [amfData:private] => Array
>
> (
>
> [source] => Array
>
> (
>
> [0] => stdClass Object
>
> (
>
>>
> )
>
> [1] => stdClass Object
>
> (
>
>>
> )
>
> Etc
>
> )
>
> )
>
> )
>
> The data i need is in the ‘source’ array but because the amfData array 
> is private i can’t access it…
>
> Can anyone tell me why this is and how i can change this?
>
> The arraycollection in flex is public when i send it…
>
>
>
> Thanks in advance.
>
> Edwin Koster
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> sabreamf mailing list
> sabreamf at osflash.org
> http://osflash.org/mailman/listinfo/sabreamf_osflash.org
>   




More information about the sabreamf mailing list