/webtrees/app/Services/ |
H A D | ClipboardService.php | 49 $fact_id = $fact->id(); 52 unset($clipboard[$record_type][$fact_id]); 54 $clipboard[$record_type][$fact_id] = $fact->gedcom(); 65 * @param string $fact_id 70 public function pasteFact(string $fact_id, GedcomRecord $record): bool argument 76 if (isset($clipboard[$record_type][$fact_id])) { 77 $record->createFact($clipboard[$record_type][$fact_id], true);
|
/webtrees/app/ |
H A D | MediaFile.php | 68 private string $fact_id; variable in Fisharebest\\Webtrees\\MediaFile 79 $this->fact_id = md5($gedcom); 135 return $this->fact_id; 144 if ($fact->id() === $this->fact_id) { 158 if ($fact->id() === $this->fact_id) { 247 'fact_id' => $this->fact_id, 293 'fact_id' => $this->fact_id,
|
H A D | GedcomRecord.php | 768 * @param string $fact_id 773 public function deleteFact(string $fact_id, bool $update_chan): void argument 775 $this->updateFact($fact_id, '', $update_chan); 781 * @param string $fact_id 788 public function updateFact(string $fact_id, string $gedcom, bool $update_chan): void argument 815 if ($fact->id() === $fact_id) { 819 … $fact_id = 'NOT A VALID FACT ID'; // Only replace/delete one copy of a duplicate fact 828 if ($fact_id === '') {
|
/webtrees/app/Http/RequestHandlers/ |
H A D | EditFactAction.php | 63 $fact_id = Validator::attributes($request)->string('fact_id'); 80 …$gedcom = $census_assistant->updateCensusAssistant($request, $record, $fact_id, $gedcom, $keep_cha… 96 if ($fact_id === 'new') { 102 if ($fact->id() === $fact_id && $fact->canEdit()) { 103 $record->updateFact($fact_id, $gedcom, !$keep_chan);
|
H A D | DeleteFact.php | 47 $fact_id = Validator::attributes($request)->string('fact_id'); 52 if ($fact->id() === $fact_id && $fact->canEdit()) { 53 $record->deleteFact($fact_id, true);
|
H A D | EditRawFactAction.php | 49 $fact_id = Validator::attributes($request)->string('fact_id'); 58 if ($fact->id() === $fact_id && $fact->canEdit()) { 59 $record->updateFact($fact_id, $gedcom, false);
|
H A D | FixLevel0MediaAction.php | 59 $fact_id = Validator::parsedBody($request)->string('fact_id'); 70 if ($fact1->id() === $fact_id) { 71 … $individual->updateFact($fact_id, $fact1->gedcom() . "\n2 OBJE @" . $obje_xref . '@', false);
|
H A D | LinkChildToFamilyAction.php | 55 $fact_id = ''; 58 $fact_id = $fact->id(); 81 $individual->updateFact($fact_id, $gedcom, true);
|
H A D | EditFactPage.php | 60 $fact_id = Validator::attributes($request)->string('fact_id'); 67 …$fact = $record->facts()->first(fn (Fact $fact): bool => $fact->id() === $fact_id && $fact->canEdi… 83 'fact_id' => $fact_id,
|
H A D | EditMediaFileAction.php | 74 $fact_id = Validator::attributes($request)->string('fact_id'); 88 ->first(static fn (MediaFile $media_file): bool => $media_file->factId() === $fact_id); 141 $media->updateFact($fact_id, $gedcom, true);
|
H A D | PasteFact.php | 58 $fact_id = Validator::parsedBody($request)->string('fact_id'); 62 $this->clipboard_service->pasteFact($fact_id, $record);
|
H A D | CopyFact.php | 60 $fact_id = Validator::attributes($request)->string('fact_id'); 65 if ($fact->id() === $fact_id) {
|
H A D | EditRawFactPage.php | 52 $fact_id = Validator::attributes($request)->string('fact_id'); 56 ->first(static fn (Fact $fact): bool => $fact->id() === $fact_id);
|
H A D | MediaFileDownload.php | 53 $fact_id = Validator::queryParams($request)->string('fact_id'); 58 if ($media_file->factId() === $fact_id) {
|
H A D | MediaFileThumbnail.php | 50 $fact_id = Validator::queryParams($request)->string('fact_id'); 62 if ($media_file->factId() === $fact_id) {
|
H A D | EditMediaFileModal.php | 63 $fact_id = Validator::attributes($request)->string('fact_id'); 76 if ($media_file->factId() === $fact_id) {
|
/webtrees/app/Module/ |
H A D | CensusAssistantModule.php | 119 * @param string $fact_id 125 …sistant(ServerRequestInterface $request, Individual $individual, string $fact_id, string $newged, … argument 147 ->updateFact($fact_id, $newged, !$keep_chan);
|
H A D | ShareAnniversaryModule.php | 133 $fact_id = Validator::attributes($request)->string('fact_id'); 137 $fact = $record->facts()->first(fn (Fact $fact): bool => $fact->id() === $fact_id);
|