Trismegiste
3695a15150
more uses of iterator in PHP
2013-05-11 22:37:20 +02:00
Trismegiste
8120aae5a7
some typo and comments
2013-05-11 22:18:12 +02:00
Trismegiste
9238d294c5
Merge branch 'adapter-working-example'
2013-05-11 20:57:21 +02:00
Trismegiste
20433dd8a5
the test is the client
2013-05-11 20:56:47 +02:00
Trismegiste
9278f295b0
more real example
2013-05-11 20:54:21 +02:00
Trismegiste
2830e7d1be
first, the todos for fixing the pattern
2013-05-11 19:33:36 +02:00
kbariotis
4ff0def140
Added DataMapper files
2013-05-11 20:07:59 +03:00
Trismegiste
e7cbb668c3
Merge branch 'command-more-precise-example'
2013-05-11 17:34:30 +02:00
Trismegiste
d520e37d95
adding tests for the command pattern
2013-05-11 17:34:06 +02:00
Trismegiste
6f6e86ee48
adding the missing classes to show the real purpose of the pattern
2013-05-11 17:33:47 +02:00
Trismegiste
cc93827b8f
first, some comments
2013-05-11 16:57:41 +02:00
Trismegiste
e325cd9fe6
changing class name
2013-05-11 16:43:14 +02:00
Trismegiste
7dd0cb74c4
renaming new to old
2013-05-11 16:41:59 +02:00
Trismegiste
6f94fb5a78
removing complex example
2013-05-11 16:40:55 +02:00
Trismegiste
189f3c3814
Merge branch 'facade-a-more-abstract-example'
2013-05-11 16:21:24 +02:00
Trismegiste
22dbd54cbb
comments
2013-05-11 16:20:55 +02:00
Trismegiste
1d99a9e65a
test with mockup
2013-05-11 16:14:08 +02:00
Trismegiste
3aa38f2af8
more abstract example
2013-05-11 16:13:43 +02:00
Trismegiste
986aa7cf02
Merge branch 'iterator-a-simpler-example'
2013-05-11 14:46:41 +02:00
Trismegiste
aa8069fc45
a relevant example for iterator
2013-05-11 12:47:26 +02:00
Trismegiste
94edeede4e
Comments to explain how this example misses the point of the pattern
2013-05-11 12:01:06 +02:00
Trismegiste
44e03cae46
more test to show the key features of patterns
2013-05-11 10:49:44 +02:00
Trismegiste
661d7e80a3
todo test
2013-05-11 02:56:50 +02:00
Trismegiste
6b77eb71e6
spacing
2013-05-11 02:51:57 +02:00
Trismegiste
17429eb85a
Merge branch 'decorator-the-right-way'
2013-05-11 02:50:42 +02:00
Trismegiste
185baaae73
test decorator
2013-05-11 02:50:22 +02:00
Trismegiste
55017fb43f
fix PSR-0
2013-05-11 02:50:05 +02:00
Trismegiste
cfa9014906
fixing namespace
2013-05-11 02:07:29 +02:00
Trismegiste
97096bc23f
fixing the inheritance tree for decorator
2013-05-11 02:06:15 +02:00
Trismegiste
794139d47c
Merge branch 'composite-the-right-way'
2013-05-11 01:46:57 +02:00
Trismegiste
42dd2383c1
test for rendering with embedded form
2013-05-11 01:46:13 +02:00
Trismegiste
e70395c0a3
improving the render to show the tree with indentations
2013-05-11 01:36:57 +02:00
Trismegiste
007a2d6171
changing interface to improve rendering
2013-05-11 01:24:40 +02:00
Trismegiste
f76b8b1ab3
you MUST inherit from the component contract. If not, this is no longer a composite pattern
2013-05-11 01:22:18 +02:00
Trismegiste
6443fecebc
PSR-0 with tests
2013-05-11 01:17:22 +02:00
Trismegiste
5f457c2701
Merge branch 'factories-factories-everywhere'
2013-05-11 01:08:07 +02:00
Trismegiste
153445b5d0
comment and typo
2013-05-11 00:28:22 +02:00
Trismegiste
eebdbc1dc5
a REAL abstract factory not a helper-like full of static
2013-05-10 23:54:19 +02:00
Trismegiste
3a3937f339
typo
2013-05-10 21:49:22 +02:00
Trismegiste
d4ae3bcd8f
use constant instead of string
2013-05-10 21:29:43 +02:00
Trismegiste
cc765bde41
the REAL factory method pattern
2013-05-10 21:09:55 +02:00
Trismegiste
9b7330795d
(not design) pattern : simple factory
2013-05-10 20:22:43 +02:00
Trismegiste
87d4c9277d
test for static factory
2013-05-10 19:52:53 +02:00
Trismegiste
2bea1f390f
PSR-0 for Static Factory
2013-05-10 19:51:51 +02:00
Trismegiste
7ca8f615d7
the right place
2013-05-10 19:51:49 +02:00
Trismegiste
148bf4934d
light bootstrap for unit tests
2013-05-10 19:51:19 +02:00
Trismegiste
b82330941f
gitignore for netbeans
2013-05-10 19:12:02 +02:00
Dominik Liebler
cd2183b2a2
added Command pattern
2013-05-10 11:27:41 +02:00
Matt Iversen
b8381e5a60
Proper example of Decorator pattern
...
Previous example was simply implementing a strategy pattern.
A key problem is that WebService made clear that it did no actual output of its own - it handed it off to 'decorators'.
A decorator should always wrap a class that already has its own complete, self-contained functionality.
In this way, they only enhance / modify it. An instance that is non-decorated should work fully by itself.
Note the distinguishing difference between this and sub-classing - here the enhancement is added dynamically, at runtime, and to one instance.
With sub-classing, the enhancement is added at compile / parse time, and is applied to all instances / uses of the subclass.
2013-05-10 11:14:19 +02:00
Dominik Liebler
79c0808858
Merge pull request #11 from dave1010/patch-3
...
Fix PHPDoc in FactoryMethod
2013-05-10 02:07:37 -07:00