CDBResult CCertification::GetByID( int ID );
The GetByID method returns the ID certificate respecting the current user's access permissions.
| Parameter | Description |
|---|---|
| ID | The certificate ID. |
The method returns an instance of the CDBResult object.
<?
if (CModule::IncludeModule("learning"))
{
$CERTIFICATE_ID = 13;
$res = CCertification::GetByID($CERTIFICATE_ID);
if ($arCertificate = $res->GetNext())
{
echo "Course: ".$arCertificate["COURSE_NAME"].
" User: ".$arCertificate["USER_NAME"].
" Score: ".$arCertificate["SUMMARY"];
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |