CStudent::Update
bool CStudent::Update( int USER_ID, array arFields );
The Update method modifies the parameters of a student account of a specified user.
Parameters
Parameter | Description |
---|---|
USER_ID | The user ID. |
arFields | An array in the format Array("field"=>"value", ...). The array contains values of all fields of the student account. Required fields must be present. |
Return Values
The method returns true on successful update, or false otherwise. If an error occurs, the exception will contain the error description.
See Also
Example
<? if (CModule::IncludeModule("learning")) { $USER_ID = 151; $arFields = Array( "RESUME" => "My new CP", ); $student = new CStudent; $success = $student->Update($USER_ID, $arFields); if($success) { echo "Ok!"; } else { if($e = $APPLICATION->GetException()) echo "Error: ".$e->GetString(); } } ?>
© «Bitrix24», 2001-2024