bool CCertification::Certificate( int STUDENT_ID, int COURSE_ID );
The Certificate method adds or modifies the certificate if the course has been passed.
| Parameter | Description |
|---|---|
| STUDENT_ID | The student ID. |
| COURSE_ID | The course ID. |
The method returns true if a certificate has been successfully added, or false otherwise.
<?
if (CModule::IncludeModule("learning"))
{
$STUDENT_ID = 1;
$COURSE_ID = 92;
$done = CCertification::Certificate($STUDENT_ID, $COURSE_ID);
if ($done)
echo "Success!";
else
echo "Failed!";
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |