generating UML class diagrams for drupal
Hi I am using Drupal 6 for my final year project, I am req开发者_如何学编程uired to create class diagrams for my website, so can you point to useful tools for this task.
Thank you
Drupal is not Object Oriented, it won't easily documented with classes diagrams. So I don't expect any tools to be available to generate them. You can hoewever use any UML tools to create high level functional documentation.
I was specifically studying the drupal way to write plugin. I wrote a blog on this accompanied by component diagrams. At first I prepared a component diagram for the menu subsystem as in the following,
Also there is a component diagram for the blog module,
Finally, I did not come up with any class diagram. But the component diagrams help to understand the internal working pretty well.
Update
In new(8x) edition of drupal there are talks for class diagrams here.
Drupal uses the doxygen standard for documenting code. You can generate the entire API of Drupal Core and all modules and themes you've installed in you Drupal application using doxygen. With regards to class diagrams, you will be able to generate class diagrams such as the one shown below. The example below uses graphviz library but you don't need it to generate those images.
You could just try to use a reverse engineering tool to get a class diagram of the database tables that drupal uses. Should be good enough.
精彩评论