00001 <?php 00017 // 1. require once the code to diagram started 00018 require_once( '../../public/codetodiagram.php' ); 00019 CodeToDiagram::getInstance()->start(); 00020 00021 // 2. start the code to diagram 00022 CodeToDiagram::getInstance()->getConfiguration()->getMatchGroupStereotypes() 00023 ->addItemName( "History" , UmlSequenceDiagramStereotype::getStereotypeByName( "boundary" ) ) 00024 ->addItemName( "Wolf" , UmlSequenceDiagramStereotype::getStereotypeByName( "user" ) ) 00025 ->addItemName( "LittlePig" , UmlSequenceDiagramStereotype::getStereotypeByName( "controller" ) ) 00026 ->addItemName( "House" , UmlSequenceDiagramStereotype::getStereotypeByName( "entity" ) ) 00027 ; 00028 00029 // 3. load the necessary classes 00030 require_once( 'Wolf.class.php' ); 00031 require_once( 'Pig.class.php' ); 00032 require_once( 'House.class.php' ); 00033 require_once( 'History.class.php' ); 00034 00035 // 4. start the history 00036 new History(); 00037 00038 00039 ?>
1.5.9