• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/component/entityselector.php
  • Класс: BitrixSocialnetworkComponentEntitySelector
  • Вызов: EntitySelector::prepareResult
protected function prepareResult()
{
	global $DB;
	$this->getData();

	$intranetInstalled = MainLoader::includeModule('intranet');
	$dateTimeformat = $DB->dateFormatToPHP(FORMAT_DATETIME);

	$this->arResult = [
		'FILTER_ID' => $this->getFilterId(),
		'FILTER' => $this->getFilter(),
		'FILTER_PRESETS' => $this->getFilterPresets(),
		'CURRENT_DATETIME_FORMAT' => ($intranetInstalled ? CIntranetUtils::getCurrentDateTimeFormat() : preg_replace('/[/.,s:][s]/', '', $dateTimeformat)),
		'CURRENT_DATETIME_FORMAT_WOYEAR' => ($intranetInstalled ? CIntranetUtils::getCurrentDateTimeFormat([
			'woYear' => true
		]) : preg_replace('/[/.,s-][Yyo]/', '', $dateTimeformat)),
		'CURRENT_USER_ID' => $this->getCurrentUserId()
	];
}