• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component_ajax.php
  • Класс: CComponentAjax
  • Вызов: CComponentAjax::_PrepareData
function _PrepareData()
{
	global $APPLICATION;

	if ($this->bWrongRedirect)
		return null;

	$arBuffer = array_slice($APPLICATION->buffer_content, $this->buffer_start_counter, $this->buffer_finish_counter - $this->buffer_start_counter);

	$delimiter = '###AJAX_'.$APPLICATION->GetServerUniqID().'###';

	$data = implode($delimiter, $arBuffer);

	$this->__PrepareLinks($data);
	$this->__PrepareForms($data);

	if (!$this->bAjaxSession)
	{
		$data = '
'.$data.'
'; if ($this->bHistory) { $data = '' .$data .'' .''; } } else { if ($this->bIFrameMode) { $this->__PrepareScripts($data); // fix IE bug; $data = ''.$data.''; } } $arBuffer = explode($delimiter, $data); for ($i = 0, $cnt = count($arBuffer); $i < $cnt; $i++) { $APPLICATION->buffer_content[$this->buffer_start_counter + $i] = $arBuffer[$i]; } return ''; }