Added Composite UML
@ -11,4 +11,4 @@ To translate one interface for a class into a compatible interface. An adapter a
|
|||||||
|
|
||||||
## UML Diagram
|
## UML Diagram
|
||||||
|
|
||||||

|

|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
@ -9,4 +9,4 @@ independently. (http://en.wikipedia.org/wiki/Bridge_pattern)
|
|||||||
|
|
||||||
## UML Diagram
|
## UML Diagram
|
||||||
|
|
||||||

|

|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@ -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
|
||||||
|
|
||||||
|

|
BIN
Structural/Composite/uml/uml.png
Normal file
After Width: | Height: | Size: 12 KiB |
1
Structural/Composite/uml/uml.svg
Normal file
After Width: | Height: | Size: 7.2 KiB |
23
Structural/Composite/uml/uml.txt
Normal 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
|