• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/lib/janative/entity/component.php
  • Класс: BitrixMobileAppJanativeEntityComponent
  • Вызов: Component::execute
public function execute(bool $resultOnly = false)
{
	header('Content-Type: text/javascript;charset=UTF-8');
	header('BX-Component-Version: ' . $this->getVersion());
	header('BX-Component: true');
	if ($resultOnly)
	{
		echo Utils::jsonEncode($this->getResult());;
	}
	else
	{
		echo $this->getContent();
	}
}