Documentation

CForumUser::GetByUSER_ID

array
GetByUSER_ID(
 int USER_ID
);

The method GetByUSER_ID returns an array of profile parameters by the ID of the user who is the owner of the profile. The method call result is cached; therefore, the repeated calls with the same user ID do not incur extra queries to the database (unless the cache is reset after the profile parameters are changed).

Parameters

ParameterDescription
USER_ID The user ID.

Return Values

An array of profile parameters. If the profile cannot be found, false is returned.

See Also

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