Documentation

Delete

bool
CTaskDependence::Delete(
  TASK_ID,
DEPENDS_ON_ID
);

This method deletes "task" -> "previous task" link.

Method parameters

Parameter Description
TASK_IDTask ID.
DEPENDS_ON_IDPrevious task ID

Returned value

The method returns true if link is deleted successfully, otherwise returns false

Examples of use

<?
if (CModule::IncludeModule("tasks"))
{

$TASK_ID = 4;
$DEPENDS_ON_ID = 15;

if($USER->IsAdmin())
{
CTaskDependence::Delete($TASK_ID, $DEPENDS_ON_ID);
}

}
?>


© «Bitrix24», 2001-2024
Up