• Модуль: webservice
  • Путь к файлу: ~/bitrix/modules/webservice/classes/general/sharepoint/client.php
  • Класс: CSPListsClient
  • Вызов: CSPListsClient::GetListCollection
public function GetListCollection()
{
	if (
		$this->__initialize()
		&& $this->Call('GetListCollection')
		&& ($DOM = $this->RESPONSE->DOMDocument)
	)
	{
		$arListNodes = $DOM->elementsByName('List');

		if (!is_array($arListNodes) || count($arListNodes) <= 0)
		{
			return array();
		}
		else
		{
			$arLists = array();
			foreach ($arListNodes as $node)
			{
				$arLists[] = array(
					'ID' => $node->getAttribute('ID'),
					'URL' => $node->getAttribute('DefaultViewUrl'),
					'TITLE' => $node->getAttribute('Title'),
					'DESCRIPTION' => $node->getAttribute('Description'),
					'IMAGE' => $node->getAttribute('ImageUrl'),
				);
			}

			return $this->GetListCollectionProcessResult($arLists);
		}
	}
	else
		return false;
}