mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-29 11:10:19 +02:00
removed outdated template
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:1
|
||||
msgid "Chain Of Responsibilities"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:7
|
||||
msgid ""
|
||||
"To build a chain of objects to handle a call in sequential order. If one "
|
||||
"object cannot handle a call, it delegates the call to the next in the "
|
||||
"chain and so forth."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:11
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:14
|
||||
msgid ""
|
||||
"Logging framework: where each chain element decides autonomously what "
|
||||
"to do with a log message."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:16
|
||||
msgid "A Spam filter."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:17
|
||||
msgid ""
|
||||
"Caching: first object is an instance of e.g. a Memcached Interface, "
|
||||
"if that \"misses\" it delegates the call to the database interface."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:19
|
||||
msgid ""
|
||||
"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."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:24
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:28
|
||||
msgid "Alt ChainOfResponsibility UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:31
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:34
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:54
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,81 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:1
|
||||
msgid "Command"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:7
|
||||
msgid "To encapsulate invocation and decoupling."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:9
|
||||
msgid ""
|
||||
"We have an Invoker and a Receiver. This pattern uses a \"Command\" to "
|
||||
"delegate the method call against the Receiver and presents the same "
|
||||
"method \"execute\". Therefore, the Invoker just knows to call \"execute\" to "
|
||||
"process the Command of the client. The Receiver is decoupled from the "
|
||||
"Invoker."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:15
|
||||
msgid ""
|
||||
"The second aspect of this pattern is the undo(), which undoes the method "
|
||||
"execute(). Command can also be aggregated to combine more complex "
|
||||
"commands with minimum copy-paste and relying on composition over "
|
||||
"inheritance."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:20
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:23
|
||||
msgid ""
|
||||
"A text editor : all events are Command which can be undone, stacked "
|
||||
"and saved."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:25
|
||||
msgid ""
|
||||
"Symfony2: SF2 Commands that can be run from the CLI are built with "
|
||||
"just the Command pattern in mind."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:27
|
||||
msgid ""
|
||||
"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)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:31
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:35
|
||||
msgid "Alt Command UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:38
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:41
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Command/README.rst:67
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,63 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:1
|
||||
msgid "Iterator"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:7
|
||||
msgid "To make an object iterable and to make it appear like a collection of objects."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:10
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:13
|
||||
msgid ""
|
||||
"To process a file line by line by just running over all lines (which "
|
||||
"have an object representation) for a file (which of course is an "
|
||||
"object, too)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:17
|
||||
msgid "Note"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:20
|
||||
msgid ""
|
||||
"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."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:24
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:28
|
||||
msgid "Alt Iterator UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:31
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:34
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Iterator/README.rst:60
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,51 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:1
|
||||
msgid "Mediator"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:7
|
||||
msgid ""
|
||||
"This pattern provides an easy way to decouple many components working "
|
||||
"together. It is a good alternative to Observer IF you have a \"central "
|
||||
"intelligence\", like a controller (but not in the sense of the MVC)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:11
|
||||
msgid ""
|
||||
"All components (called Colleague) are only coupled to the "
|
||||
"MediatorInterface and it is a good thing because in OOP, one good friend "
|
||||
"is better than many. This is the key-feature of this pattern."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:15
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:19
|
||||
msgid "Alt Mediator UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:22
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:25
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Mediator/README.rst:63
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,99 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:1
|
||||
msgid "Memento"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:7
|
||||
msgid ""
|
||||
"It provides the ability to restore an object to it's previous state (undo "
|
||||
"via rollback) or to gain access to state of the object, without revealing "
|
||||
"it's implementation (i.e., the object is not required to have a function "
|
||||
"to return the current state)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:12
|
||||
msgid ""
|
||||
"The memento pattern is implemented with three objects: the Originator, a "
|
||||
"Caretaker and a Memento."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:15
|
||||
msgid ""
|
||||
"Memento – an object that *contains a concrete unique snapshot of state* of "
|
||||
"any object or resource: string, number, array, an instance of class and so on. "
|
||||
"The uniqueness in this case does not imply the prohibition existence of similar "
|
||||
"states in different snapshots. That means the state can be extracted as "
|
||||
"the independent clone. Any object stored in the Memento should be "
|
||||
"*a full copy of the original object rather than a reference* to the original "
|
||||
"object. The Memento object is a \"opaque object\" (the object that no one can "
|
||||
"or should change)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:24
|
||||
msgid ""
|
||||
"Originator – it is an object that contains the *actual state of an external "
|
||||
"object is strictly specified type*. Originator is able to create a unique "
|
||||
"copy of this state and return it wrapped in a Memento. The Originator does "
|
||||
"not know the history of changes. You can set a concrete state to Originator "
|
||||
"from the outside, which will be considered as actual. The Originator must "
|
||||
"make sure that given state corresponds the allowed type of object. Originator "
|
||||
"may (but not should) have any methods, but they *they can't make changes to "
|
||||
"the saved object state*."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:33
|
||||
msgid ""
|
||||
"Caretaker *controls the states history*. He may make changes to an object; "
|
||||
"take a decision to save the state of an external object in the Originator; "
|
||||
"ask from the Originator snapshot of the current state; or set the Originator "
|
||||
"state to equivalence with some snapshot from history."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:38
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:41
|
||||
msgid "The seed of a pseudorandom number generator."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:42
|
||||
msgid "The state in a finite state machine."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:43
|
||||
msgid "Control for intermediate states of `ORM Model <http://en.wikipedia.org/wiki/Object-relational_mapping>`_ before saving."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:45
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:49
|
||||
msgid "Alt Memento UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:52
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:55
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Memento/README.rst:75
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,85 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:1
|
||||
msgid "Null Object"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:7
|
||||
msgid ""
|
||||
"NullObject is not a GoF design pattern but a schema which appears "
|
||||
"frequently enough to be considered a pattern. It has the following "
|
||||
"benefits:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:11
|
||||
msgid "Client code is simplified."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:12
|
||||
msgid "Reduces the chance of null pointer exceptions."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:13
|
||||
msgid "Fewer conditionals require less test cases."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:15
|
||||
msgid ""
|
||||
"Methods that return an object or null should instead return an object or "
|
||||
"``NullObject``. ``NullObject``\ s simplify boilerplate code such as "
|
||||
"``if (!is_null($obj)) { $obj->callSomething(); }`` to just "
|
||||
"``$obj->callSomething();`` by eliminating the conditional check in "
|
||||
"client code."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:21
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:24
|
||||
msgid "Symfony2: null logger of profiler."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:25
|
||||
msgid "Symfony2: null output in Symfony/Console."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:26
|
||||
msgid "null handler in a Chain of Responsibilities pattern."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:27
|
||||
msgid "null command in a Command pattern."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:29
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:33
|
||||
msgid "Alt NullObject UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:36
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:39
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/NullObject/README.rst:65
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,63 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:1
|
||||
msgid "Observer"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:7
|
||||
msgid ""
|
||||
"To implement a publish/subscribe behaviour to an object, whenever a "
|
||||
"\"Subject\" object changes its state, the attached \"Observers\" will be "
|
||||
"notified. It is used to shorten the amount of coupled objects and uses "
|
||||
"loose coupling instead."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:12
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:15
|
||||
msgid "A message queue system is observed to show the progress of a job in a GUI."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:17
|
||||
msgid "Note"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:20
|
||||
msgid ""
|
||||
"PHP already defines two interfaces that can help to implement this "
|
||||
"pattern: SplObserver and SplSubject."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:23
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:27
|
||||
msgid "Alt Observer UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:30
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:33
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Observer/README.rst:47
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,21 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/README.rst:1
|
||||
msgid "Behavioral"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/README.rst:4
|
||||
msgid ""
|
||||
"In software engineering, behavioral design patterns are design patterns "
|
||||
"that identify common communication patterns between objects and realize "
|
||||
"these patterns. By doing so, these patterns increase flexibility in "
|
||||
"carrying out this communication."
|
||||
msgstr ""
|
@@ -1,49 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:1
|
||||
msgid "Specification"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:7
|
||||
msgid ""
|
||||
"Builds a clear specification of business rules, where objects can be "
|
||||
"checked against. The composite specification class has one method called "
|
||||
"``isSatisfiedBy`` that returns either true or false depending on whether "
|
||||
"the given object satisfies the specification."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:12
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:17
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:21
|
||||
msgid "Alt Specification UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:24
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:27
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Specification/README.rst:65
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,44 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/State/README.rst:1
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:7
|
||||
msgid ""
|
||||
"Encapsulate varying behavior for the same routine based on an object's "
|
||||
"state. This can be a cleaner way for an object to change its behavior at "
|
||||
"runtime without resorting to large monolithic conditional statements."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:11
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:15
|
||||
msgid "Alt State UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:18
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:21
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/State/README.rst:53
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,70 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:1 ../../Behavioral/Strategy/README.rst:8
|
||||
msgid "Strategy"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:4
|
||||
msgid "Terminology"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:7
|
||||
msgid "Context"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:9
|
||||
msgid "Concrete Strategy"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:11
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:14
|
||||
msgid ""
|
||||
"To separate strategies and to enable fast switching between them. Also "
|
||||
"this pattern is a good alternative to inheritance (instead of having an "
|
||||
"abstract class that is extended)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:18
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:21
|
||||
msgid "Sorting a list of objects, one strategy by date, the other by id."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:22
|
||||
msgid ""
|
||||
"Simplify unit testing: e.g. switching between file and in-memory "
|
||||
"storage."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:25
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:29
|
||||
msgid "Alt Strategy UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:32
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:35
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Strategy/README.rst:61
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,68 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:1
|
||||
msgid "Template Method"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:7
|
||||
msgid "Template Method is a behavioral design pattern."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:9
|
||||
msgid ""
|
||||
"Perhaps you have encountered it many times already. The idea is to let "
|
||||
"subclasses of this abstract template \"finish\" the behavior of an "
|
||||
"algorithm."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:13
|
||||
msgid ""
|
||||
"A.k.a the \"Hollywood Principle\": \"Don't call us, we call you.\" This "
|
||||
"class is not called by subclasses but the inverse. How? With abstraction "
|
||||
"of course."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:17
|
||||
msgid ""
|
||||
"In other words, this is a skeleton of algorithm, well-suited for "
|
||||
"framework libraries. The user has just to implement one method and the "
|
||||
"superclass does the job."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:21
|
||||
msgid ""
|
||||
"It is an easy way to decouple concrete classes and reduce copy-paste, "
|
||||
"that's why you'll find it everywhere."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:24
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:28
|
||||
msgid "Alt TemplateMethod UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:31
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:34
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/TemplateMethod/README.rst:54
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,52 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:1
|
||||
msgid "Visitor"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:7
|
||||
msgid ""
|
||||
"The Visitor Pattern lets you outsource operations on objects to other "
|
||||
"objects. The main reason to do this is to keep a separation of concerns. "
|
||||
"But classes have to define a contract to allow visitors (the "
|
||||
"``Role::accept`` method in the example)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:12
|
||||
msgid ""
|
||||
"The contract is an abstract class but you can have also a clean "
|
||||
"interface. In that case, each Visitor has to choose itself which method "
|
||||
"to invoke on the visitor."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:16
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:20
|
||||
msgid "Alt Visitor UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:23
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:26
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Behavioral/Visitor/README.rst:58
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,45 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:1
|
||||
msgid "Abstract Factory"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:7
|
||||
msgid ""
|
||||
"To create series of related or dependent objects without specifying "
|
||||
"their concrete classes. Usually the created classes all implement the "
|
||||
"same interface. The client of the abstract factory does not care about "
|
||||
"how these objects are created, he just knows how they go together."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:12
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:16
|
||||
msgid "Alt AbstractFactory UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:19
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:22
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/AbstractFactory/README.rst:60
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,67 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/Builder/README.rst:1
|
||||
msgid "Builder"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:7
|
||||
msgid "Builder is an interface that build parts of a complex object."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:9
|
||||
msgid ""
|
||||
"Sometimes, if the builder has a better knowledge of what it builds, this "
|
||||
"interface could be an abstract class with default methods (aka adapter)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:12
|
||||
msgid ""
|
||||
"If you have a complex inheritance tree for objects, it is logical to "
|
||||
"have a complex inheritance tree for builders too."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:15
|
||||
msgid ""
|
||||
"Note: Builders have often a fluent interface, see the mock builder of "
|
||||
"PHPUnit for example."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:18
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:21
|
||||
msgid "PHPUnit: Mock Builder"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:23
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:27
|
||||
msgid "Alt Builder UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:30
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:33
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Builder/README.rst:95
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,60 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:1
|
||||
msgid "Factory Method"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:7
|
||||
msgid ""
|
||||
"The good point over the SimpleFactory is you can subclass it to "
|
||||
"implement different ways to create objects."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:10
|
||||
msgid "For simple case, this abstract class could be just an interface."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:12
|
||||
msgid ""
|
||||
"This pattern is a \"real\" Design Pattern because it achieves the "
|
||||
"\"Dependency Inversion Principle\" a.k.a the \"D\" in S.O.L.I.D principles."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:15
|
||||
msgid ""
|
||||
"It means the FactoryMethod class depends on abstractions, not concrete "
|
||||
"classes. This is the real trick compared to SimpleFactory or "
|
||||
"StaticFactory."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:19
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:23
|
||||
msgid "Alt FactoryMethod UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:26
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:29
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/FactoryMethod/README.rst:73
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,61 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:1
|
||||
msgid "Multiton"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:4
|
||||
msgid ""
|
||||
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
|
||||
"MAINTAINABILITY USE DEPENDENCY INJECTION!**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:7
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:10
|
||||
msgid ""
|
||||
"To have only a list of named instances that are used, like a singleton "
|
||||
"but with n instances."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:13
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:16
|
||||
msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:17
|
||||
msgid "multiple Loggers (one for debug messages, one for errors)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:19
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:23
|
||||
msgid "Alt Multiton UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:26
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:29
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Multiton/README.rst:37
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,66 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/Pool/README.rst:1
|
||||
msgid "Pool"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:7
|
||||
msgid ""
|
||||
"The **object pool pattern** is a software creational design pattern that "
|
||||
"uses a set of initialized objects kept ready to use – a \"pool\" – rather "
|
||||
"than allocating and destroying them on demand. A client of the pool will "
|
||||
"request an object from the pool and perform operations on the returned "
|
||||
"object. When the client has finished, it returns the object, which is a "
|
||||
"specific type of factory object, to the pool rather than destroying it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:14
|
||||
msgid ""
|
||||
"Object pooling can offer a significant performance boost in situations "
|
||||
"where the cost of initializing a class instance is high, the rate of "
|
||||
"instantiation of a class is high, and the number of instances in use at "
|
||||
"any one time is low. The pooled object is obtained in predictable time "
|
||||
"when creation of the new objects (especially over network) may take "
|
||||
"variable time."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:21
|
||||
msgid ""
|
||||
"However these benefits are mostly true for objects that are expensive "
|
||||
"with respect to time, such as database connections, socket connections, "
|
||||
"threads and large graphic objects like fonts or bitmaps. In certain "
|
||||
"situations, simple object pooling (that hold no external resources, but "
|
||||
"only occupy memory) may not be efficient and could decrease performance."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:27
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:31
|
||||
msgid "Alt Pool UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:34
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:37
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Pool/README.rst:51
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,53 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:1
|
||||
msgid "Prototype"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:7
|
||||
msgid ""
|
||||
"To avoid the cost of creating objects the standard way (new Foo()) and "
|
||||
"instead create a prototype and clone it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:10
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:13
|
||||
msgid ""
|
||||
"Large amounts of data (e.g. create 1,000,000 rows in a database at "
|
||||
"once via a ORM)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:16
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:20
|
||||
msgid "Alt Prototype UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:23
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:26
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Prototype/README.rst:46
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,23 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/README.rst:1
|
||||
msgid "Creational"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/README.rst:4
|
||||
msgid ""
|
||||
"In software engineering, creational design patterns are design patterns "
|
||||
"that deal with object creation mechanisms, trying to create objects in a "
|
||||
"manner suitable to the situation. The basic form of object creation "
|
||||
"could result in design problems or added complexity to the design. "
|
||||
"Creational design patterns solve this problem by somehow controlling "
|
||||
"this object creation."
|
||||
msgstr ""
|
@@ -1,55 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:1
|
||||
msgid "Simple Factory"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:7
|
||||
msgid "SimpleFactory is a simple factory pattern."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:9
|
||||
msgid ""
|
||||
"It differs from the static factory because it is not static. "
|
||||
"Therefore, you can have multiple factories, differently parameterized, you can subclass it and you can mock it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:11
|
||||
msgid "It always should be preferred over a static factory!"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:13
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:17
|
||||
msgid "Alt SimpleFactory UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:20
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:23
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:43
|
||||
msgid "Usage"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/SimpleFactory/README.rst:52
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,69 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:1
|
||||
msgid "Singleton"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:4
|
||||
msgid ""
|
||||
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
|
||||
"MAINTAINABILITY USE DEPENDENCY INJECTION!**"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:7
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:10
|
||||
msgid ""
|
||||
"To have only one instance of this object in the application that will "
|
||||
"handle all calls."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:13
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:16
|
||||
msgid "DB Connector"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:17
|
||||
msgid ""
|
||||
"Logger (may also be a Multiton if there are many log files for "
|
||||
"several purposes)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:19
|
||||
msgid ""
|
||||
"Lock file for the application (there is only one in the filesystem "
|
||||
"...)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:22
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:26
|
||||
msgid "Alt Singleton UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:29
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:32
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/Singleton/README.rst:40
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,56 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:1
|
||||
msgid "Static Factory"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:7
|
||||
msgid ""
|
||||
"Similar to the AbstractFactory, this pattern is used to create series of "
|
||||
"related or dependent objects. The difference between this and the "
|
||||
"abstract factory pattern is that the static factory pattern uses just "
|
||||
"one static method to create all types of objects it can create. It is "
|
||||
"usually named ``factory`` or ``build``."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:13
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:16
|
||||
msgid ""
|
||||
"Zend Framework: ``Zend_Cache_Backend`` or ``_Frontend`` use a factory "
|
||||
"method create cache backends or frontends"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:19
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:23
|
||||
msgid "Alt StaticFactory UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:26
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:29
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Creational/StaticFactory/README.rst:55
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,54 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../More/Delegation/README.rst:1
|
||||
msgid "Delegation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:7
|
||||
msgid ""
|
||||
"Demonstrate the Delegator pattern, where an object, instead of performing one "
|
||||
"of its stated tasks, delegates that task to an associated helper object. In "
|
||||
"this case TeamLead professes to writeCode and Usage uses this, while TeamLead "
|
||||
"delegates writeCode to JuniorDeveloper's writeBadCode function. This inverts "
|
||||
"the responsibility so that Usage is unknowingly executing writeBadCode."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:13
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:16
|
||||
msgid "Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to see it all tied together."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:18
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:22
|
||||
msgid "Alt Delegation UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:25
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:28
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Delegation/README.rst:42
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,49 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../More/EAV/README.rst:1
|
||||
msgid "Entity-Attribute-Value (EAV)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:4
|
||||
msgid "The Entity–attribute–value (EAV) pattern in order to implement EAV model with PHP."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:6
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:9
|
||||
msgid ""
|
||||
"The Entity–attribute–value (EAV) model is a data model to describe entities "
|
||||
"where the number of attributes (properties, parameters) that can be used "
|
||||
"to describe them is potentially vast, but the number that will actually apply "
|
||||
"to a given entity is relatively modest."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:14
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:18
|
||||
msgid "EAV UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:21
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:24
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/EAV/README.rst:44
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,13 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../More/README.rst:1
|
||||
msgid "More"
|
||||
msgstr ""
|
@@ -1,62 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../More/Repository/README.rst:1
|
||||
msgid "Repository"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:7
|
||||
msgid ""
|
||||
"Mediates between the domain and data mapping layers using a "
|
||||
"collection-like interface for accessing domain objects. Repository "
|
||||
"encapsulates the set of objects persisted in a data store and the "
|
||||
"operations performed over them, providing a more object-oriented view of "
|
||||
"the persistence layer. Repository also supports the objective of "
|
||||
"achieving a clean separation and one-way dependency between the domain "
|
||||
"and data mapping layers."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:15
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:18
|
||||
msgid ""
|
||||
"Doctrine 2 ORM: there is Repository that mediates between Entity and "
|
||||
"DBAL and contains methods to retrieve objects"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:20
|
||||
msgid "Laravel Framework"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:22
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:26
|
||||
msgid "Alt Repository UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:29
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:32
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/Repository/README.rst:52
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,67 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:1
|
||||
msgid "Service Locator"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:7
|
||||
msgid ""
|
||||
"To implement a loosely coupled architecture in order to get better "
|
||||
"testable, maintainable and extendable code. DI pattern and Service "
|
||||
"Locator pattern are an implementation of the Inverse of Control pattern."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:11
|
||||
msgid "Usage"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:14
|
||||
msgid ""
|
||||
"With ``ServiceLocator`` you can register a service for a given "
|
||||
"interface. By using the interface you can retrieve the service and use "
|
||||
"it in the classes of the application without knowing its implementation. "
|
||||
"You can configure and inject the Service Locator object on bootstrap."
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:19
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:22
|
||||
msgid ""
|
||||
"Zend Framework 2 uses Service Locator to create and share services "
|
||||
"used in the framework(i.e. EventManager, ModuleManager, all custom "
|
||||
"user services provided by modules, etc...)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:26
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:30
|
||||
msgid "Alt ServiceLocator UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:33
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:36
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../More/ServiceLocator/README.rst:50
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,71 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../README.rst:4
|
||||
msgid "DesignPatternsPHP"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:9
|
||||
msgid "Documentation Status"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:11
|
||||
msgid ""
|
||||
"This is a collection of known `design patterns`_ and some sample code how "
|
||||
"to implement them in PHP. Every pattern has a small list of examples "
|
||||
"(most of them from Zend Framework, Symfony2 or Doctrine2 as I'm most "
|
||||
"familiar with this software)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:16
|
||||
msgid ""
|
||||
"I think the problem with patterns is that often people do know them but "
|
||||
"don't know when to apply which."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:19
|
||||
msgid "Patterns"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:22
|
||||
msgid ""
|
||||
"The patterns can be structured in roughly three different categories. "
|
||||
"Please click on **the title of every pattern's page** for a full explanation "
|
||||
"of the pattern on Wikipedia."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:34
|
||||
msgid "Contribute"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:37
|
||||
msgid ""
|
||||
"If you encounter any bugs or missing translations, please feel free "
|
||||
"to fork and send a pull request with your changes. "
|
||||
"To establish a consistent code quality, please check your code using "
|
||||
"`PHP CodeSniffer`_ against `PSR2 standard`_ "
|
||||
"using ``./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor .``."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:69
|
||||
msgid "`design patterns`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:70
|
||||
msgid "`PHP CodeSniffer`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:71
|
||||
msgid "`PSR2 standard`"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README.rst:73
|
||||
msgid "`contributors`"
|
||||
msgstr ""
|
@@ -1,59 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:1
|
||||
msgid "Adapter"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:7
|
||||
msgid ""
|
||||
"To translate one interface for a class into a compatible interface. An "
|
||||
"adapter allows classes to work together that normally could not because "
|
||||
"of incompatible interfaces by providing its interface to clients while "
|
||||
"using the original interface."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:12
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:15
|
||||
msgid "DB Client libraries adapter"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:16
|
||||
msgid ""
|
||||
"using multiple different webservices and adapters normalize data so "
|
||||
"that the outcome is the same for all"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:19
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:23
|
||||
msgid "Alt Adapter UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:26
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:29
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Adapter/README.rst:61
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,53 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:1
|
||||
msgid "Bridge"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:7
|
||||
msgid ""
|
||||
"Decouple an abstraction from its implementation so that the two can vary "
|
||||
"independently."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:10
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:13
|
||||
msgid ""
|
||||
"`Symfony "
|
||||
"DoctrineBridge <https://github.com/symfony/DoctrineBridge>`__"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:16
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:20
|
||||
msgid "Alt Bridge UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:23
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:26
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Bridge/README.rst:58
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,60 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Composite/README.rst:1
|
||||
msgid "Composite"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:7
|
||||
msgid ""
|
||||
"To treat a group of objects the same way as a single instance of the "
|
||||
"object."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:10
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:13
|
||||
msgid ""
|
||||
"a form class instance handles all its form elements like a single "
|
||||
"instance of the form, when ``render()`` is called, it subsequently "
|
||||
"runs through all its child elements and calls ``render()`` on them"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:16
|
||||
msgid ""
|
||||
"``Zend_Config``: a tree of configuration options, each one is a "
|
||||
"``Zend_Config`` object itself"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:19
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:23
|
||||
msgid "Alt Composite UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:26
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:29
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Composite/README.rst:55
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,66 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/DataMapper/README.rst:1
|
||||
msgid "Data Mapper"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:7
|
||||
msgid ""
|
||||
"A Data Mapper, is a Data Access Layer that performs bidirectional "
|
||||
"transfer of data between a persistent data store (often a relational "
|
||||
"database) and an in memory data representation (the domain layer). The "
|
||||
"goal of the pattern is to keep the in memory representation and the "
|
||||
"persistent data store independent of each other and the data mapper "
|
||||
"itself. The layer is composed of one or more mappers (or Data Access "
|
||||
"Objects), performing the data transfer. Mapper implementations vary in "
|
||||
"scope. Generic mappers will handle many different domain entity types, "
|
||||
"dedicated mappers will handle one or a few."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:17
|
||||
msgid ""
|
||||
"The key point of this pattern is, unlike Active Record pattern, the data "
|
||||
"model follows Single Responsibility Principle."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:20
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:23
|
||||
msgid ""
|
||||
"DB Object Relational Mapper (ORM) : Doctrine2 uses DAO named as "
|
||||
"\"EntityRepository\""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:26
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:30
|
||||
msgid "Alt DataMapper UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:33
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:36
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DataMapperREADME.rst:56
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,99 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:1
|
||||
msgid "Decorator"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:7
|
||||
msgid "To dynamically add new functionality to class instances."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:9
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:12
|
||||
msgid "Zend Framework: decorators for ``Zend_Form_Element`` instances"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:13
|
||||
msgid ""
|
||||
"Web Service Layer: Decorators JSON and XML for a REST service (in "
|
||||
"this case, only one of these should be allowed of course)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:16
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:20
|
||||
msgid "Alt Decorator UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:23
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:26
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:58
|
||||
msgid "Test"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Decorator/README.rst:
|
||||
msgid ""
|
||||
msgstr ""
|
@@ -1,74 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:1
|
||||
msgid "Dependency Injection"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:7
|
||||
msgid ""
|
||||
"To implement a loosely coupled architecture in order to get better "
|
||||
"testable, maintainable and extendable code."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:10
|
||||
msgid "Usage"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:13
|
||||
msgid ""
|
||||
"``DatabaseConfiguration`` gets injected and ``DatabaseConnection`` will get all that it "
|
||||
"needs from ``$config``. Without DI, the configuration would be created "
|
||||
"directly in ``DatabaseConnection``, which is not very good for testing and "
|
||||
"extending it."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:18
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:21
|
||||
msgid ""
|
||||
"The Doctrine2 ORM uses dependency injection e.g. for configuration "
|
||||
"that is injected into a ``Connection`` object. For testing purposes, "
|
||||
"one can easily create a mock object of the configuration and inject "
|
||||
"that into the ``Connection`` object"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:25
|
||||
msgid ""
|
||||
"Symfony and Zend Framework 2 already have containers for DI that "
|
||||
"create objects via a configuration array and inject them where needed "
|
||||
"(i.e. in Controllers)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:29
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:33
|
||||
msgid "Alt DependencyInjection UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:36
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:39
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/DependencyInjection/README.rst:53
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,73 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Facade/README.rst:1
|
||||
msgid "Facade"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:7
|
||||
msgid ""
|
||||
"The primary goal of a Facade Pattern is not to avoid you to read the "
|
||||
"manual of a complex API. It's only a side-effect. The first goal is to "
|
||||
"reduce coupling and follow the Law of Demeter."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:11
|
||||
msgid ""
|
||||
"A Facade is meant to decouple a client and a sub-system by embedding "
|
||||
"many (but sometimes just one) interface, and of course to reduce "
|
||||
"complexity."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:15
|
||||
msgid "A facade does not forbid you the access to the sub-system"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:16
|
||||
msgid "You can (you should) have multiple facades for one sub-system"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:18
|
||||
msgid ""
|
||||
"That's why a good facade has no ``new`` in it. If there are multiple "
|
||||
"creations for each method, it is not a Facade, it's a Builder or a "
|
||||
"[Abstract\|Static\|Simple] Factory [Method]."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:22
|
||||
msgid ""
|
||||
"The best facade has no ``new`` and a constructor with "
|
||||
"interface-type-hinted parameters. If you need creation of new instances, "
|
||||
"use a Factory as argument."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:26
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:30
|
||||
msgid "Alt Facade UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:33
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:36
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Facade/README.rst:56
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,57 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:1
|
||||
msgid "Fluent Interface"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:7
|
||||
msgid ""
|
||||
"To write code that is easy readable just like sentences in a natural "
|
||||
"language (like English)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:13
|
||||
msgid ""
|
||||
"Doctrine2's QueryBuilder works something like that example class "
|
||||
"below"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:15
|
||||
msgid "PHPUnit uses fluent interfaces to build mock objects"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:16
|
||||
msgid "Yii Framework: CDbCommand and CActiveRecord use this pattern, too"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:18
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:22
|
||||
msgid "Alt FluentInterface UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:25
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:28
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/FluentInterface/README.rst:36
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,44 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:1
|
||||
msgid "Flyweight"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:7
|
||||
msgid ""
|
||||
"To minimise memory usage, a Flyweight shares as much as possible memory with similar objects. It "
|
||||
"is needed when a large amount of objects is used that don't differ much in state. A common practice is "
|
||||
"to hold state in external data structures and pass them to the flyweight object when needed."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:11
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:15
|
||||
msgid "Alt Flyweight UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:18
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:21
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Flyweight/README.rst:41
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,52 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:1
|
||||
msgid "Proxy"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:7
|
||||
msgid "To interface to anything that is expensive or impossible to duplicate."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:9
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:12
|
||||
msgid ""
|
||||
"Doctrine2 uses proxies to implement framework magic (e.g. lazy "
|
||||
"initialization) in them, while the user still works with his own "
|
||||
"entity classes and will never use nor touch the proxies"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:16
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:20
|
||||
msgid "Alt Proxy UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:23
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:26
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Proxy/README.rst:40
|
||||
msgid "Test"
|
||||
msgstr ""
|
@@ -1,20 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/README.rst:1
|
||||
msgid "Structural"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/README.rst:4
|
||||
msgid ""
|
||||
"In Software Engineering, Structural Design Patterns are Design Patterns "
|
||||
"that ease the design by identifying a simple way to realize "
|
||||
"relationships between entities."
|
||||
msgstr ""
|
@@ -1,61 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DesignPatternsPHP "
|
||||
"d4972f03fc93de3ef10bb31220de49931487d5e0\n"
|
||||
"POT-Creation-Date: 2016-09-19 17:00-0500\n"
|
||||
"Last-Translator: Axel Pardemann <axelitusdev@gmail.com>\n"
|
||||
"Content-Type: text/plain; "
|
||||
"charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../Structural/Registry/README.rst:1
|
||||
msgid "Registry"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:4
|
||||
msgid "Purpose"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:7
|
||||
msgid ""
|
||||
"To implement a central storage for objects often used throughout the "
|
||||
"application, is typically implemented using an abstract class with only "
|
||||
"static methods (or using the Singleton pattern). Remember that this introduces "
|
||||
"global state, which should be avoided at all times! Instead implement it using Dependency Injection!"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:12
|
||||
msgid "Examples"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:15
|
||||
msgid ""
|
||||
"Zend Framework 1: ``Zend_Registry`` holds the application's logger "
|
||||
"object, front controller etc."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:17
|
||||
msgid ""
|
||||
"Yii Framework: ``CWebApplication`` holds all the application "
|
||||
"components, such as ``CWebUser``, ``CUrlManager``, etc."
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:20
|
||||
msgid "UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:24
|
||||
msgid "Alt Registry UML Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:27
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:30
|
||||
msgid "You can also find this code on `GitHub`_"
|
||||
msgstr ""
|
||||
|
||||
#: ../../Structural/Registry/README.rst:38
|
||||
msgid "Test"
|
||||
msgstr ""
|
Reference in New Issue
Block a user