bool CCourse::Delete( int ID );
The Delete course deletes the course identified by the ID.
If any certificates were obtained for the specified course, the method returns false.
| Parameter | Description |
|---|---|
| ID | The course ID. |
The method returns true if the course has been successfully deleted, or false otherwise.
<?
if (CModule::IncludeModule("learning"))
{
$ID = 109;//Course ID
if($USER->IsAdmin())
{
@set_time_limit(0);
$DB->StartTransaction();
if(!CCourse::Delete($ID))
$DB->Rollback();
else
$DB->Commit();
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |