1: <?php
2:
3: namespace Deimos\Flow\Extension\TBlock;
4:
5: use Deimos\Flow\FlowFunction;
6:
7: class TBlockStart extends FlowFunction
8: {
9:
10: public function view()
11: {
12: array_shift($this->data);
13:
14: $values = [];
15:
16: foreach ($this->data as $key => $value)
17: {
18: if ($value !== ' ')
19: {
20: $values[] = '\'' . trim($value, '\'"') . '\'';
21: }
22: }
23:
24: return '<?php $this->configure->block()->start($this, ' . implode(', ', $values) . '); ?>';
25: }
26:
27: }