Lines Matching refs:access_level

78      * @param int|null $access_level
82 public function husband(int|null $access_level = null): Individual|null argument
85 $access_level = Auth::PRIV_HIDE; variable in Fisharebest\\Webtrees\\Family
88 if ($this->husb instanceof Individual && $this->husb->canShowName($access_level)) {
98 * @param int|null $access_level
102 public function wife(int|null $access_level = null): Individual|null argument
105 $access_level = Auth::PRIV_HIDE; variable in Fisharebest\\Webtrees\\Family
108 if ($this->wife instanceof Individual && $this->wife->canShowName($access_level)) {
118 * @param int $access_level
122 protected function canShowByType(int $access_level): bool argument
128 if ($person && !$person->canShow($access_level)) {
139 * @param int|null $access_level
143 public function canShowName(int|null $access_level = null): bool argument
154 * @param int|null $access_level
158 public function spouse(Individual $person, int|null $access_level = null): Individual|null argument
161 return $this->husband($access_level);
164 return $this->wife($access_level);
170 * @param int|null $access_level
174 public function spouses(int|null $access_level = null): Collection argument
177 $this->husband($access_level),
178 $this->wife($access_level),
187 * @param int|null $access_level
191 public function children(int|null $access_level = null): Collection argument
193 $access_level ??= Auth::accessLevel($this->tree);
196 $access_level = Auth::PRIV_HIDE;
201 foreach ($this->facts(['CHIL'], false, $access_level) as $fact) {
204 if ($child instanceof Individual && $child->canShowName($access_level)) {