CCrmLeadWS::GetStatusList

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmLeadWS
  4. GetStatusList
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/ws_lead.php
  • Класс: \CCrmLeadWS
  • Вызов: CCrmLeadWS::GetStatusList
static function GetStatusList()
{
	$ar = CCrmStatus::GetStatusList('STATUS');
	$CXMLCreatorR = new CXMLCreator('CHOISES');

	foreach ($ar as $key => $value)
	{
		$CXMLCreator = new CXMLCreator('CHOISE', true);
		$CXMLCreator->setAttribute('id', $key);
		$CXMLCreator->setData($value);
		$CXMLCreatorR->addChild($CXMLCreator);
	}

	return $CXMLCreatorR;
}

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