Lines Matching refs:family
158 $family = $fact->target();
159 if ($family instanceof Family) {
160 $cache[1][] = $family;
184 foreach ($cache[$n - 1] as $family) {
185 … foreach ($family->facts(['HUSB', 'WIFE', 'CHIL'], false, Auth::PRIV_HIDE) as $fact) {
200 $family = $fact->target();
202 … if ($family instanceof Family && !in_array($family, $cache[$n - 2], true)) {
203 $cache[$n][] = $family;
248 foreach ($this->childFamilies(Auth::PRIV_HIDE) as $family) {
249 foreach ($family->spouses(Auth::PRIV_HIDE) as $parent) {
262 foreach ($this->spouseFamilies(Auth::PRIV_HIDE) as $family) {
263 preg_match_all('/\n2 DATE (.+)/', $family->gedcom, $date_matches);
272 $spouse = $family->spouse($this, Auth::PRIV_HIDE);
284 foreach ($family->children(Auth::PRIV_HIDE) as $child) {
550 foreach ($this->childFamilies() as $family) {
551 $tmp = $family->getMarriageDate();
556 $husband = $family->husband();
564 $wife = $family->wife();
572 foreach ($family->children() as $child) {
580 foreach ($this->spouseFamilies() as $family) {
581 $tmp = $family->getMarriageDate();
586 $spouse = $family->spouse($this);
594 foreach ($family->children() as $child) {
676 $family = $fact->target();
677 if ($family instanceof Family && $family->canShow($access_level)) {
678 $families->push($family);
695 $family = $this->spouseFamilies()->last(); variable in Fisharebest\\Webtrees\\Individual
697 if ($family instanceof Family) {
698 return $family->spouse($this);
743 $family = $fact->target();
744 if ($family instanceof Family && $family->canShow($access_level)) {
745 $families->push($family);
761 foreach ($families as $family) {
762 foreach ($family->spouses() as $parent) {
771 return $step_families->uniqueStrict(static fn (Family $family): string => $family->xref());
784 foreach ($families as $family) {
785 $spouse = $family->spouse($this);
788 foreach ($family->spouse($this)->spouseFamilies() as $step_family) {
802 * @param Family $family
806 public function getChildFamilyLabel(Family $family): string argument
808 …$fact = $this->facts(['FAMC'])->first(static fn (Fact $fact): bool => $fact->target() === $family);
838 foreach ($this->childFamilies() as $family) {
839 if ($family !== $step_family) {
841 foreach ($family->spouses() as $parent) {
879 * @param Family $family
883 public function getSpouseFamilyLabel(Family $family): string argument
885 $spouse = $family->spouse($this);
892 return $family->fullName();