• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
  • Класс: CWebDavIblock
  • Вызов: CWebDavIblock::countHistoryDocumentByFileId
function countHistoryDocumentByFileId($elementId)
{
	$elementId = (int)$elementId;
	if($elementId <= 0)
	{
		return 0;
	}

	if(($this->workflow != 'bizproc' && $this->workflow != 'bizproc_limited'))
	{
		return 0;
	}

	$filter  = array(
		"DOCUMENT_ID" => array(
			$this->wfParams['DOCUMENT_TYPE'][0],
			$this->wfParams['DOCUMENT_TYPE'][1],
			$elementId
		),
	);

	$history = new CBPHistoryService();

	return $history->GetHistoryList(array(), $filter, array());
}