bool CCertification::IsCourseCompleted( int STUDENT_ID, int COURSE_ID );
The IsCourseCompleted method checks if the course has been completed. A course is considered completed if all its tests are passed.
Parameter | Description |
---|---|
STUDENT_ID | The student ID. |
COURSE_ID | The course ID. |
The method returns true if the course has been successfully passed, or false otherwise.
<? if (CModule::IncludeModule("learning")) { $STUDENT_ID = 1; $COURSE_ID = 92; $done = CCertification::IsCourseCompleted($STUDENT_ID, $COURSE_ID); if ($done) echo "Course completed"; else echo "Course is not completed"; } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |