Update
bool CGroup::Update( int id, array fields )
The method modifies the group defined by the ID. Returns true on success. In case of error the method will return false, and the LAST_ERROR property will contain the error description. Non-static method.
Parameters
Parameter | Description |
---|---|
id | The ID of the updated record. |
fields | Array of field values of array("field"=>"value" [, ...]) type. |
See Also
Examples of use
<? $group = new CGroup; $arFields = Array( "ACTIVE" => "Y", "C_SORT" => 100, "NAME" => "Group name", "DESCRIPTION" => "Group description", "USER_ID" => array(128, 134) ); $group->Update($GROUP_ID, $arFields); if (strlen($group->LAST_ERROR)>0) ShowError($group->LAST_ERROR); ?>
© «Bitrix24», 2001-2024