Click to enter my new blog: http://www.sofee.cn/blog/
I have also used the DIA plotting software before, but I just didn't use it as a tool. Recently I found a uml2php5 plug-in that can generate PhP5 Code directly based on the UML diagram and Support Web Services! And for win edition!
Sample:
Generated PhP5 code:
<? PHP
/**
* Tool Library
* Code skeleton generated by dia-uml2php5 plugin
* Written by kdo kdo@zpmag.com
* @ Author Justin Wu (wenlong@php.net)
* @ License sow.license
* @ Copyright (c) 2004-2005 sofee development team. (http://www.sofee.cn)
*/
Class sofeeutil {
/**
* Obtain the Client IP Address
* @ Access public
* @ Return string
*/
Public final function getip (){
}
/**
* Get the directory size
* @ Access public
* @ Return integer
*/
Public final function getdirsize (){
}
}
?>
PS: the Web Services functions are powerful. You can find them by yourself :)
Installation Method:
1. Download required software:
Dia-http://dia-installer.sourceforge.net/
Uml2php5-http://uml2php5.zpmag.com/index.php
2. installation steps:
Unzip the dia-setup-0.94.zip and install it directly.
Unzip uml2php5-2.1.0.tar.gz and copy the dia-uml2php5.conf.xsl, dia-uml2php5.zx, dia-uml2phpsoap.zx, dia-uml-classes.zx, stylesheets. xml files to the DIA/XLST directory.
Dia-uml2php5.conf.xsl is uml2php5 configuration file, such as the definition of author, copyright, web services, etc., according to the comment inside should not be difficult to configure.
3. Bug solving:
1) This version of Dia will be suspended in windows. Solution: after the first operation, turn Dia off, and then set C:/Documents and Settings/yourname /. the DIA directory is deleted, and then the DIA is re-opened. Just draw a few images until they are re-generated. dia directory and related files until (during which Dia may be suspended, don't worry about it, just give it some time :-)).
2) After the default installation, it is unable to enter Chinese, so you need to modify the C:/program files/Dia/etc/gtk-2.0/gtkrc file, add font-name = "simsun" to the style.
Enjoy it!