descript examples in Yii Framework for 3 patterns

This commit is contained in:
Garrus MacTavish
2013-05-08 01:05:58 +08:00
parent 1d554ddce3
commit 7ee0315f18
3 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@ namespace DesignPatterns;
* Examples:
* - Caching: first object is an instance of e.g. a Memcached Interface, if that "misses" it delegates the call to the
* Database Interface
* - Yii Framework: CFilterChain is a chain of controller action filters. the executing point is passed from one filter
* to the next along the chain, and only if all filters say "yes", the action can be invoked at last.
*
*/

View File

@ -11,6 +11,7 @@ namespace DesignPatterns;
* Examples:
* - Doctrine2's QueryBuilder works something like that example class below
* - PHPUnit uses fluent interfaces to build mock objects
* - Yii Framework: CDbCommand and CActiveRecord use this pattern too
*
*/
class SQL

View File

@ -11,6 +11,7 @@ namespace DesignPatterns;
*
* Example:
* - Zend Framework: Zend_Registry holds the application's logger object, front controller etc.
* - Yii Framework: CWebApplication holds all the application components, such as CWebUser, CUrlManager, etc.
*
*/