Php – What are VOs in flex or amfphp

amfphpapache-flex

This is how it is. I am getting XML data, I need to wait until it is parsed and then dispatch the event once the parsing is done from my library.

Firstly is there any way to avoid events in library in this case?

An alternative I saw was to use VOs. So what is this and how to make it work.

Best Answer

If you can use AMFPHP I would highly recommend it. You can define Value Objects (VO) on both the server and in actionscript. This will allow you to pass strongly typed objects back and forth from client to server. There is no need to parse, use e4x, or suffer in that way at all.

VOs are also referred to as DTO (data transfer objects), booth of which are object oriented design patterns.

Related Topic