GetChildrenCount
CDBResult CTasks::е( array arFilter, array arParentIDs );
Returns the number of subtasks by the arFilter filter for arParentIDs tasks.
Method parameters
Parameter | Description |
---|---|
arFilter | Array of array("filtered field"=>"filter value" [, ...]) type. |
arParentIDs | Array of task IDs, for which the number of subtasks is selected. |
Returned value
CDBResult object is returned.
Examples of use
<?
$arFilter = array(
"RESPONSIBLE_ID" => 2
);
$arTasksIDs = array(193, 14, 99, 235, 3);
$rsChildrenCount = CTasks::GetChildrenCount($arFilter, $arTasksIDs);
if ($rsChildrenCount)
{
while($arChildrenCount = $rsChildrenCount->Fetch())
{
echo "Children count for task #".$arChildrenCount["PARENT_ID"].": ".$arChildrenCount["CNT"];
}
}
?>
© «Bitrix24», 2001-2024