• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item/subitem.php
  • Класс: BitrixTasksItemSubItem
  • Вызов: SubItem::findByParent
static function findByParent($parentId, array $parameters = array(), $settings = null)
{
	$parentId = intval($parentId); // todo: this wont work in case of compound or non-integer primary

	if(!$parentId)
	{
		return static::getCollectionInstance(); // if no parent id passed, just return empty collection, no exceptions!
	}

	if (
		!isset($parameters['filter'])
		|| !is_array($parameters['filter'])
	)
	{
		$parameters['filter'] = [];
	}
	$parameters['filter'] = static::getBindCondition($parentId) + $parameters['filter'];

	return static::find($parameters, $settings);
}