Update
int CBlogUserGroup::Update( int ID array arFields );
The method modifies parameters of a user group for the blog with the ID. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | ID of the updated user group. |
arFields | Array of the array("field"=>"value"[, ...]) type, containing values of the fields for blog user group. |
Returned value
The method return the ID of the modified blog user group, if the parameter update was successful. When an error occurs, the method will return false, and exceptions will contain errors.See Also
Examples of use
<? $ID = 3; $arFields = array( "NAME" => 'Close friends', "BLOG_ID" => 1 ); $updateID = CBlogUserGroup::Update($ID, $arFields); if(IntVal($updateID)>0) { echo "User group [".$updateID."] updated."; } else { if ($ex = $APPLICATION->GetException()) echo $ex->GetString(); } ?>
© «Bitrix24», 2001-2024