CBPViewHelper::renderUserSearch

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPViewHelper
  4. renderUserSearch
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/viewhelper.php
  • Класс: CBPViewHelper
  • Вызов: CBPViewHelper::renderUserSearch
static function renderUserSearch($ID, $searchInputID, $dataInputID, $componentName, $siteID = '', $nameFormat = '', $delay = 0)
{
	$ID = strval($ID);
	$searchInputID = strval($searchInputID);
	$dataInputID = strval($dataInputID);
	$componentName = strval($componentName);

	$siteID = strval($siteID);
	if($siteID === '')
	{
		$siteID = SITE_ID;
	}

	$nameFormat = strval($nameFormat);
	if($nameFormat === '')
	{
		$nameFormat = CSite::GetNameFormat(false);
	}

	$delay = intval($delay);
	if($delay < 0)
	{
		$delay = 0;
	}

	echo '',
	'';

	echo '';

	$GLOBALS['APPLICATION']->IncludeComponent(
		'bitrix:intranet.user.selector.new',
		'',
		array(
			'MULTIPLE' => 'N',
			'NAME' => $componentName,
			'INPUT_NAME' => $searchInputID,
			'SHOW_EXTRANET_USERS' => 'NONE',
			'POPUP' => 'Y',
			'SITE_ID' => $siteID,
			'NAME_TEMPLATE' => $nameFormat
		),
		null,
		array('HIDE_ICONS' => 'Y')
	);
}

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