mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 17:34:09 +02:00
Merge branch 'pr/107' into master
This commit is contained in:
@@ -10,3 +10,7 @@ To build a chain of objects to handle a call in sequential order. If one object
|
||||
* a Spam filter
|
||||
* 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.
|
||||
|
||||
## UML Diagram
|
||||
|
||||

|
||||
|
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Diagram>
|
||||
<ID>PHP</ID>
|
||||
<OriginalElement>\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler</OriginalElement>
|
||||
<nodes>
|
||||
<node x="54.5" y="0.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler</node>
|
||||
<node x="0.0" y="158.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\SlowStorage</node>
|
||||
<node x="154.0" y="158.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\FastStorage</node>
|
||||
<node x="304.0" y="45.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Request</node>
|
||||
</nodes>
|
||||
<notes />
|
||||
<edges>
|
||||
<edge source="\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\SlowStorage" target="\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler">
|
||||
<point x="0.0" y="-44.5" />
|
||||
<point x="67.0" y="133.0" />
|
||||
<point x="99.25" y="133.0" />
|
||||
<point x="-44.75" y="54.0" />
|
||||
</edge>
|
||||
<edge source="\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\FastStorage" target="\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler">
|
||||
<point x="0.0" y="-44.5" />
|
||||
<point x="221.0" y="133.0" />
|
||||
<point x="188.75" y="133.0" />
|
||||
<point x="44.75" y="54.0" />
|
||||
</edge>
|
||||
</edges>
|
||||
<settings layout="Hierarchic Group" zoom="1.0" x="188.0" y="123.5" />
|
||||
<SelectedNodes />
|
||||
<Categories>
|
||||
<Category>Fields</Category>
|
||||
<Category>Constants</Category>
|
||||
<Category>Constructors</Category>
|
||||
<Category>Methods</Category>
|
||||
</Categories>
|
||||
<VISIBILITY>private</VISIBILITY>
|
||||
</Diagram>
|
||||
|
BIN
Behavioral/ChainOfResponsibilities/uml/uml.png
Normal file
BIN
Behavioral/ChainOfResponsibilities/uml/uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
363
Behavioral/ChainOfResponsibilities/uml/uml.svg
Normal file
363
Behavioral/ChainOfResponsibilities/uml/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 48 KiB |
Reference in New Issue
Block a user