• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/engine/template.php
  • Класс: Bitrix\Crm\Automation\Engine\Template
  • Вызов: Template::toArray
public function toArray()
{
	$result = $this->template;

	$result['IS_EXTERNAL_MODIFIED'] = $this->isExternalModified();
	$result['ROBOTS'] = array();

	foreach ($this->getRobots() as $robot)
	{
		$result['ROBOTS'][] = $robot->toArray();
	}

	$bizprocTemplate = $this->getBizprocTemplate();
	$result['TEMPLATE_ID'] = $bizprocTemplate? (int)$bizprocTemplate['ID'] : 0;

	return $result;
}