Documentation

Update

int
Update(
 int ID,
 array arFields [,
 string strUploadDir ]
);

The method Update modifies parameters of the existing profile specified by the ID with those specified in the array arFields. Returns the ID of the modified profile.

Before a profile is modified, you should check whether it can be modified using CForumUser::CanUserUpdateUser.

Parameters

ParameterDescription
ID The ID of the profile whose parameters are to be modified.
arFields An array of the format Array(field1=>value1[, field2=>value2 [, ..]]), where

field - field name;
value - field value.

The fields are listed in the List of profile fields.
strUploadDir Directory in which files are to be uploaded. Must be specified relative to the main upload directory.
Optional. The default value is "forum".

Return Values

Returns the ID of the modified profile on success, or false otherwise.

See Also

  • Profile fields
  • © «Bitrix24», 2001-2024
    Up