Bitrix Site Manager

CIBlockElement::CounterInc

CIBlockElement::CounterInc(
 int ID
);
Increments the element views counter. The increment operations respect the uniqueness of the element views within a single session.

Parameters

ParameterDescription
ID Element ID.

Example


<?
if(CModule::IncludeModule("iblock"))
	CIBlockElement::CounterInc($ID);
?>