bool CStudent::Delete( int USER_ID );
The Delete method deletes a student account of a specified user.
| Parameter | Description |
|---|---|
| USER_ID | The user ID. |
The method returns true on success, or false otherwise.
<?
if (CModule::IncludeModule("learning"))
{
$USER_ID = 3;
if ($USER->IsAdmin())
{
@set_time_limit(0);
$DB->StartTransaction();
if (!CStudent::Delete($USER_ID))
{
echo "Error!";
$DB->Rollback();
}
else
$DB->Commit();
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |