Lines Matching refs:gedcom

352      * @param string $gedcom
357 public function createRecord(string $gedcom): GedcomRecord argument
359 if (preg_match('/^0 @@ ([_A-Z]+)/', $gedcom, $match) !== 1) {
360 …throw new InvalidArgumentException('GedcomRecord::createRecord(' . $gedcom . ') does not begin 0 @…
364 $gedcom = substr_replace($gedcom, $xref, 3, 0);
369 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
376 'new_gedcom' => $gedcom,
383 $record = Registry::gedcomRecordFactory()->new($xref, $gedcom, null, $this);
391 return Registry::gedcomRecordFactory()->new($xref, '', $gedcom, $this);
397 * @param string $gedcom
402 public function createFamily(string $gedcom): GedcomRecord argument
404 if (!str_starts_with($gedcom, '0 @@ FAM')) {
405 …throw new InvalidArgumentException('GedcomRecord::createFamily(' . $gedcom . ') does not begin 0 @…
409 $gedcom = substr_replace($gedcom, $xref, 3, 0);
414 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
421 'new_gedcom' => $gedcom,
428 $record = Registry::familyFactory()->new($xref, $gedcom, null, $this);
436 return Registry::familyFactory()->new($xref, '', $gedcom, $this);
442 * @param string $gedcom
447 public function createIndividual(string $gedcom): GedcomRecord argument
449 if (!str_starts_with($gedcom, '0 @@ INDI')) {
450 …throw new InvalidArgumentException('GedcomRecord::createIndividual(' . $gedcom . ') does not begin…
454 $gedcom = substr_replace($gedcom, $xref, 3, 0);
459 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
466 'new_gedcom' => $gedcom,
473 $record = Registry::individualFactory()->new($xref, $gedcom, null, $this);
481 return Registry::individualFactory()->new($xref, '', $gedcom, $this);
487 * @param string $gedcom
492 public function createMediaObject(string $gedcom): Media argument
494 if (!str_starts_with($gedcom, '0 @@ OBJE')) {
495 …throw new InvalidArgumentException('GedcomRecord::createIndividual(' . $gedcom . ') does not begin…
499 $gedcom = substr_replace($gedcom, $xref, 3, 0);
504 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
511 'new_gedcom' => $gedcom,
518 $record = Registry::mediaFactory()->new($xref, $gedcom, null, $this);
526 return Registry::mediaFactory()->new($xref, '', $gedcom, $this);