• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/internals/compositetreeitem.php
  • Класс: BitrixTasksCheckListInternalsCompositeTreeItem
  • Вызов: CompositeTreeItem::findChild
public function findChild($nodeId)
{
	if ($this->getNodeId() == $nodeId)
	{
		return $this;
	}

	foreach ($this->descendants as $descendant)
	{
		$found = $descendant->findChild($nodeId);
		if ($found !== null)
		{
			return $found;
		}
	}

	return null;
}