execute(['tree_id' => $tree->getTreeId()])->fetchAssoc(); $count_families = Database::prepare( "SELECT l_to, COUNT(*) FROM `##families` JOIN `##link` ON l_from = f_id AND l_file = f_file AND l_type = 'SOUR' AND l_file = :tree_id GROUP BY l_to" )->execute(['tree_id' => $tree->getTreeId()])->fetchAssoc(); $count_media = Database::prepare( "SELECT l_to, COUNT(*) FROM `##media` JOIN `##link` ON l_from = m_id AND l_file = m_file AND l_type = 'SOUR' AND l_file = :tree_id GROUP BY l_to" )->execute(['tree_id' => $tree->getTreeId()])->fetchAssoc(); $count_notes = Database::prepare( "SELECT l_to, COUNT(*) FROM `##other` JOIN `##link` ON l_from = o_id AND l_file = o_file AND o_type = 'NOTE' AND l_type = 'SOUR' AND l_file = :tree_id GROUP BY l_to" )->execute(['tree_id' => $tree->getTreeId()])->fetchAssoc(); ?>
getFullName() ?> getFirstFact('AUTH') ? $source->getFirstFact('AUTH')->getValue() : '') ?> getXref()] ?? 0) ?> getXref()] ?? 0) ?> getXref()] ?? 0) ?> getXref()] ?? 0) ?> lastChangeTimestamp() ?>