Documentation

Delete

bool
CTaskFiles::Delete(
  TASK_ID,
FILE_ID
);

This method deletes the "task -> file" association.

Note: This method accepts an array of configuration parameters and generates scripts, necessary to show file dialog. Static method.

Method parameters

Parameter Description
TASK_IDTask ID.
FILE_IDFile ID.

Returned value

The method returns true when association is deleted successfully, otherwise returns false

Examples of use

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

$TASK_ID = 4;
$FILE_ID = 15;

if($USER->IsAdmin())
{
CTaskFiles::Delete($TASK_ID, $FILE_ID);
}

}
?>


© «Bitrix24», 2001-2024
Up