root/components/umlSequenceDiagram/UmlSequenceDiagramPrinterToHtml.class.php
| 177 | 178 | ||
|---|---|---|---|
12 | */ | 12 | */ |
13 | class UmlSequenceDiagramPrinterToHtml implements UmlSequenceDiagramPrinterInterface | 13 | class UmlSequenceDiagramPrinterToHtml implements UmlSequenceDiagramPrinterInterface |
14 | { | 14 | { |
15 | /** | 15 | /** |
16 | * Singleton of the UmlSequenceDiagramPrinterToHtml | 16 | * Singleton of the UmlSequenceDiagramPrinterToHtml |
17 | * | 17 | * |
18 | * @see UmlSequenceDiagramPrinterInterface::$objInstance | 18 | * @see UmlSequenceDiagramPrinterInterface::$objInstance |
19 | * @var UmlSequenceDiagramPrinterToHtml | 19 | * @var UmlSequenceDiagramPrinterToHtml |
20 | */ | 20 | */ |
21 | protected static $objInstance; | 21 | protected static $objInstance; |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * Uml Sequence Diagram object what will be print | 24 | * Uml Sequence Diagram object what will be print |
25 | * | 25 | * |
26 | * @see UmlSequenceDiagramPrinterInterface->objUmlSequenceDiagram | 26 | * @see UmlSequenceDiagramPrinterInterface->objUmlSequenceDiagram |
27 | * @var UmlSequenceDiagram | 27 | * @var UmlSequenceDiagram |
28 | */ | 28 | */ |
29 | protected $objUmlSequenceDiagram; | 29 | protected $objUmlSequenceDiagram; |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Configuration of this printer | 32 | * Configuration of this printer |
... | ... | ||
332 | { | 332 | { |
333 | $strResult = ''; | 333 | $strResult = ''; |
334 | $strNotesBefore = ''; | 334 | $strNotesBefore = ''; |
335 | $strNotesAfter = ''; | ||
335 | 336 | ||
336 | $arrNotes = $objMessage->getNotesBefore(); | 337 | $arrNotes = $objMessage->getNotesBefore(); |
337 | foreach( $arrNotes as $objNote ) | 338 | foreach( $arrNotes as $objNote ) |
... | ... | ||
341 | $arrNotes = $objMessage->getNotesAfter(); | 342 | $arrNotes = $objMessage->getNotesAfter(); |
342 | foreach( $arrNotes as $objNote ) | 343 | foreach( $arrNotes as $objNote ) |
343 | { | 344 | { |
344 | $strNotesBefore .= $this->getNote( $objNote , true ); | 345 | $strNotesAfter .= $this->getNote( $objNote , true ); |
345 | } | 346 | } |
346 | 347 | ||
347 | if( $objMessage->isReverse() ) | 348 | if( $objMessage->isReverse() ) |
... | ... | ||
432 | 433 | ||
433 | 434 | ||
434 | $strMessages = $this->getTemplate( "messages.html" , $arrReplace ); | 435 | $strMessages = $this->getTemplate( "messages.html" , $arrReplace ); |
435 | $strMessages = $strNotesBefore . $strMessages; | 436 | $strMessages = $strNotesBefore . $strMessages . $strNotesAfter; |
436 | return $strMessages; | 437 | return $strMessages; |
437 | } | 438 | } |
438 | 439 | ||
... | ... | ||
440 | { | 441 | { |
441 | $arrActors = $objNote->getActor()->getUmlSequenceDiagram()->getActors(); | 442 | $arrActors = $objNote->getActor()->getUmlSequenceDiagram()->getActors(); |
442 | $intPosition = $objNote->getActor()->getPosition(); | 443 | $intPosition = $objNote->getActor()->getPosition(); |
444 | |||
443 | $strResult = ""; | 445 | $strResult = ""; |
444 | 446 | ||
445 | foreach( $arrActors as $objActor ) | 447 | foreach( $arrActors as $objActor ) |
Download diff