Update
bool CRatings::Update( int id, array fields );
The method updates parameters of the rating with ID. Non-static method.
Method parameters
Parameter | Description |
---|---|
id | Rating ID. |
fields | Array of parameter values. The following values can be used as the keys for this array:
|
See Also
Examples of use
<? // update the rating name and make it active $arUpdateRating = array( 'ACTIVE' => 'N', 'NAME' => 'Rating, updated via API', ); $result = CRatings::Update(1, $arUpdateRating); if ($result) echo "Rating is updated successfully."; ?>
© «Bitrix24», 2001-2024