Class VoService

Description

an example service for typed objects

  • author: Ariel Sommeria-klein

Located in /Examples/Php/ExampleServices/VoService.php (line 17)


	
			
Method Summary
Methods
receiveAndReturnUserVo1 (line 25)

This method expects a UserVo1 object. So amfPHP must receive a typed UserVo1 object, and the CustomClassConverter plugin

must find the UserVo1 class in its value object folders

  • access: public
UserVo1 receiveAndReturnUserVo1 (UserVo1 $user)
receiveAndReturnUserVo2 (line 40)

This method accepts any object. The idea here is that you send an object that is typed(see client example prjects) and it will be returned. This allows you to use typing on the client side without needing to create corresponding PHP VO classes. If you do this exclusively, you can disable the CustomClassConverter plugin, which will increase performance.

amfPHP does this by using the reserved '_explicitType' marker on anonymous PHP objects.

  • access: public
type receiveAndReturnUserVo2 (type $user)
  • type $user

Documentation generated on Tue, 29 May 2012 23:42:06 +0200 by phpDocumentor 1.4.3