Documentation

GetUpdatesCount

array
CTasks::GetUpdatesCount(
 array arViewed
);

Returns the number of modifying updates in tasks. 

Method parameters

Parameter Description
arViewed Array of  array("task ID"=>"date, after which the updates are counted" [, ...]) array.

Returned value

Array of  array("task ID"=>"number of updates" [, ...]) type.

Examples of use

<?
$arViewed = array(
193 => "26.01.2012 15:53:08",
14 => "17.01.2012 17:24:58",
99 => "13.01.2012 15:57:47",
235 => "18.01.2012 14:34:35",
3 => "28.12.2011 17:43:22"
);

$arUpdatesCount = CTasks::GetUpdatesCount($arViewed);
if ($arUpdatesCount)
{
foreach($arUpdatesCount as $key=>$value)
{
echo "Updates count for task #".$key.": ".$value;
}
}
?>


© «Bitrix24», 2001-2024
Up