Tips and Tricks
Code Engineering Topics

Reverse Engineering PHP Source by Instant Reverse

VP’s products support reverse engineering different types of source or binary files into UML class models by Instant Reverse facility. Reverse Engineering PHP 5.0 source to class models is now supported.

Let us take the following PHP sources as an example.
reverse_engineering_php_source_by_instant_reverse-1.jpg

Remark: There are php sources inside the smarty folder.

To reverse engineer the PHP source:

  1. On the menu, select Tools > Instant Reverse > PHP 5.0 Source....
    reverse_engineering_php_source_by_instant_reverse-2.jpg

    The Instant Reverse Options dialog box is displayed with PHP 5.0 Source as the selected Instant Type.
    reverse_engineering_php_source_by_instant_reverse-3.jpg

    Note: When using SDE, select Modeling > Instant Reverse... from the menu to activate the Instant Reverse Options dialog box, and then select PHP 5.0 Source from the drop-down menu of Instant Type.
    reverse_engineering_php_source_by_instant_reverse-4.jpg

  2. Select the desired classpath for the PHP source to be reverse engineered, and then click OK.
    reverse_engineering_php_source_by_instant_reverse-5.jpg

    Instant Reverse proceeds by showing the progress of reverse engineering.
    reverse_engineering_php_source_by_instant_reverse-6.jpg

  3. Click OK when reverse engineering is completed.
    reverse_engineering_php_source_by_instant_reverse-7.jpg

    The reversed class models are shown on the Model tree.
    reverse_engineering_php_source_by_instant_reverse-8.jpg

  4. Click the New Class Diagram icon to create a new class diagram.
    reverse_engineering_php_source_by_instant_reverse-9.jpg

  5. Select and drag the class from the Model tree to class diagram.
    reverse_engineering_php_source_by_instant_reverse-10.jpg

    The reversed class models are added on the class diagram as shown below. You may further work on the class models by visual modeling.
    reverse_engineering_php_source_by_instant_reverse-11.jpg

Related Articles

Resources

 
 
Last modified: 2005/12/02 19:29
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory