Changeset 6

User picture

Author: Thiago Mata

(2009/02/25 15:30) Almost 3 years ago

first version of the codetodiagram in fact.
Problems with constructors with parameters.
Problems with not static methods called static mode.
Problems with classes what are used in the same file when are declared.
Parameters of methods without parameters name.
Unabled to debug functions yet.
Unabled to generated xml outputs.

To see working open the test.php inside the public folder.

Affected files

Added _start.php

Show contents

Added components/_start.php

Show contents

Added components/backtrace/BackTrace.php

Show contents

Added components/backtrace/BackTraceExplain.php

Show contents

Added components/backtrace/debugtest.php

Show contents

Added components/backtrace/resource/script.js

Show contents

Added components/backtrace/resource/style.css

Show contents

Added components/codeReflection/_start.php

Show contents

Added components/codeReflection/CodeReflectionClass.class.php

Show contents

Added components/codeReflection/CodeReflectionFunction.class.php

Show contents

Added components/codeReflection/CodeReflectionMethod.class.php

Show contents

Added components/codeReflection/CodeReflectionParameter.class.php

Show contents

Added components/codeReflection/CodeReflectionProperty.class.php

Show contents

Added components/codeReflection/example/_start.php

Show contents

Added components/codeReflection/example/test1.php

Show contents

Added components/componentsManager/_start.php

Show contents

Added components/componentsManager/components.xml

Show contents

Added components/componentsManager/CorujaComponentManagerException.class.php

Show contents

Added components/componentsManager/CorujaComponentsManager.class.php

Show contents

Added components/componentsManager/CorujaComponentsManagerInterface.interface.php

Show contents

Added components/CorujaComponentException.class.php

Show contents

Added components/debugExecution/_start.php

Show contents

Added components/debugExecution/DebugExecution.class.php

Show contents

Added components/debugExecution/DebugExecutionException.class.php

Show contents

Added components/debugReflection/_start.php

Show contents

Added components/debugReflection/DebugReflectionClass.class.php

Show contents

Added components/debugReflection/DebugReflectionFile.class.php

Show contents

Added components/debugReflection/DebugReflectionFunction.class.php

Show contents

Added components/debugReflection/DebugReflectionMethod.class.php

Show contents

Added components/debugReflection/DebugReflectionParameter.class.php

Show contents

Added components/debugReflection/DebugReflectionProperty.class.php

Show contents

Added components/debugReflection/DebugReflectionReceiver.class.php

Show contents

Added components/debugReflection/example/_start.php

Show contents

Added components/debugReflection/example/test1.php

Show contents

Added components/debugReflection/example/test2.php

Show contents

Added components/extendedReflection/_start.php

Show contents

Added components/extendedReflection/ExtendedReflectionClass.class.php

Show contents

Added components/extendedReflection/ExtendedReflectionFunction.class.php

Show contents

Added components/extendedReflection/ExtendedReflectionMethod.class.php

Show contents

Added components/extendedReflection/ExtendedReflectionParameter.class.php

Show contents

Added components/extendedReflection/ExtendedReflectionProperty.class.php

Show contents

Added components/library/_start.php

Show contents

Added components/library/CorujaArrayManipulation.class.php

Show contents

Added components/library/CorujaClassManipulation.class.php

Show contents

Added components/library/CorujaStringManipulation.class.php

Show contents

Added components/library/example/_start.php

Show contents

Added components/library/example/CorujaArrayManipulationExample.php

Show contents

Added components/library/example/stringmanipulation.php

Show contents

Added components/library/test/CorujaArrayManipulationTest.php

Show contents

Added components/library/test/CorujaClassManipulationTest.php

Show contents

Added components/library/test/CorujaStringManipulationTest.php

Show contents

Added components/library/test/coverage/container-min.js

Show contents

Added components/library/test/coverage/container.css

Show contents

Added components/library/test/coverage/CorujaArrayManipulation.class.php.html

Show contents

Added components/library/test/coverage/CorujaClassManipulation.class.php.html

Show contents

Added components/library/test/coverage/CorujaStringManipulation.class.php.html

Show contents

Added components/library/test/coverage/index.html

Show contents

Added components/library/test/coverage/style.css

Show contents

Added components/library/test/coverage/yahoo-dom-event.js

Show contents

Added components/xmlSequence/_start.php

Show contents

Added components/xmlSequence/XmlSequence.class.php

Show contents

Added components/xmlSequence/XmlSequenceActor.class.php

Show contents

Added components/xmlSequence/XmlSequenceMessage.class.php

Show contents

Added components/xmlSequence/XmlSequenceValue.class.php

Show contents

Added public/debug.php

Show contents

Added public/Fatorial.php

Show contents

Updated public/index.php Download diff

56
1
<?php
1
<?php
2
require_once( "debug.php" );
2
3
3
require_once( '../classes/_start.php' );
4
$intZoom = (integer)CorujaArrayManipulation::getArrayField( $_POST , "zoom" , 50 );
5
$strXml = CorujaArrayManipulation::getArrayField( $_POST , "xml" , file_get_contents( 'sequence.xml' ) );
4
6
5
6
$intZoom = (integer)getArrayElement( $_POST , "zoom" , 50 );
7
$strXml = getArrayElement( $_POST , "xml" , file_get_contents( 'sequence.xml' ) );
8
9
$objXmlSequence = new XmlSequence();
7
$objXmlSequence = new XmlSequence();
10
$objXmlSequence->setZoom( $intZoom);
8
$objXmlSequence->setZoom( $intZoom);
11
$objXmlSequence->setXml( $strXml );
9
$objXmlSequence->setXml( $strXml );
...
...
14
<html>
12
<html>
15
    <head>
13
    <head>
16
        <style>
14
        <style>
15
17
            form label
16
            form label
18
            {
17
            {
19
                display: block;
18
                display: block;
...
...
77
                warranty. Use it at your own risk. It's not for the faint of heart.
76
                warranty. Use it at your own risk. It's not for the faint of heart.
78
            </p>
77
            </p>
79
            <p>
78
            <p>
80
                For external use <a href="caller.php"> try this link </a> and see the HTML code.               
79
                For external use <a href="caller.php"> try this link </a> and see the HTML code.
80
                To internal use download from <a href="SequenceDiagram.rar">here</a>.
81
            </p>
81
            </p>
82
            <p>
82
            <p>
83
                Special thanks to Raphael Melo and 
83
                Special thanks to Raphael Melo and 
...
...
113
        </div>
113
        </div>
114
    </body>
114
    </body>
115
</html>
115
</html>
116
<pre>
117
<?php
118
print htmlentities( html_entity_decode( DebugRefletionReceiver::showLog() ) );
119
?>
120
</pre>

Updated public/sequence.php Download diff

56
6
$strTitle = getArrayElement( $_POST , "title" , 'Sequence Diagram' );
6
$strTitle = getArrayElement( $_POST , "title" , 'Sequence Diagram' );
7
7
8
$objXmlSequence = new XmlSequence();
8
$objXmlSequence = new XmlSequence();
9
$objXmlSequence->setZoom( $intZoom );
9
$objXmlSequence->setZoom( $intZoom);
10
$objXmlSequence->setXml( $strXml );
10
$objXmlSequence->setXml( $strXml );
11
11
12
?>
12
?>
...
...
19
    <body>
19
    <body>
20
            <?php print $objXmlSequence->show(); ?>
20
            <?php print $objXmlSequence->show(); ?>
21
    </body>
21
    </body>
22
</html>
22
</html>

Added public/test.php

Show contents