Added Composite UML

This commit is contained in:
John Webb
2014-07-29 09:44:37 -05:00
parent 9780f47bab
commit 287e242e83
12 changed files with 30 additions and 3 deletions

View File

@ -11,4 +11,4 @@ To translate one interface for a class into a compatible interface. An adapter a
## UML Diagram ## UML Diagram
![Alt Adapter UML Diagram](uml.png) ![Alt Adapter UML Diagram](uml/uml.png)

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@ -9,4 +9,4 @@ independently. (http://en.wikipedia.org/wiki/Bridge_pattern)
## UML Diagram ## UML Diagram
![Alt Bridge UML Diagram](uml.png) ![Alt Bridge UML Diagram](uml/uml.png)

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -10,3 +10,6 @@ To treat a group of objects the same way as a single instance of the object.
subsequently runs through all its child elements and calls `render()` on them subsequently runs through all its child elements and calls `render()` on them
* `Zend_Config`: a tree of configuration options, each one is a `Zend_Config` object itself * `Zend_Config`: a tree of configuration options, each one is a `Zend_Config` object itself
## UML Diagram
![Alt Composite UML Diagram](uml/uml.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -0,0 +1,23 @@
@startuml
class Form {
protected elements
+render($indent = 0)
+addElement(FormElement $element)
}
abstract class FormElement {
+render($indent = 0)
}
class InputElement {
+render($indent = 0)
}
class TextElement {
+render($indent = 0)
}
FormElement <|.. TextElement
FormElement <|.. InputElement
FormElement <|.. Form
@enduml