Documentation

CStudent::GetByID

CDBResult
CStudent::GetByID(
 int USER_ID
);

The GetByID method returns a student account of a specified user.

Parameters

ParameterDescription
USER_ID The user ID.

Return Values

The method returns an instance of the CDBResult object.

See Also

  • CDBResult
  • Student account fields
  • CStudent::GetList
  • Example

    
    <?
    if (CModule::IncludeModule("learning"))
    {
        $USER_ID = 3;
        
        $res = CStudent::GetByID($USER_ID);
    
        if ($arStudent = $res->GetNext())
        {
            echo "CP: ".$arStudent["RESUME"];
        }
    }
    ?>
    © «Bitrix24», 2001-2024