Lines Matching refs:this

187             $this->gedcom = $gedcom;
188 $this->record = $parent;
189 $this->id = $id;
190 $this->tag = $match[1];
204 if (preg_match('/^1 ' . $this->tag . ' ?(.*(?:\n2 CONT ?.*)*)/', $this->gedcom, $match)) {
207 return Registry::elementFactory()->make($this->tag())->canonical($value);
220 if (!preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $this->value(), $match)) {
226 switch ($this->tag) {
229 return Registry::familyFactory()->make($xref, $this->record->tree());
235 return Registry::individualFactory()->make($xref, $this->record->tree());
238 Registry::individualFactory()->make($xref, $this->record->tree()) ??
239 Registry::submitterFactory()->make($xref, $this->record->tree());
241 return Registry::sourceFactory()->make($xref, $this->record->tree());
243 return Registry::mediaFactory()->make($xref, $this->record->tree());
245 return Registry::repositoryFactory()->make($xref, $this->record->tree());
247 return Registry::noteFactory()->make($xref, $this->record->tree());
251 return Registry::submitterFactory()->make($xref, $this->record->tree());
253 return Registry::submissionFactory()->make($xref, $this->record->tree());
255 return Registry::locationFactory()->make($xref, $this->record->tree());
257 return Registry::gedcomRecordFactory()->make($xref, $this->record->tree());
270 if (preg_match('/\n2 ' . $tag . '\b ?(.*(?:(?:\n3 CONT ?.*)*)*)/', $this->gedcom, $match)) {
273 return Registry::elementFactory()->make($this->tag() . ':' . $tag)->canonical($value);
284 if (preg_match('/\n4 LATI (.+)/', $this->gedcom, $match)) {
298 if (preg_match('/\n4 LONG (.+)/', $this->gedcom, $match)) {
316 $access_level ??= Auth::accessLevel($this->record->tree());
320 $restriction = $element->canonical($this->attribute('RESN'));
335 $target = $this->target();
337 if ($target instanceof GedcomRecord && $target->tag() === $this->tag) {
342 $xref = $this->record->xref();
343 $fact_privacy = $this->record->tree()->getFactPrivacy();
344 $individual_fact_privacy = $this->record->tree()->getIndividualFactPrivacy();
345 if (isset($individual_fact_privacy[$xref][$this->tag])) {
346 return $individual_fact_privacy[$xref][$this->tag] >= $access_level;
348 if (isset($fact_privacy[$this->tag])) {
349 return $fact_privacy[$this->tag] >= $access_level;
363 if ($this->isPendingDeletion()) {
367 if (Auth::isManager($this->record->tree())) {
372 …isEditor($this->record->tree()) && !str_ends_with($this->attribute('RESN'), RestrictionNotice::VAL…
382 $this->place ??= new Place($this->attribute('PLAC'), $this->record->tree());
384 return $this->place;
396 $this->date ??= new Date($this->attribute('DATE'));
398 return $this->date;
408 return $this->gedcom;
418 return $this->id;
428 return $this->record->tag() . ':' . $this->tag;
438 return $this->record;
448 …if (str_ends_with($this->tag(), ':NOTE') && preg_match('/^@' . Gedcom::REGEX_XREF . '@$/', $this->…
453 if ($this->tag() === 'FAM:MARR') {
455 $type = $this->attribute('TYPE');
458 return $element->value($type, $this->record->tree());
463 if ($this->tag === 'FACT' || $this->tag === 'EVEN') {
464 $type = $this->attribute('TYPE');
480 return Registry::elementFactory()->make($this->tag())->label();
490 $this->pending_deletion = true;
491 $this->pending_addition = false;
501 return $this->pending_deletion;
511 $this->pending_addition = true;
512 $this->pending_deletion = false;
522 return $this->pending_addition;
533 $target = $this->target();
538 $value = $this->value();
543 $date = $this->date();
545 …if ($this->record instanceof Individual && in_array($this->tag, Gedcom::BIRTH_EVENTS, true) && $th…
546 …ributes[] = $date->display() . view('fact-parents-age', ['individual' => $this->record, 'birth_dat…
552 if ($this->place()->gedcomName() !== '') {
553 $attributes[] = $this->place()->shortName();
557 $class = 'fact_' . $this->tag;
558 if ($this->isPendingAddition()) {
560 } elseif ($this->isPendingDeletion()) {
564 $label = '<span class="label">' . $this->label() . '</span>';
578 $items = [$this->label()];
579 $target = $this->target();
585 $value = $this->value();
591 if ($this->date()->isOK()) {
592 $items[] = $this->date()->minimumDate()->format('%Y');
596 if ($this->place()->gedcomName() !== '') {
597 $items[] = $this->place()->shortName();
783 return $this->id . '@' . $this->record->xref();