• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/companyresponsiblegroup.php
  • Класс: BitrixSaleInternalsCompanyResponsibleGroupTable
  • Вызов: CompanyResponsibleGroupTable::getCompanyGroups
static function getCompanyGroups($id)
{
	$list = array();
	$res = static::getList(array(
							   'filter' => array(
								   '=COMPANY_ID' => $id
							   ),
							   'select' => array('GROUP_ID')
						   ));
	while($data = $res->fetch())
	{
		$list[] = $data['GROUP_ID'];
	}

	return $list;
}