Documentation

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);
?>
© «Bitrix24», 2001-2024
Up