bool CCertification::Delete( int ID );
The Delete method deletes the certificate specified by the ID.
Parameter | Description |
---|---|
ID | The certificate ID. |
The method returns true if the certificate has been successfully deleted, or false otherwise.
<? if (CModule::IncludeModule("learning")) { $COURSE_ID = 97; $CERTIFICATE_ID = 19; if (CCourse::GetPermission($COURSE_ID) >= 'W') { @set_time_limit(0); $DB->StartTransaction(); if (!CCertification::Delete($CERTIFICATE_ID)) { echo "Error!"; $DB->Rollback(); } else $DB->Commit(); } } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |