Documentation

GetChanges

array
CTaskLog::GetChanges(
 array arOldValues,
 array arNewValues
);

This method returns an array of updates based on the array with old values and the array with updated values.

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

Method parameters

Parameter Description
arOldValues Array of old values for task fields.
arNewValues  Array of updated values for task fields. 

Returned value

Array of updates.

Examples of use

<?
if (CModule::IncludeModule("tasks"))
{
$rsTask = CTasks::GetByID(2);
if ($arTask = $rsTask->Fetch())
{
$arFields = array(
"TITLE" => "New task title",
"RESPONSIBLE_ID" => 45
);
$arChanges = CTaskLog::GetChanges($arTask, $arFields);
}
} ?>


© «Bitrix24», 2001-2024