CBPRuntime::executeResourceFile

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPRuntime
  4. executeResourceFile
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBPRuntime
  • Вызов: CBPRuntime::executeResourceFile
public function executeResourceFile($activityPath, $filePath, $arParameters = array())
{
	$result = null;
	$path = $this->GetResourceFilePath($activityPath, $filePath);
	if ($path != null)
	{
		ob_start();

		foreach ($arParameters as $key => $value)
			${$key} = $value;

		$this->LoadActivityLocalization($path[1], $filePath);
		include($path[0]);
		$result = ob_get_contents();
		ob_end_clean();
	}
	return $result;
}

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