• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/internals/checklist.php
  • Класс: BitrixTasksCheckListInternalsCheckList
  • Вызов: CheckList::findById
public function findById($id)
{
	if ($this->fields->getId() == $id)
	{
		return $this;
	}

	foreach ($this->getDescendants() as $descendant)
	{
		/** @var CheckList $descendant */
		$found = $descendant->findById($id);
		if ($found !== null)
		{
			return $found;
		}
	}

	return null;
}