• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/result.php
  • Класс: BitrixVoximplantResult
  • Вызов: Result::toArray
public function toArray()
{
	$errors = array();
	foreach ($this->getErrors() as $error)
	{
		$errors[] = array(
			'CODE' => $error->getCode(),
			'MESSAGE' => $error->getMessage()
		);
	}
	return array(
		'SUCCESS' => $this->isSuccess() ? 'Y' : 'N',
		'DATA' => $this->getData(),
		'ERRORS' => $errors
	);
}