예제 #1
0
 /**
  * Set the actor
  * 
  * @param CInteropActor $actor The actor
  * 
  * @return null
  */
 function setActor(CInteropActor $actor)
 {
     $source = $actor->getFirstExchangesSources();
     if (get_class($actor) == "CDicomSender") {
         $actor->loadRefsExchangesSources();
         $this->sender = $source->host . ":" . $source->port;
         $this->receiver = "[SELF]";
         $this->sender_id = $actor->_id;
     } elseif (get_class($actor) == "CDicomReceiver") {
         $actor->loadRefsExchangesSources();
         $this->receiver = $source->host . ":" . $source->port;
         $this->sender = "[SELF]";
         $this->receiver_id = $actor->_id;
     }
     $this->_ref_actor = $actor;
 }