Hola.
Llevo usando muchos años FLEX + WEBORB con PHP pero a día de hoy se me ha planteado la duda y necesidad de enviar al constructor de la clase de php parámentros, no solo a los métodos, ¿es esto posible?
ejemplo:
Código PHP:
class RemoteEjemplo {
public function __construct($variable){
}
public function metodo1($variable){
}
}
Código:
var _channelSet:ChannelSet = new ChannelSet();
var _amfChannel:AMFChannel = new AMFChannel("my-amf", rutaWebOrb+"/[context-root]/messagebroker/amf");
_channelSet.addChannel(_amfChannel);
remoteObject = new RemoteObject("GenericAIRDestination");
remoteObject.channelSet = _channelSet;
remoteObject.source = 'carpeta.RemoteEjemplo("HOLA")';
remoteObject.metodo1("MUNDO");