<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AMFPHP ArrayCollection</title>
	<atom:link href="http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/feed" rel="self" type="application/rss+xml" />
	<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection</link>
	<description>The spoils of the integration of PHP and ActionScript</description>
	<lastBuildDate>Wed, 19 May 2010 07:10:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: olaf</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-6584</link>
		<dc:creator>olaf</dc:creator>
		<pubDate>Wed, 28 Oct 2009 09:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-6584</guid>
		<description>Hi,
is there anybody who did this example to work, I&#039;ve some problems by 
using an ArrayCollection inside a VO.
Is there complete example code out there ?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
is there anybody who did this example to work, I&#8217;ve some problems by<br />
using an ArrayCollection inside a VO.<br />
Is there complete example code out there ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bender</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-3011</link>
		<dc:creator>bender</dc:creator>
		<pubDate>Wed, 29 Jul 2009 15:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-3011</guid>
		<description>Sorry to post again right away, but does this remedy mapping arraycollections from Flex to PHP as well?</description>
		<content:encoded><![CDATA[<p>Sorry to post again right away, but does this remedy mapping arraycollections from Flex to PHP as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bender</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-3010</link>
		<dc:creator>bender</dc:creator>
		<pubDate>Wed, 29 Jul 2009 15:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-3010</guid>
		<description>Hey guys,
 Fix #2 is giving me a PHP parse error at public $someArray = ArrayCollection(); saying that a ; or , is expected...

How did you get your example to work properly without the error?</description>
		<content:encoded><![CDATA[<p>Hey guys,<br />
 Fix #2 is giving me a PHP parse error at public $someArray = ArrayCollection(); saying that a ; or , is expected&#8230;</p>
<p>How did you get your example to work properly without the error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Morphic Group &#187; Blog Archive &#187; A Chat About PHP with Flash Builder 4 and Adobe Catalyst</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-2717</link>
		<dc:creator>The Morphic Group &#187; Blog Archive &#187; A Chat About PHP with Flash Builder 4 and Adobe Catalyst</dc:creator>
		<pubDate>Thu, 25 Jun 2009 19:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-2717</guid>
		<description>[...] For more on this subject check out this blog from Wade Arnald - AMFPHP ArrayCollection [...]</description>
		<content:encoded><![CDATA[<p>[...] For more on this subject check out this blog from Wade Arnald &#8211; AMFPHP ArrayCollection [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AMFDateConverter - Convert PHP AMF to Flex Date Class &#124; Nate's Code Vault</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-2649</link>
		<dc:creator>AMFDateConverter - Convert PHP AMF to Flex Date Class &#124; Nate's Code Vault</dc:creator>
		<pubDate>Sat, 30 May 2009 20:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-2649</guid>
		<description>[...] mapping to the Flex Date class from PHP. Unlike converting to an ArrayCollection which utilizes the flex.messaging.io.ArrayCollection class in PHP to automatically map everything for you, there appears to be no support for Date [...]</description>
		<content:encoded><![CDATA[<p>[...] mapping to the Flex Date class from PHP. Unlike converting to an ArrayCollection which utilizes the flex.messaging.io.ArrayCollection class in PHP to automatically map everything for you, there appears to be no support for Date [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rive Backend Flex webapp prerelease &#124; Rive.be &#124; Blog</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-2435</link>
		<dc:creator>Rive Backend Flex webapp prerelease &#124; Rive.be &#124; Blog</dc:creator>
		<pubDate>Mon, 04 May 2009 06:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-2435</guid>
		<description>[...] AMFPHP class mapping with ArrayCollections and ValueObjects [...]</description>
		<content:encoded><![CDATA[<p>[...] AMFPHP class mapping with ArrayCollections and ValueObjects [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: travis</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-1865</link>
		<dc:creator>travis</dc:creator>
		<pubDate>Sat, 04 Apr 2009 22:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-1865</guid>
		<description>&lt;a href=&quot;#comment-1791&quot; rel=&quot;nofollow&quot;&gt;@travis&lt;/a&gt; 
Sorry I screwed up that won&#039;t work 
_arr2:ArrayCollectionExtended = ArrayCollectionExtended(event.result);
this might work better i no it works for standard ArrayCollection</description>
		<content:encoded><![CDATA[<p><a href="#comment-1791" rel="nofollow">@travis</a><br />
Sorry I screwed up that won&#8217;t work<br />
_arr2:ArrayCollectionExtended = ArrayCollectionExtended(event.result);<br />
this might work better i no it works for standard ArrayCollection</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: travis</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-1791</link>
		<dc:creator>travis</dc:creator>
		<pubDate>Wed, 01 Apr 2009 22:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-1791</guid>
		<description>I just did this from my event result in my remote object handler

_arr2:ArrayCollectionExtended =  new ArrayCollectionExtended(ArrayUtil.toArray(event.result));</description>
		<content:encoded><![CDATA[<p>I just did this from my event result in my remote object handler</p>
<p>_arr2:ArrayCollectionExtended =  new ArrayCollectionExtended(ArrayUtil.toArray(event.result));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AMFDateConverter - Convert PHP AMF to Flex Date Class &#171; Nate&#8217;s Code Vault</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-532</link>
		<dc:creator>AMFDateConverter - Convert PHP AMF to Flex Date Class &#171; Nate&#8217;s Code Vault</dc:creator>
		<pubDate>Fri, 28 Nov 2008 17:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-532</guid>
		<description>[...] mapping to the Flex Date class from PHP. Unlike converting to an ArrayCollection which utilizes the flex.messaging.io.ArrayCollection class in PHP to automatically map everything for you, there appears to be no support for Date [...]</description>
		<content:encoded><![CDATA[<p>[...] mapping to the Flex Date class from PHP. Unlike converting to an ArrayCollection which utilizes the flex.messaging.io.ArrayCollection class in PHP to automatically map everything for you, there appears to be no support for Date [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gdepeute</title>
		<link>http://wadearnold.com/blog/flash/amfphp/amfphp-arraycollection/comment-page-1#comment-530</link>
		<dc:creator>gdepeute</dc:creator>
		<pubDate>Fri, 28 Nov 2008 14:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=18#comment-530</guid>
		<description>Above you mentioned correctly that the following only works for associative arrays.

return new RecordSet($myArray);

A very simple construct that works for &quot;straight up arrays&quot; like array(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;) is

return new ArrayObject($myArray);

This will nicely return as an ArrayCollection.

Of course same works for returning ArrayCollection of VO&#039;s (even without the need for class definitions of the vo&#039;s in php - like shown below).

public function getUsers() {
$users[] = (object) array(&#039;_explicitType&#039; =&gt; &#039;User&#039;, &#039;name&#039; =&gt; &#039;User1&#039;);
$users[] = (object) array(&#039;_explicitType&#039; =&gt; &#039;User&#039;, &#039;name&#039; =&gt; &#039;User3&#039;);
$users[] = (object) array(&#039;_explicitType&#039; =&gt; &#039;User&#039;, &#039;name&#039; =&gt; &#039;User3&#039;);
$userCollection = new ArrayObject($users);
return($userCollection);
}

Call this in amfphp and it will return an ArrayCollection of 3 User Objects, without even a User class definiton in php.

-- Geert</description>
		<content:encoded><![CDATA[<p>Above you mentioned correctly that the following only works for associative arrays.</p>
<p>return new RecordSet($myArray);</p>
<p>A very simple construct that works for &#8220;straight up arrays&#8221; like array(&#8220;A&#8221;,&#8221;B&#8221;,&#8221;C&#8221;) is</p>
<p>return new ArrayObject($myArray);</p>
<p>This will nicely return as an ArrayCollection.</p>
<p>Of course same works for returning ArrayCollection of VO&#8217;s (even without the need for class definitions of the vo&#8217;s in php &#8211; like shown below).</p>
<p>public function getUsers() {<br />
$users[] = (object) array(&#8216;_explicitType&#8217; =&gt; &#8216;User&#8217;, &#8216;name&#8217; =&gt; &#8216;User1&#8242;);<br />
$users[] = (object) array(&#8216;_explicitType&#8217; =&gt; &#8216;User&#8217;, &#8216;name&#8217; =&gt; &#8216;User3&#8242;);<br />
$users[] = (object) array(&#8216;_explicitType&#8217; =&gt; &#8216;User&#8217;, &#8216;name&#8217; =&gt; &#8216;User3&#8242;);<br />
$userCollection = new ArrayObject($users);<br />
return($userCollection);<br />
}</p>
<p>Call this in amfphp and it will return an ArrayCollection of 3 User Objects, without even a User class definiton in php.</p>
<p>&#8211; Geert</p>
]]></content:encoded>
	</item>
</channel>
</rss>
