| Conditions | 3 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | protected function getContents() { |
||
| 14 | |||
| 15 | $contents = View::get(static::$view_main); |
||
| 16 | |||
| 17 | # Set items |
||
| 18 | |||
| 19 | foreach ($this->loader->items() as $name => $data) { |
||
| 20 | |||
| 21 | $contents->getBlock('items')->addItem($item = View::get(static::$view_item)); |
||
| 22 | |||
| 23 | foreach ($data as $property => $value) $item->$property = $value; |
||
| 24 | |||
| 25 | # Process item |
||
| 26 | |||
| 27 | $this->processItem($item, $data); |
||
| 28 | } |
||
| 29 | |||
| 30 | # Process contents |
||
| 31 | |||
| 32 | $this->processContents($contents); |
||
| 33 | |||
| 34 | # ------------------------ |
||
| 35 | |||
| 36 | return $contents; |
||
| 37 | } |
||
| 38 | } |
||
| 40 |