add wikipedia link

This commit is contained in:
Faust
2015-04-03 10:57:00 +02:00
parent 9fd800b9f6
commit c609ef5952
34 changed files with 188 additions and 64 deletions

View File

@ -1,5 +1,5 @@
Chain Of Responsibilities Chain Of Responsibilities |Wikipedia|_
========================= ======================================
Purpose: Purpose:
-------- --------
@ -67,3 +67,7 @@ Tests/ChainTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/ChainOfResponsibilities .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/ChainOfResponsibilities
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Chain_of_responsibility_pattern

View File

@ -1,5 +1,5 @@
Command Command |Wikipedia|_
======= ====================
Purpose Purpose
------- -------
@ -74,3 +74,7 @@ Tests/CommandTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Command .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Command
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Command_pattern

View File

@ -1,5 +1,5 @@
Iterator Iterator |Wikipedia|_
======== =====================
Purpose Purpose
------- -------
@ -67,3 +67,7 @@ Tests/IteratorTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Iterator .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Iterator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Iterator_pattern

View File

@ -1,5 +1,5 @@
Mediator Mediator |Wikipedia|_
======== =====================
Purpose Purpose
------- -------
@ -70,3 +70,7 @@ Tests/MediatorTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Mediator .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Mediator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Mediator_pattern

View File

@ -1,5 +1,5 @@
Memento Memento |Wikipedia|_
======= ====================
Purpose Purpose
------- -------
@ -65,3 +65,7 @@ Tests/MementoTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Memento .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Memento
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Memento_pattern

View File

@ -1,5 +1,5 @@
Null Object Null Object |Wikipedia|_
=========== ========================
Purpose Purpose
------- -------
@ -72,3 +72,7 @@ Tests/LoggerTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/NullObject .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/NullObject
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Null_Object_pattern

View File

@ -1,5 +1,5 @@
Observer Observer |Wikipedia|_
======== =====================
Purpose Purpose
------- -------
@ -55,3 +55,7 @@ Tests/ObserverTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Observer .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Observer
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Observer_pattern

View File

