sequence.php
Go to the documentation of this file.00001 <?php
00015 require_once( "../public/codetodiagram.php" );
00016
00017 $strXml = CorujaArrayManipulation::getArrayField( $_REQUEST , "xml" , "" );
00018 if( $strXml == "" )
00019 {
00020 $strXml = file_get_contents( 'sequence.xml' );
00021 }
00022 $strXml = html_entity_decode( $strXml );
00023 $strXml = stripslashes( $strXml );
00024 $objXmlSequence = UmlSequenceDiagramFactoryFromXml::getInstance()->setXml( $strXml )->perform();
00025 $strTitle = CorujaArrayManipulation::getArrayField( $_REQUEST, "title" , 'Sequence Diagram' );
00026 $intFont = (integer)CorujaArrayManipulation::getArrayField( $_REQUEST , "font" , 40 );
00027 $intZoom = (integer)CorujaArrayManipulation::getArrayField( $_REQUEST , "zoom" , 50 );
00028 $booDetails = (boolean)CorujaArrayManipulation::getArrayField( $_REQUEST , "detais" , false );
00029 ?>
00030 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
00031 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00032 <html xmlns="http://www.w3.org/1999/xhtml">
00033 <head>
00034 <?php require_once( "header.php" ) ?>
00035 <title>
00036 <?php print $strTitle ?>
00037 </title>
00038 </head>
00039 <body>
00040 <?php print UmlSequenceDiagramPrinterToHtml::getInstance()->
00041 getConfiguration()->
00042 setZoom( $intZoom )->
00043 setPercentFont( $intFont )->
00044 setShowDetails( $booDetails )->
00045 perform( $objXmlSequence ) ?>
00046 <?php require_once( "footer.php" ); ?>
00047 </body>
00048 </html>