Script::getLoader

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Script
  4. getLoader
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/script.php
  • Класс: Bitrix\Crm\WebForm\Script
  • Вызов: Script::getLoader
protected function getLoader($params)
{
	$loaderLink = ($this->isHttps ? 'https' : 'http') . '://' . $this->domain . $this->loaderPath;
	$uri = new Uri($loaderLink);
	$loaderLink = $uri->getLocator();

	if($this->formPath)
	{
		if($this->formPath != self::$defaultFormPath && $this->formPath != self::$defaultFormPathSef)
		{
			$params['page'] = $this->formPath;
		}
	}
	$paramsString = Json::encode($params);

	$isBox = $this->isB24() ? '' : 'arguments[0].isBox=1;';
	/*
	JS VARIABLE DESCRIPTION:
		w - window object
		d - document object
		u - url of form loader file
		b - bitrix form function

		r - random number
		s - SCRIPT element with source of form loader file
		h - HEAD element
	*/

	return
		"";

}

Добавить комментарий