Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
rendercontrolcontent.php
1<?php
2
4
6
8{
9 protected array $documentType;
10 protected array $property;
11 protected array $params;
12
13 public function __construct(array $documentType, array $property, array $params)
14 {
15 $this->documentType = $documentType;
16 $this->property = $property;
17 $this->params = $params;
18 }
19
20 public function getHtml()
21 {
22 $documentService = \CBPRuntime::GetRuntime(true)->getDocumentService();
23
24 return $documentService->getFieldInputControl(
25 $this->documentType,
26 $this->property,
27 $this->params['Field'],
28 $this->params['Value'],
29 (bool)$this->params['Als'],
30 $this->params['RenderMode'] === 'public'
31 );
32 }
33}
__construct(array $documentType, array $property, array $params)