root/components/codeInstrumentation/CodeInstrumentationReceiver.class.php
| 177 | 178 | ||
|---|---|---|---|
72 | 72 | ||
73 | protected $objActualMessage; | 73 | protected $objActualMessage; |
74 | 74 | ||
75 | protected $objActualActor; | ||
76 | |||
75 | /** | 77 | /** |
76 | * Set the code instrumentation receiver configuration | 78 | * Set the code instrumentation receiver configuration |
77 | * | 79 | * |
... | ... | ||
278 | 280 | ||
279 | // get the actor what the message is bring from // | 281 | // get the actor what the message is bring from // |
280 | $objActorFrom = current( $this->arrStack ); | 282 | $objActorFrom = current( $this->arrStack ); |
283 | //$objActorFrom = $this->arrStack[0]; | ||
281 | if( $objActorFrom === false ) | 284 | if( $objActorFrom === false ) |
282 | { | 285 | { |
283 | return $this; | 286 | return $this; |
... | ... | ||
347 | } | 350 | } |
348 | 351 | ||
349 | array_unshift( $this->arrStack , $objActorTo ); | 352 | array_unshift( $this->arrStack , $objActorTo ); |
353 | |||
354 | $this->objActualActor = $objActorFrom; | ||
350 | return $this; | 355 | return $this; |
351 | } | 356 | } |
352 | 357 | ||
... | ... | ||
393 | } | 398 | } |
394 | 399 | ||
395 | // get the actor what the message is bring from // | 400 | // get the actor what the message is bring from // |
401 | reset( $this->arrStack ); | ||
396 | $objActorFrom = array_shift( $this->arrStack ); | 402 | $objActorFrom = array_shift( $this->arrStack ); |
397 | 403 | ||
398 | // get the actor what the message is bring to // | 404 | // get the actor what the message is bring to // |
405 | //$objActorTo = $this->arrStack[0]; | ||
399 | $objActorTo = current( $this->arrStack ); | 406 | $objActorTo = current( $this->arrStack ); |
400 | 407 | ||
401 | $boolCreateMessage = true; | 408 | $boolCreateMessage = true; |
... | ... | ||
436 | $objMessage->setTimeEnd( microtime( true ) ); | 443 | $objMessage->setTimeEnd( microtime( true ) ); |
437 | $this->objActualMessage = $objMessage; | 444 | $this->objActualMessage = $objMessage; |
438 | } | 445 | } |
446 | $this->objActualActor = $objActorTo; | ||
447 | |||
439 | return $this; | 448 | return $this; |
440 | } | 449 | } |
441 | 450 | ||
... | ... | ||
514 | */ | 523 | */ |
515 | public function getActualActor() | 524 | public function getActualActor() |
516 | { | 525 | { |
517 | return current( $this->arrStack ); | 526 | return $this->objActualActor; |
518 | } | 527 | } |
519 | 528 | ||
520 | /** | 529 | /** |
Download diff