Home
last modified time | relevance | path

Searched refs:fact_id (Results 1 – 18 of 18) sorted by relevance

/webtrees/app/Services/
H A DClipboardService.php49 $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 DMediaFile.php68 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 DGedcomRecord.php768 * @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 DEditFactAction.php63 $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 DDeleteFact.php47 $fact_id = Validator::attributes($request)->string('fact_id');
52 if ($fact->id() === $fact_id && $fact->canEdit()) {
53 $record->deleteFact($fact_id, true);
H A DEditRawFactAction.php49 $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 DFixLevel0MediaAction.php59 $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 DLinkChildToFamilyAction.php55 $fact_id = '';
58 $fact_id = $fact->id();
81 $individual->updateFact($fact_id, $gedcom, true);
H A DEditFactPage.php60 $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 DEditMediaFileAction.php74 $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 DPasteFact.php58 $fact_id = Validator::parsedBody($request)->string('fact_id');
62 $this->clipboard_service->pasteFact($fact_id, $record);
H A DCopyFact.php60 $fact_id = Validator::attributes($request)->string('fact_id');
65 if ($fact->id() === $fact_id) {
H A DEditRawFactPage.php52 $fact_id = Validator::attributes($request)->string('fact_id');
56 ->first(static fn (Fact $fact): bool => $fact->id() === $fact_id);
H A DMediaFileDownload.php53 $fact_id = Validator::queryParams($request)->string('fact_id');
58 if ($media_file->factId() === $fact_id) {
H A DMediaFileThumbnail.php50 $fact_id = Validator::queryParams($request)->string('fact_id');
62 if ($media_file->factId() === $fact_id) {
H A DEditMediaFileModal.php63 $fact_id = Validator::attributes($request)->string('fact_id');
76 if ($media_file->factId() === $fact_id) {
/webtrees/app/Module/
H A DCensusAssistantModule.php119 * @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 DShareAnniversaryModule.php133 $fact_id = Validator::attributes($request)->string('fact_id');
137 $fact = $record->facts()->first(fn (Fact $fact): bool => $fact->id() === $fact_id);