• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/checklist.php
  • Класс: CCheckList
  • Вызов: CCheckList::GetReportInfo
function GetReportInfo()
{//getting report information
	if ($this->report_id)
	{
		$checklist = new CCheckList($this->report_id);
		if ($checklist->current_result == false)
			return false;
		$arResult = $checklist->GetStructure();

		//removing empty sections
		/*foreach($arResult["STRUCTURE"] as $key => $rFields)
		{
			$arsCategories = array();
			foreach ($rFields["CATEGORIES"] as $skey => $sFields)
			{
				if (count($sFields["POINTS"])>0)
					$arsCategories[$skey] = $sFields;
			}
			if (count($arsCategories)>0)
			{
				$rFields["CATEGORIES"] = $arsCategories;
				$arTmpStructure[$key] = $rFields;
			}
		}
		$arResult["STRUCTURE"] = $arTmpStructure;*/
		$arResult["POINTS"] = $checklist->GetPoints();
		$arResult["INFO"] = $checklist->report_info;

		return $arResult;
	}
	return false;
}