简体   繁体   English

无类PHP应用程序的类图

[英]Class Diagram for classless PHP application

I have PHP application that is completely procedural (No PHP Classes). 我有完全程序化的PHP应用程序(无PHP类)。 In my case, is there any formal diagrams I can draw to show how my web application that is equivalent to a UML class diagram for OOP based applications. 就我而言,有没有可以绘制的形式图来说明我的Web应用程序如何等效于基于OOP的应用程序的UML类图。

Thanks all 谢谢大家

doxygen可以自动生成呼叫者和呼叫者图-如果您需要的话。

You could make some Hatley-Pirbhai models: 您可以制作一些Hatley-Pirbhai模型:

http://en.wikipedia.org/wiki/Hatley-Pirbhai_modeling http://en.wikipedia.org/wiki/Hatley-Pirbhai_modeling

It's not because the implementation (or even the design) is procedural, that the business model is. 并不是因为实现(甚至是设计)是过程性的,而是因为业务模型如此。

Though you may not find explicit reference to classes in your code, they may still be there, hidden, scattered through global variables etc, functions manipulating some globals, ... 尽管您可能未在代码中找到对类的显式引用,但它们仍可能存在,隐藏,散布在全局变量等中,操作某些全局变量的函数,...

So in order to describe your app, you may still be able to use a (conceptual) class diagram. 因此,为了说明自己的应用,你仍然可以使用(概念)的类图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM