Update
int CBlogGroup::Update( int ID array arFields );
The method modifies parameters of the group with ID. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Updated group ID. |
arFields | Array of the array("SITE_ID"=>"Site ID", "NAME"=>"category name") type. |
Returned value
The method returns the ID of the updated group, if parameters were updated successfully. If an error occurs, method will return false, and exceptions will contain errors.See Also
Examples of use
<? $ID = 1; $arFields = array( "SITE_ID" => "com", "NAME" => "Happy blogs" ); $updateID = CBlogGroup::Update($ID, $arFields); if(IntVal($updateID)>0) { echo "Group [".$updateID."] is updated."; } else { if ($ex = $APPLICATION->GetException()) echo $ex->GetString(); } ?>
© «Bitrix24», 2001-2024