mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-01-18 05:58:16 +01:00
add wikipedia link
This commit is contained in:
parent
9fd800b9f6
commit
c609ef5952
@ -1,5 +1,5 @@
|
||||
Chain Of Responsibilities
|
||||
=========================
|
||||
Chain Of Responsibilities |Wikipedia|_
|
||||
======================================
|
||||
|
||||
Purpose:
|
||||
--------
|
||||
@ -67,3 +67,7 @@ Tests/ChainTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Command
|
||||
=======
|
||||
Command |Wikipedia|_
|
||||
====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -74,3 +74,7 @@ Tests/CommandTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Iterator
|
||||
========
|
||||
Iterator |Wikipedia|_
|
||||
=====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -67,3 +67,7 @@ Tests/IteratorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Mediator
|
||||
========
|
||||
Mediator |Wikipedia|_
|
||||
=====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -70,3 +70,7 @@ Tests/MediatorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Memento
|
||||
=======
|
||||
Memento |Wikipedia|_
|
||||
====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -65,3 +65,7 @@ Tests/MementoTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Null Object
|
||||
===========
|
||||
Null Object |Wikipedia|_
|
||||
========================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -72,3 +72,7 @@ Tests/LoggerTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Observer
|
||||
========
|
||||
Observer |Wikipedia|_
|
||||
=====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -55,3 +55,7 @@ Tests/ObserverTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -9,6 +9,7 @@ communication.
|
||||
* [Command](Command) [:notebook:](http://en.wikipedia.org/wiki/Command_pattern)
|
||||
* [Iterator](Iterator) [:notebook:](http://en.wikipedia.org/wiki/Iterator_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)
|
||||
* [Observer](Observer) [:notebook:](http://en.wikipedia.org/wiki/Observer_pattern)
|
||||
* [Specification](Specification) [:notebook:](http://en.wikipedia.org/wiki/Specification_pattern)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Specification
|
||||
=============
|
||||
Specification |Wikipedia|_
|
||||
==========================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -73,3 +73,7 @@ Tests/SpecificationTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
State
|
||||
=====
|
||||
State |Wikipedia|_
|
||||
==================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -54,3 +54,7 @@ Test
|
||||
----
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Strategy
|
||||
========
|
||||
Strategy |Wikipedia|_
|
||||
=====================
|
||||
|
||||
Terminology:
|
||||
------------
|
||||
@ -68,3 +68,7 @@ Tests/StrategyTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Template Method
|
||||
===============
|
||||
Template Method |Wikipedia|_
|
||||
============================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -61,3 +61,7 @@ Tests/JourneyTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Visitor
|
||||
=======
|
||||
Visitor |Wikipedia|_
|
||||
====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -65,3 +65,7 @@ Tests/VisitorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Abstract Factory
|
||||
================
|
||||
Abstract Factory |Wikipedia|_
|
||||
=============================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -91,3 +91,7 @@ Tests/AbstractFactoryTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Builder
|
||||
=======
|
||||
Builder |Wikipedia|_
|
||||
====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -102,3 +102,7 @@ Tests/DirectorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Factory Method
|
||||
==============
|
||||
Factory Method |Wikipedia|_
|
||||
===========================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -80,3 +80,7 @@ Tests/FactoryMethodTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Pool
|
||||
====
|
||||
Pool |Wikipedia|_
|
||||
=================
|
||||
|
||||
The **object pool pattern** is a software creational design pattern that
|
||||
uses a set of initialized objects kept ready to use – a "pool" – rather
|
||||
@ -67,3 +67,7 @@ Tests/PoolTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
||||
|
@ -1,5 +1,5 @@
|
||||
Prototype
|
||||
=========
|
||||
Prototype |Wikipedia|_
|
||||
======================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -53,3 +53,7 @@ Test
|
||||
----
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Singleton
|
||||
=========
|
||||
Singleton |Wikipedia|_
|
||||
======================
|
||||
|
||||
**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND
|
||||
MAINTAINABILITY USE DEPENDENCY INJECTION!**
|
||||
@ -47,3 +47,7 @@ Tests/SingletonTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Delegation
|
||||
==========
|
||||
Delegation |Wikipedia|_
|
||||
=======================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -51,3 +51,7 @@ Tests/DelegationTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Service Locator
|
||||
===============
|
||||
Service Locator |Wikipedia|_
|
||||
============================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -81,3 +81,7 @@ Tests/ServiceLocatorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Adapter / Wrapper
|
||||
=================
|
||||
Adapter / Wrapper |Wikipedia|_
|
||||
==============================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -68,3 +68,7 @@ Tests/AdapterTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Bridge
|
||||
======
|
||||
Bridge |Wikipedia|_
|
||||
===================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -71,3 +71,7 @@ Tests/BridgeTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Composite
|
||||
=========
|
||||
Composite |Wikipedia|_
|
||||
======================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -62,3 +62,7 @@ Tests/CompositeTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Data Mapper
|
||||
===========
|
||||
Data Mapper |Wikipedia|_
|
||||
========================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -57,3 +57,7 @@ Tests/DataMapperTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Decorator
|
||||
=========
|
||||
Decorator |Wikipedia|_
|
||||
======================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -65,3 +65,7 @@ Tests/DecoratorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Dependency Injection
|
||||
====================
|
||||
Dependency Injection |Wikipedia|_
|
||||
=================================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -85,3 +85,7 @@ Tests/config.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Facade
|
||||
======
|
||||
Facade |Wikipedia|_
|
||||
===================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -63,3 +63,7 @@ Tests/FacadeTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Fluent Interface
|
||||
================
|
||||
Fluent Interface |Wikipedia|_
|
||||
=============================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -43,3 +43,7 @@ Tests/FluentInterfaceTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Proxy
|
||||
=====
|
||||
Proxy |Wikipedia|_
|
||||
==================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -41,3 +41,7 @@ Test
|
||||
----
|
||||
|
||||
.. _`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
|
@ -1,5 +1,5 @@
|
||||
Registry
|
||||
========
|
||||
Registry |Wikipedia|_
|
||||
=====================
|
||||
|
||||
Purpose
|
||||
-------
|
||||
@ -44,3 +44,7 @@ Tests/RegistryTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`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
BIN
_static/Wikipedia-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
2
conf.py
2
conf.py
@ -223,7 +223,7 @@ latex_elements = {
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(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
|
||||
|
@ -19,9 +19,7 @@ Patterns
|
||||
--------
|
||||
|
||||
The patterns can be structured in roughly three different categories.
|
||||
Please click
|
||||
`here <http://en.wikipedia.org/wiki/Software_design_pattern>`__
|
||||
for a full explanation of the pattern on Wikipedia.
|
||||
Please click |Wikipedia|_ for a full explanation of the pattern on Wikipedia.
|
||||
|
||||
.. toctree::
|
||||
: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,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user