Zend Framework中使用的设计模式 [英] Design Patterns used in Zend Framework
问题描述
我正在准备谈论 Zend Framework
的一般架构,并希望总结其中使用的设计模式。
我相信对于知道 ZF
和学习 DP
s,对于那些知道
DP
和学习 ZF
的人。在前一种情况下,可以看到现实世界应用模式,并在第二个框架中更好地理解框架。
即使是简单的答案,一个表单 Zend_Contoller_Front:Singleton
是够好的,如果提供一点细节(对于一些不那么明显的情况),它会更好。 / p>
我主要关注 GoF
模式,因为它们似乎是任何DP冒险的起点。 / p>
UPD:不直接相关,但对于那些知道 Java
的人来说,非常完整的答案 GoF
's DP
在 Java
核心中找到的示例。
由于现在是CW,我将添加我在评论中给出的模式:
-
Zend_Controller_Front
-
Singleton
-
FrontController
-
-
Zend_Db_Table
-
数据网关
-
-
Zend_Log
-
工厂方法
-
适配器
-
复合
-
-
Zend_Form
-
复合
li>
-
装饰员
-
-
Zend_Filter
和Zend_Validator
-
策略
-
I am preparing talk about general architecture of Zend Framework
, and wanted to summarize Design Patterns used in it.
I believe it will be beneficial both for those knowing ZF
and learning DP
s, and for those knowing DP
s and learning ZF
. In a former case, one would be able to see real-world application of patterns, and get a better comprehension of framework in the second.
Even brief answers in a form Zend_Contoller_Front: Singleton
are good enough, if a little elaboration is provided (for some not-so-obvious cases) it will be even better.
I am primary interested in GoF
patterns, as they seem to be the starting point of any DP-adventure.
UPD: Not directly related, but for those who know Java
there's extremely complete answer for GoF
's DP
examples found in Java
core.
Since this is a CW now, I'll add the patterns I already gave in the comments:
Zend_Controller_Front
Singleton
FrontController
Zend_Db_Table
Table Data Gateway
Zend_Log
Factory Method
Adapter
Composite
Zend_Form
Composite
Decorators
Zend_Filter
andZend_Validator
Strategy
这篇关于Zend Framework中使用的设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!