• Модуль: webservice
  • Путь к файлу: ~/bitrix/modules/webservice/classes/general/sharepoint/client.php
  • Класс: CSPListsClient
  • Вызов: CSPListsClient::GetAttachmentCollection
public function GetAttachmentCollection($listName, $arParams)
{
	$arMethodParams = array('listName' => $listName);
	$arMethodParams['listItemID'] = $arParams['SP_ID'];

	if (
		$this->__initialize()
		&& $this->Call('GetAttachmentCollection', $arMethodParams)
		&& ($DOM = $this->RESPONSE->DOMDocument)
	)
	{
		$RESULT = array();

		$ATTACHMENTS = $DOM->elementsByName('Attachment');

		foreach ($ATTACHMENTS as $ATTACH)
		{
			$RESULT[] = $ATTACH->textContent();
		}

		return $this->GetAttachmentCollectionProcessResult($RESULT);
	}

	return false;
}