root/components/codeToDiagram/CodeToDiagram.class.php

163177
1155
		$this->setCallerPath( CorujaFileManipulation::getPathOfFile( $strCallerFile ) );
1155
		$this->setCallerPath( CorujaFileManipulation::getPathOfFile( $strCallerFile ) );
1156
	}
1156
	}
1157
1157
1158
    public function __call( $strMethod , $arrArguments )
1158
        /**
1159
    {
1159
         * Add a note into the diagram
1160
        throw new CodeToDiagramException( "unknow method " . $strMethod . " in " . get_class( $this ) );
1160
         *
1161
    }
1161
         * @param string $strNoteContent
1162
         * @param boolean $booAfter
1163
         * @return UmlSequenceDiagramNote
1164
         */
1165
        public function addNote( $strNoteContent , $booAfter = true )
1166
        {
1167
            $objNote = new UmlSequenceDiagramNote();
1168
            $objNote->setContent( $strNoteContent );
1169
            $objMessage = CodeInstrumentationReceiver::getInstance()->getActualMessage();
1170
            $objActor =  CodeInstrumentationReceiver::getInstance()->getActualActor();
1171
            $objNote->setActor( $objActor );
1172
            
1173
            if( $booAfter )
1174
            {
1175
                $objMessage->addNoteAfter($objNote);
1176
            }
1177
            else
1178
            {
1179
                $objMessage->addNoteBefore( $objNote );
1180
            }
1181
            return $objNote;
1182
        }
1183
1184
        public function __call( $strMethod , $arrArguments )
1185
        {
1186
            throw new CodeToDiagramException( "unknow method " . $strMethod . " in " . get_class( $this ) );
1187
        }
1162
}
1188
}
1163
1189
1164
?>
1190
?>