Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
view.php
1
<?php
2
namespace
Bitrix\Sale\Helpers\Admin\Blocks\Archive
;
3
4
use
Bitrix\Main
,
5
Bitrix\Sale
,
6
Bitrix\Sale\Archive\Manager
;
7
8
class
View
9
{
11
protected
$order
;
12
18
function
__construct
($id)
19
{
20
$id = (int)$id;
21
$this->order = Manager::returnArchivedOrder($id);
22
}
23
27
public
function
loadOrder
()
28
{
29
return
$this->order
;
30
}
31
39
public
function
getTemplates
()
40
{
41
$schema = $this->getSchema();
42
if
($schema)
43
{
44
return
$schema->getBlocks($this->order);
45
}
46
return
array();
47
}
48
49
private
function
getSchema()
50
{
51
$version = $this->order->getVersion();
52
if
($version === 1 || $version === 2)
53
{
54
return
new
TypeFirst\Schema
();
55
}
56
57
return
null
;
58
}
59
}
Bitrix\Sale\Archive\Manager
Definition
manager.php:19
Bitrix\Sale\Helpers\Admin\Blocks\Archive\Schema
Definition
schema.php:7
Bitrix\Sale\Helpers\Admin\Blocks\Archive\View
Definition
view.php:9
Bitrix\Sale\Helpers\Admin\Blocks\Archive\View\getTemplates
getTemplates()
Definition
view.php:39
Bitrix\Sale\Helpers\Admin\Blocks\Archive\View\__construct
__construct($id)
Definition
view.php:18
Bitrix\Sale\Helpers\Admin\Blocks\Archive\View\$order
$order
Definition
view.php:11
Bitrix\Sale\Helpers\Admin\Blocks\Archive\View\loadOrder
loadOrder()
Definition
view.php:27
Bitrix\Main
Bitrix\Sale\Helpers\Admin\Blocks\Archive
Definition
schema.php:2
Bitrix\Sale
modules
sale
lib
helpers
admin
blocks
archive
view.php
Создано системой
1.10.0