Documentation

Delete

CDBResult
CTaskTags::Delete(
 array arFilter = array()
);

This method deletes tags for task by the arFilter filter.

Method parameters

Parameter Description
arFilter Array of the array("filtered field"=>"filter value" [, ...]) type. Filtered field can have the following values:
  • TASK_ID - Task ID;
  • USER_ID - User ID.
  • NAME - tag.
Type of filtration can be specified in front of the name for filtered field:
  • "!" - not equal
  • "<" - less
  • "<=" - less or equal
  • ">" - more
  • ">=" - more or equal

"filter values" - single value or an array.

Returned value

CDBResult object is returned.

Examples of use

<?

// Delete all tags for the task with ID = 28
if (CModule::IncludeModule("tasks") && $USER->IsAdmin())
{
$res = CTaskTags::Delete(
Array("TASK_ID" => "28")
);
}

?>


© «Bitrix24», 2001-2024
Up