@ -9,6 +9,7 @@ communication.
* [Command](Command) [:notebook:](http://en.wikipedia.org/wiki/Command_pattern) * [Command](Command) [:notebook:](http://en.wikipedia.org/wiki/Command_pattern)
* [Iterator](Iterator) [:notebook:](http://en.wikipedia.org/wiki/Iterator_pattern) * [Iterator](Iterator) [:notebook:](http://en.wikipedia.org/wiki/Iterator_pattern)
* [Mediator](Mediator) [:notebook:](http://en.wikipedia.org/wiki/Mediator_pattern) * [Mediator](Mediator) [:notebook:](http://en.wikipedia.org/wiki/Mediator_pattern)
* [Memento](Behavioral/Memento) [:notebook:](http://en.wikipedia.org/wiki/Memento_pattern)
* [NullObject](NullObject) [:notebook:](http://en.wikipedia.org/wiki/Null_Object_pattern) * [NullObject](NullObject) [:notebook:](http://en.wikipedia.org/wiki/Null_Object_pattern)
* [Observer](Observer) [:notebook:](http://en.wikipedia.org/wiki/Observer_pattern) * [Observer](Observer) [:notebook:](http://en.wikipedia.org/wiki/Observer_pattern)
* [Specification](Specification) [:notebook:](http://en.wikipedia.org/wiki/Specification_pattern) * [Specification](Specification) [:notebook:](http://en.wikipedia.org/wiki/Specification_pattern)

View File

@ -1,5 +1,5 @@
Specification Specification |Wikipedia|_
============= ==========================
Purpose Purpose
------- -------
@ -73,3 +73,7 @@ Tests/SpecificationTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Specification_pattern

View File

@ -1,5 +1,5 @@
State State |Wikipedia|_
===== ==================
Purpose Purpose
------- -------
@ -54,3 +54,7 @@ Test
---- ----
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/State .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/State
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/State_pattern

View File

@ -1,5 +1,5 @@
Strategy Strategy |Wikipedia|_
======== =====================
Terminology: Terminology:
------------ ------------
@ -68,3 +68,7 @@ Tests/StrategyTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Strategy .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Strategy
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Strategy_pattern

View File

@ -1,5 +1,5 @@
Template Method Template Method |Wikipedia|_
=============== ============================
Purpose Purpose
------- -------
@ -61,3 +61,7 @@ Tests/JourneyTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/TemplateMethod .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/TemplateMethod
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Template_method_pattern

View File

@ -1,5 +1,5 @@
Visitor Visitor |Wikipedia|_
======= ====================
Purpose Purpose
------- -------
@ -65,3 +65,7 @@ Tests/VisitorTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Visitor .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Visitor
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Visitor_pattern

View File

@ -1,5 +1,5 @@
Abstract Factory Abstract Factory |Wikipedia|_
================ =============================
Purpose Purpose
------- -------
@ -91,3 +91,7 @@ Tests/AbstractFactoryTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/AbstractFactory .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/AbstractFactory
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Abstract_factory_pattern

View File

@ -1,5 +1,5 @@
Builder Builder |Wikipedia|_
======= ====================
Purpose Purpose
------- -------
@ -102,3 +102,7 @@ Tests/DirectorTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Builder .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Builder
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Builder_pattern

View File

@ -1,5 +1,5 @@
Factory Method Factory Method |Wikipedia|_
============== ===========================
Purpose Purpose
------- -------
@ -80,3 +80,7 @@ Tests/FactoryMethodTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/FactoryMethod .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/FactoryMethod
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Factory_method_pattern

View File

@ -1,5 +1,5 @@
Pool Pool |Wikipedia|_
==== =================
The **object pool pattern** is a software creational design pattern that The **object pool pattern** is a software creational design pattern that
uses a set of initialized objects kept ready to use a "pool" rather uses a set of initialized objects kept ready to use a "pool" rather
@ -67,3 +67,7 @@ Tests/PoolTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Pool .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Pool
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Object_pool_pattern

View File

@ -1,5 +1,5 @@
Prototype Prototype |Wikipedia|_
========= ======================
Purpose Purpose
------- -------
@ -53,3 +53,7 @@ Test
---- ----
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Prototype .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Prototype
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Prototype_pattern

View File

@ -1,5 +1,5 @@
Singleton Singleton |Wikipedia|_
========= ======================
**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND **THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND
MAINTAINABILITY USE DEPENDENCY INJECTION!** MAINTAINABILITY USE DEPENDENCY INJECTION!**
@ -47,3 +47,7 @@ Tests/SingletonTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Singleton .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Singleton
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Singleton_pattern

View File

@ -1,5 +1,5 @@
Delegation Delegation |Wikipedia|_
========== =======================
Purpose Purpose
------- -------
@ -51,3 +51,7 @@ Tests/DelegationTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/Delegation .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/Delegation
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Delegation_pattern

View File

@ -1,5 +1,5 @@
Service Locator Service Locator |Wikipedia|_
=============== ============================
Purpose Purpose
------- -------
@ -81,3 +81,7 @@ Tests/ServiceLocatorTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/ServiceLocator .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/ServiceLocator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Service_locator_pattern

View File

@ -1,5 +1,5 @@
Adapter / Wrapper Adapter / Wrapper |Wikipedia|_
================= ==============================
Purpose Purpose
------- -------
@ -68,3 +68,7 @@ Tests/AdapterTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Adapter .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Adapter
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Adapter_pattern

View File

@ -1,5 +1,5 @@
Bridge Bridge |Wikipedia|_
====== ===================
Purpose Purpose
------- -------
@ -71,3 +71,7 @@ Tests/BridgeTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Bridge .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Bridge
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Bridge_pattern

View File

@ -1,5 +1,5 @@
Composite Composite |Wikipedia|_
========= ======================
Purpose Purpose
------- -------
@ -62,3 +62,7 @@ Tests/CompositeTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Composite .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Composite
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Composite_pattern

View File

@ -1,5 +1,5 @@
Data Mapper Data Mapper |Wikipedia|_
=========== ========================
Purpose Purpose
------- -------
@ -57,3 +57,7 @@ Tests/DataMapperTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/DataMapper .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/DataMapper
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Data_mapper_pattern

View File

@ -1,5 +1,5 @@
Decorator Decorator |Wikipedia|_
========= ======================
Purpose Purpose
------- -------
@ -65,3 +65,7 @@ Tests/DecoratorTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Decorator .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Decorator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Decorator_pattern

View File

@ -1,5 +1,5 @@
Dependency Injection Dependency Injection |Wikipedia|_
==================== =================================
Purpose Purpose
------- -------
@ -85,3 +85,7 @@ Tests/config.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/DependencyInjection .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/DependencyInjection
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Dependency_injection

View File

@ -1,5 +1,5 @@
Facade Facade |Wikipedia|_
====== ===================
Purpose Purpose
------- -------
@ -63,3 +63,7 @@ Tests/FacadeTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Facade .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Facade
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Facade_pattern

View File

@ -1,5 +1,5 @@
Fluent Interface Fluent Interface |Wikipedia|_
================ =============================
Purpose Purpose
------- -------
@ -43,3 +43,7 @@ Tests/FluentInterfaceTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/FluentInterface .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/FluentInterface
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Fluent_interface

View File

@ -1,5 +1,5 @@
Proxy Proxy |Wikipedia|_
===== ==================
Purpose Purpose
------- -------
@ -41,3 +41,7 @@ Test
---- ----
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Proxy .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Proxy
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Proxy_pattern

View File

@ -1,5 +1,5 @@
Registry Registry |Wikipedia|_
======== =====================
Purpose Purpose
------- -------
@ -44,3 +44,7 @@ Tests/RegistryTest.php
:linenos: :linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Registry .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Registry
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Service_locator_pattern

BIN
_static/Wikipedia-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -223,7 +223,7 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(master_doc, 'DesignPatternsPHP.tex', u'DesignPatternsPHP Documentation', (master_doc, 'DesignPatternsPHP.tex', u'DesignPatternsPHP Documentation',
u'Dominik Liebler', 'manual'), u'Dominik Liebler with contributors', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of

View File

@ -19,9 +19,7 @@ Patterns
-------- --------
The patterns can be structured in roughly three different categories. The patterns can be structured in roughly three different categories.
Please click Please click |Wikipedia|_ for a full explanation of the pattern on Wikipedia.
`here <http://en.wikipedia.org/wiki/Software_design_pattern>`__
for a full explanation of the pattern on Wikipedia.
.. toctree:: .. toctree::
:titlesonly: :titlesonly:
@ -69,3 +67,8 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 20 px
:width: 20 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Software_design_pattern