Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc2f33e

Browse files
author
Dominik Liebler
committed
Merge branch 'pr/107' into master
2 parents34c12b1 +1dabe3c commitbc2f33e

File tree

137 files changed

+14622
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+14622
-4
lines changed

‎Behavioral/ChainOfResponsibilities/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ To build a chain of objects to handle a call in sequential order. If one object
1010
* a Spam filter
1111
* Caching: first object is an instance of e.g. a Memcached Interface, if that "misses" it delegates the call to the database interface
1212
* 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.
13+
14+
##UML Diagram
15+
16+
![Alt ChainOfResponsibility UML Diagram](uml/uml.png)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Diagram>
3+
<ID>PHP</ID>
4+
<OriginalElement>\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler</OriginalElement>
5+
<nodes>
6+
<nodex="54.5"y="0.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler</node>
7+
<nodex="0.0"y="158.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\SlowStorage</node>
8+
<nodex="154.0"y="158.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\FastStorage</node>
9+
<nodex="304.0"y="45.0">\DesignPatterns\Behavioral\ChainOfResponsibilities\Request</node>
10+
</nodes>
11+
<notes />
12+
<edges>
13+
<edgesource="\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\SlowStorage"target="\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler">
14+
<pointx="0.0"y="-44.5" />
15+
<pointx="67.0"y="133.0" />
16+
<pointx="99.25"y="133.0" />
17+
<pointx="-44.75"y="54.0" />
18+
</edge>
19+
<edgesource="\DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible\FastStorage"target="\DesignPatterns\Behavioral\ChainOfResponsibilities\Handler">
20+
<pointx="0.0"y="-44.5" />
21+
<pointx="221.0"y="133.0" />
22+
<pointx="188.75"y="133.0" />
23+
<pointx="44.75"y="54.0" />
24+
</edge>
25+
</edges>
26+
<settingslayout="Hierarchic Group"zoom="1.0"x="188.0"y="123.5" />
27+
<SelectedNodes />
28+
<Categories>
29+
<Category>Fields</Category>
30+
<Category>Constants</Category>
31+
<Category>Constructors</Category>
32+
<Category>Methods</Category>
33+
</Categories>
34+
<VISIBILITY>private</VISIBILITY>
35+
</Diagram>
36+
10.5 KB
Loading

‎Behavioral/ChainOfResponsibilities/uml/uml.svg

Lines changed: 363 additions & 0 deletions
Loading

‎Behavioral/Command/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ Command can also be aggregated to combine more complex commands with minimum cop
1515
* A text editor : all events are Command which can be undone, stacked and saved.
1616
* Symfony2: SF2 Commands that can be run from the CLI are built with just the Command pattern in mind
1717
* big CLI tools use subcommands to distribute various tasks and pack them in "modules", each of these can be implemented with the Command pattern (e.g. vagrant)
18+
19+
##UML Diagram
20+
21+
![Alt Command UML Diagram](uml/uml.png)

‎Behavioral/Command/uml/Command.uml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Diagram>
3+
<ID>PHP</ID>
4+
<OriginalElement>\DesignPatterns\Behavioral\Command\HelloCommand</OriginalElement>
5+
<nodes>
6+
<nodex="185.0"y="15.0">\DesignPatterns\Behavioral\Command\Invoker</node>
7+
<nodex="0.0"y="97.0">\DesignPatterns\Behavioral\Command\HelloCommand</node>
8+
<nodex="189.0"y="139.0">\DesignPatterns\Behavioral\Command\Receiver</node>
9+
<nodex="10.0"y="0.0">\DesignPatterns\Behavioral\Command\CommandInterface</node>
10+
</nodes>
11+
<notes />
12+
<edges>
13+
<edgesource="\DesignPatterns\Behavioral\Command\HelloCommand"target="\DesignPatterns\Behavioral\Command\CommandInterface">
14+
<pointx="0.0"y="-44.5" />
15+
<pointx="0.0"y="23.5" />
16+
</edge>
17+
</edges>
18+
<settingslayout="Hierarchic Group"zoom="1.0"x="171.0"y="93.0" />
19+
<SelectedNodes />
20+
<Categories>
21+
<Category>Fields</Category>
22+
<Category>Constants</Category>
23+
<Category>Constructors</Category>
24+
<Category>Methods</Category>
25+
</Categories>
26+
<VISIBILITY>private</VISIBILITY>
27+
</Diagram>
28+

‎Behavioral/Command/uml/uml.png

9.96 KB
Loading

‎Behavioral/Command/uml/uml.svg

Lines changed: 366 additions & 0 deletions
Loading

‎Behavioral/Iterator/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ To make an object iterable and to make it appear like a collection of objects.
1111
##Note
1212

1313
Standard PHP Library (SPL) defines an interface Iterator which is best suited for this! Often you would want to implement the Countable interface too, to allow`count($object)` on your iterable object
14+
15+
##UML Diagram
16+
17+
![Alt Iterator UML Diagram](uml/uml.png)

