CForumGroup::Update
int Update( int ID, array arFields );
The method Update modifies the parameters of the existing group specified by the ID. Returns the ID of the modified group.
Parameters
Parameter | Description |
---|---|
ID | The ID of the group whose parameters are to be modified. |
arFields |
An array of the format Array(field1=>value1[, field2=>value2 [, ..]]),
where:
|
Return Values
Returns the ID of the modified group on success, or false otherwise.See Also
Example
<? $arFields = array("SORT" => $SORT); $arSysLangs = array("fr", "en"); for ($i = 0; $i<count($arSysLangs); $i++) { $arFields["LANG"][] = array( "LID" => $arSysLangs[$i], "NAME" => ${"NAME_".$arSysLangs[$i]}, "DESCRIPTION" => ${"DESCRIPTION_".$arSysLangs[$i]} ); } $ID1 = CForumGroup::Update($ID, $arFields); if (IntVal($ID1)<=0) echo "Error!"; ?>
© «Bitrix24», 2001-2024