• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/lib/profile/response/payload/dictionaries/componentbase.php
  • Класс: BitrixDavProfileResponsePayloadDictionariesComponentBase
  • Вызов: ComponentBase::prepareBodyContent
public function prepareBodyContent()
{
	$params['host'] = Context::getCurrent()->getServer()->getHttpHost();
	$params['port'] =  Context::getCurrent()->getServer()->getServerPort();
	$params['isSSL'] = Context::getCurrent()->getRequest()->isHttps() ? 'true' : 'false';
	$user = $this->getUser();
	$params['password'] = Application::generateAppPassword($user['ID'], static::TEMPLATE_DICT_NAME);
	$params['username'] = $this->getLogin();
	$params['payloadIdentifier'] = 'com.apple.' . static::TEMPLATE_DICT_NAME . '.account.' . $this->getProfileIdentifier();
	$params['payloadUUID'] = $this->getProfileIdentifier();
	$templatePath = IOPath::getDirectory(__DIR__ . '/templates/') . '/' . static::TEMPLATE_DICT_NAME . '.dict';
	if (empty($params['port']))
	{
		$params['port'] = $this->getPortWithScheme();
	}
	return ResponseBase::render($templatePath, $params);
}