‎Behavioral/Iterator/uml/Iterator.uml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Diagram>
3+
<ID>PHP</ID>
4+
<OriginalElement>\DesignPatterns\Behavioral\Iterator\Book</OriginalElement>
5+
<nodes>
6+
<nodex="30.0"y="239.0">\DesignPatterns\Behavioral\Iterator\BookListReverseIterator</node>
7+
<nodex="315.380829015544"y="226.96891191709844">\DesignPatterns\Behavioral\Iterator\BookList</node>
8+
<nodex="0.0"y="0.0">\DesignPatterns\Behavioral\Iterator\BookListIterator</node>
9+
<nodex="296.0"y="0.0">\DesignPatterns\Behavioral\Iterator\Book</node>
10+
</nodes>
11+
<notes />
12+
<edges>
13+
<edgesource="\DesignPatterns\Behavioral\Iterator\BookListReverseIterator"target="\DesignPatterns\Behavioral\Iterator\BookListIterator">
14+
<pointx="0.0"y="-64.5" />
15+
<pointx="0.0"y="94.5" />
16+
</edge>
17+
</edges>
18+
<settingslayout="Hierarchic Group"zoom="1.0"x="250.0"y="184.0" />
19+
<SelectedNodes />
20+
<Categories>
21+
<Category>Fields</Category>
22+
<Category>Constants</Category>
23+
<Category>Constructors</Category>
24+
<Category>Methods</Category>
25+
</Categories>
26+
<VISIBILITY>private</VISIBILITY>
27+
</Diagram>
28+

‎Behavioral/Iterator/uml/uml.png

14.7 KB
Loading

‎Behavioral/Iterator/uml/uml.svg

Lines changed: 638 additions & 0 deletions
Loading

‎Behavioral/Mediator/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ like a controller (but not in the sense of the MVC).
99
All components (called Colleague) are only coupled to the MediatorInterface and
1010
it is a good thing because in OOP, one good friend is better than many. This
1111
is the key-feature of this pattern.
12+
13+
##UML Diagram
14+
15+
![Alt Mediator UML Diagram](uml/uml.png)

‎Behavioral/Mediator/uml/Mediator.uml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Diagram>
3+
<ID>PHP</ID>
4+
<OriginalElement>\DesignPatterns\Behavioral\Mediator\Colleague</OriginalElement>
5+
<nodes>
6+
<nodex="196.3419689119171"y="221.44559585492226">\DesignPatterns\Behavioral\Mediator\Subsystem\Database</node>
7+
<nodex="-347.65803108808296"y="7.461139896373059">\DesignPatterns\Behavioral\Mediator\MediatorInterface</node>
8+
<nodex="55.34196891191709"y="211.44559585492226">\DesignPatterns\Behavioral\Mediator\Subsystem\Client</node>
9+
<nodex="-353.65803108808296"y="144.46113989637306">\DesignPatterns\Behavioral\Mediator\Mediator</node>
10+
<nodex="-65.65803108808291"y="221.44559585492226">\DesignPatterns\Behavioral\Mediator\Subsystem\Server</node>
11+
<nodex="38.84196891191709"y="72.44559585492226">\DesignPatterns\Behavioral\Mediator\Colleague</node>
12+
</nodes>
13+
<notes />
14+
<edges>
15+
<edgesource="\DesignPatterns\Behavioral\Mediator\Subsystem\Server"target="\DesignPatterns\Behavioral\Mediator\Colleague">
16+
<pointx="0.0"y="-23.5" />
17+
<pointx="-15.158031088082907"y="186.44559585492226" />
18+
<pointx="64.50863557858375"y="186.44559585492226" />
19+
<pointx="-51.333333333333336"y="44.5" />
20+
</edge>
21+
<edgesource="\DesignPatterns\Behavioral\Mediator\Mediator"target="\DesignPatterns\Behavioral\Mediator\MediatorInterface">
22+
<pointx="0.0"y="-84.0" />
23+
<pointx="0.0"y="43.5" />
24+
</edge>
25+
<edgesource="\DesignPatterns\Behavioral\Mediator\Subsystem\Client"target="\DesignPatterns\Behavioral\Mediator\Colleague">
26+
<pointx="0.0"y="-33.5" />
27+
<pointx="0.0"y="44.5" />
28+
</edge>
29+
<edgesource="\DesignPatterns\Behavioral\Mediator\Subsystem\Database"target="\DesignPatterns\Behavioral\Mediator\Colleague">
30+
<pointx="0.0"y="-23.5" />
31+
<pointx="247.8419689119171"y="186.44559585492226" />
32+
<pointx="167.17530224525044"y="186.44559585492226" />
33+
<pointx="51.33333333333334"y="44.5" />
34+
</edge>
35+
</edges>
36+
<settingslayout="Hierarchic Group"zoom="1.0"x="-27.0"y="160.0" />
37+
<SelectedNodes />
38+
<Categories>
39+
<Category>Fields</Category>
40+
<Category>Constants</Category>
41+
<Category>Constructors</Category>
42+
<Category>Methods</Category>
43+
</Categories>
44+
<VISIBILITY>private</VISIBILITY>
45+
</Diagram>
46+

‎Behavioral/Mediator/uml/uml.png

20.2 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp