• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/model.php
  • Класс: BitrixDiskInternalsModel
  • Вызов: Model::setAttributesFromResult
protected function setAttributesFromResult(Result $result)
{
	if(!$result->isSuccess())
	{
		throw new ArgumentException('Result is not success');
	}
	$attributes = $result->getData();
	if($result instanceof AddResult)
	{
		$attributes['ID'] = $result->getId();
	}

	return $this->setAttributes($attributes);
}