• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userconsent/agreement.php
  • Класс: BitrixMainUserConsentAgreement
  • Вызов: Agreement::getActiveList
static function getActiveList()
{
	$result = array();
	$list = InternalsAgreementTable::getList(array(
		'select' => array('ID', 'NAME'),
		'filter' => array('=ACTIVE' => 'Y'),
		'order' => array('ID' => 'DESC')
	));
	foreach ($list as $item)
	{
		$result[$item['ID']] = $item['NAME'];
	}

	return $result;
}