improving the render to show the tree with indentations

This commit is contained in:
Trismegiste
2013-05-11 01:36:57 +02:00
parent 007a2d6171
commit e70395c0a3
4 changed files with 8 additions and 3 deletions

View File

@@ -6,6 +6,6 @@ class TextElement extends FormElement
{
public function render($indent = 0)
{
return 'this is a text element';
return str_repeat(' ', $indent) . 'this is a text element';
}
}