Delete
bool CTaskElapsedTime::Delete( ID, array arParams = array() );
This method deletes the record with elapsed time for the task with ID.
Note: This method accepts array of configuration parameters and generates scripts, necessary to show file dialog. Static method.
Method parameters
Parameter | Description | Available from version |
---|---|---|
ID | ID of the deleted task. | |
arParams | Array of additional parameters. Optional. |
Returned value
This method returns true when a record is deleted successfully. Otherwise returns false.
Examples of use
<?
if (CModule::IncludeModule("tasks"))
{
$ID = 1;
if($USER->IsAdmin())
{
CTaskElapsedTime::Delete($ID);
}
}
?>
© «Bitrix24», 2001-2024