CCertification::Certificate
bool CCertification::Certificate( int STUDENT_ID, int COURSE_ID );
The Certificate method adds or modifies the certificate if the course has been passed.
Parameters
Parameter | Description |
---|---|
STUDENT_ID | The student ID. |
COURSE_ID | The course ID. |
Return Values
The method returns true if a certificate has been successfully added, or false otherwise.
See Also
Example
<? if (CModule::IncludeModule("learning")) { $STUDENT_ID = 1; $COURSE_ID = 92; $done = CCertification::Certificate($STUDENT_ID, $COURSE_ID); if ($done) echo "Success!"; else echo "Failed!"; } ?>
© «Bitrix24», 2001-2024