Documentation

AddComponentResults

bool
CRatings::AddComponentResults(
 array fields
);

The method updates the date of the next rating criteria count. Non-static method.

Method parameters

Parameter Description
fields Array of parameter values. The following values can be used as the keys of this array:
  • RATING_ID – rating ID
  • COMPLEX_NAME – criteria complex name
  • REFRESH_INTERVAL – criteria refresh interval (in minutes)
All fields are required.

Example of use

<?
// update the date of the next rating criteria count
$arConfigs = array(
	"RATING_ID" => "4",
	"COMPLEX_NAME" => "USER_FORUM_VOTE_TOPIC",
	"REFRESH_INTERVAL" => 3600
);
CRatings::AddComponentResults($arConfigs);
?>


© «Bitrix24», 2001-2022
Up