CCrmRequisitePresetFieldRestProxy::innerGetListFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRequisitePresetFieldRestProxy
  4. innerGetListFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRequisitePresetFieldRestProxy
  • Вызов: CCrmRequisitePresetFieldRestProxy::innerGetListFields
protected function innerGetListFields($presetId, &$errors)
{
	$r = $this->exists($presetId, EntityPreset::Requisite);
	if(!is_array($r))
	{
		$errors[] = "The Preset with ID '{$presetId}' is not found";
		return false;
	}
	if(!is_array($r['SETTINGS']))
	{
		$r['SETTINGS'] = array();
	}

	if(!EntityPreset::checkReadPermissionOwnerEntity())
	{
		$errors[] = 'Access denied.';
		return false;
	}

	$entity = self::getEntity();
	return $entity->settingsGetFields($r['SETTINGS']);
}

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