Skip to content

Commit 7ee0315

Browse files
committed
descript examples in Yii Framework for 3 patterns
1 parent 1d554dd commit 7ee0315

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

ChainOfResponsibilities/ChainOfResponsibilities.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Examples:
1313
* - Caching: first object is an instance of e.g. a Memcached Interface, if that "misses" it delegates the call to the
1414
* Database Interface
15+
* - Yii Framework: CFilterChain is a chain of controller action filters. the executing point is passed from one filter
16+
* to the next along the chain, and only if all filters say "yes", the action can be invoked at last.
1517
*
1618
*/
1719

FluentInterface/FluentInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Examples:
1212
* - Doctrine2's QueryBuilder works something like that example class below
1313
* - PHPUnit uses fluent interfaces to build mock objects
14+
* - Yii Framework: CDbCommand and CActiveRecord use this pattern too
1415
*
1516
*/
1617
class SQL

Registry/Registry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* Example:
1313
* - Zend Framework: Zend_Registry holds the application's logger object, front controller etc.
14+
* - Yii Framework: CWebApplication holds all the application components, such as CWebUser, CUrlManager, etc.
1415
*
1516
*/
1617

0 commit comments

Comments
 (0)