...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/custom.php
- Класс: Bitrix\Crm\Activity\Provider\Custom
- Вызов: Custom::renderView
static function renderView(array $activity) { /** @var \CMain $APPLICATION */ /** @var \CUserTypeManager $USER_FIELD_MANAGER */ global $APPLICATION, $USER_FIELD_MANAGER; $typeID = isset($activity['PROVIDER_TYPE_ID']) ? (int)$activity['PROVIDER_TYPE_ID'] : 0; if($typeID <= 0) { return ''; } $entityID = CustomType::prepareUserFieldEntityID($typeID); $fields = $USER_FIELD_MANAGER->getUserFields($entityID, $activity['ID'], LANGUAGE_ID); $html = ''; foreach($fields as $field) { $html .= ''; return $html; }'; $html .= ''; } $html .= ''; $html .= htmlspecialcharsbx(isset($field['EDIT_FORM_LABEL']) ? $field['EDIT_FORM_LABEL'] : $field['FIELD_NAME']); $html .= ':'; $html .= ''; ob_start(); $APPLICATION->IncludeComponent( 'bitrix:system.field.view', $field['USER_TYPE']['USER_TYPE_ID'], array('arUserField' => $field), null, array('HIDE_ICONS' => 'Y') ); $html .= ob_get_clean(); $html .= ''; $html .= '