AddRatingVote
bool CRatings::AddRatingVote( array Param );
The method adds vote to a rating. Non-static method.
Method parameters
Parameter | Description |
---|---|
Param | Array of parameter values. The following values can be used as the keys for this array:
|
Examples of use
<? // add negative rating to a topic $arAddVote = array( "ENTITY_TYPE_ID" => "FORUM_TOPIC", "ENTITY_ID" => 38, "VALUE" => -1, "USER_ID" => 1, "USER_IP" => '127.0.0.1', ); CRatings::AddRatingVote($arAddVote); ?>
© «Bitrix24», 2001-2024