| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function render( \Aimeos\Base\View\Iface $view, string $filename, array $values ) : string |
||
| 46 | { |
||
| 47 | $factory = $this->factory; |
||
| 48 | $lv = $factory->file( $filename, $values ); |
||
| 49 | |||
| 50 | $fcn = function() use ( $factory, $view ) |
||
| 51 | { |
||
| 52 | foreach( $factory->getSections() as $name => $section ) { |
||
| 53 | $view->block()->set( $name, $section ); |
||
| 54 | } |
||
| 55 | }; |
||
| 56 | |||
| 57 | $contents = $lv->render( $fcn ); |
||
| 58 | $this->factory->flushSections(); |
||
| 59 | |||
| 60 | return $contents; |
||
| 61 | } |
||
| 63 |