Documentation

Calculate

string
CRatings::Calculate(
 int id,
 bool forceRecalc
);

The method calculates the rating results with the ID. Non-static method.

Method parameters

Parameter Description
id Rating ID
forceRecalc Forced re-calculation. If this parameter is set as true, the rating criteria will be re-calculated without consideration of the time for the next start.

Examples of use

<?
// forced re-calculation of all rating criteria  
$ID = 4;
$bforceRecalc = true;
CRatings::Calculate($ID, $bforceRecalc);
?>


© «Bitrix24», 2001-2024
Up