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

@@ -2,7 +2,7 @@
# Purpose
To treat a group of objects the same way as a single instance of the object.
To treat a group of objects the same way as a single instance of the object.
# Examples
@@ -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
* `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