Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
schema.php
1<?php
3
5
6abstract class Schema
7{
8 protected $order;
9
13 function __construct()
14 {
15 }
16
24 public function getBlocks(Sale\Order $order)
25 {
26 $html = array();
27 $blockList = $this->collectBlocks();
28
30 foreach ($blockList as $blockName)
31 {
32 $block = new $blockName;
33 $block->setOrder($order);
34 $html[$block->getName()] = $block->buildBlock();
35 unset($block);
36 }
37 return $html;
38 }
39
43 abstract protected function collectBlocks();
44}