Home > AMFPHP, Flash Platform, Zend_Amf > Zend Amf Class based Lazy loading. How do you want it ?

Zend Amf Class based Lazy loading. How do you want it ?

October 16th, 2008

In AMFPHP you were able to specifiy a services directory and a VO directory. The main reason that I remember that we created a VO directory was so that the service browser did not look into that directory. Does anyone have a reason why they would want a different directory for services and VO’s? Respond quick as I am leaning towards just having a services directory!

AMFPHP, Flash Platform, Zend_Amf

  1. October 16th, 2008 at 11:43 | #1

    A vote here for services directory only, thanks Wade!

  2. October 16th, 2008 at 13:05 | #2

    +1 for a services directory only.

    In other matters, it would be great if there was a way of specifying which properties of mapped classes are included, without using a custom iterator. Sometimes I don’t want all of the public properties of my PHP object to be declared in my AS class.

  3. Søren Jepsen
    October 16th, 2008 at 13:10 | #3

    I’d prefer a folder for services and one for vo’s.

    Will give projects a cleaner structure.

    My 2 cents ;)

  4. Nestor Fedyk
    October 16th, 2008 at 15:18 | #4

    +1 for a services directory only.
    What about VO mapping?

  5. Adnan Doric
    October 16th, 2008 at 17:23 | #5

    @Matt : just declare your PHP variable private :)

    In the other way, you can look into Transient tag.

    @Wade : I am all for simplicity I just want to be free to put my DTOs anywhere I want :)
    (I usually have folders /dto /business /command and so on)

  6. John
    October 16th, 2008 at 20:05 | #6

    Wade –
    speaking of services, will there be a service browser for Zend AMF? That really is a great feature in AMFPHP.

  7. October 17th, 2008 at 08:41 | #7

    services only :)

  8. October 17th, 2008 at 09:29 | #8

    In the few times I’ve used AMFPHP, I never created enough VOs to warrent special attention.

    Just a services directory sounds fine to me.

  9. October 20th, 2008 at 07:04 | #9

    @Adnan: Doesn’t help if you’re using object overloading and implementing IteratorAggregate, as Doctrine does. I was after a way of restricting the properties included *without* having to restrict them on the PHP object. The specific use case I have in mind is using active record objects as data transfer objects. I don’t always want every column from the DB to be exposed in AS, even if I do want it in the PHP object.

  10. October 20th, 2008 at 10:26 | #10

    @Matt Kane what if we put something in the DocBlock and checked if that was set? Suggestions for a word?
    @returnValue or something?

  11. October 22nd, 2008 at 12:33 | #11

    Can we have the option of setting a VO directory that defaults to the services directory? I would like to use the same VO objects I use in my web application as I do in the AMF services.

    I can only add flexibility and not hurt anything if the default is the services folder.

    $server->setServicesDirectory(‘services’);
    $server->setVODirectory(‘application/models/’);

  12. October 22nd, 2008 at 12:54 | #12

    @John I hope to bring the same service browser from AMFPHP into a universal remoting project.

  13. Oliver
    November 4th, 2008 at 20:43 | #13

    @wade – I heartily second Jacob’s suggestion re an option to set a separate VO directory.

  14. November 5th, 2008 at 00:03 | #14

    Lazy loading based on your feeback has been added:
    http://wadearnold.com/blog/?p=103

  15. Richard H
    November 2nd, 2009 at 03:56 | #15

    wadearnold :
    @John I hope to bring the same service browser from AMFPHP into a universal remoting project.

    Please please :)

  1. No trackbacks yet.