/webtrees/app/Module/ |
H A D | ModuleDataFixTrait.php | 62 public function recordsToFix(Tree $tree, array $params): Collection argument 64 $families = $this->familiesToFix($tree, $params); 65 $individuals = $this->individualsToFix($tree, $params); 66 $locations = $this->locationsToFix($tree, $params); 67 $media = $this->mediaToFix($tree, $params); 68 $notes = $this->notesToFix($tree, $params); 69 $repositories = $this->repositoriesToFix($tree, $params); 70 $sources = $this->sourcesToFix($tree, $params); 71 $submitters = $this->submittersToFix($tree, $params); 120 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument [all …]
|
H A D | FixSearchAndReplace.php | 131 protected function familiesToFix(Tree $tree, array $params): Collection|null argument 133 if ($params['type'] !== Family::RECORD_TYPE || $params['search-for'] === '') { 138 $this->recordQuery($query, 'f_gedcom', $params); 152 protected function individualsToFix(Tree $tree, array $params): Collection|null argument 154 if ($params['type'] !== Individual::RECORD_TYPE || $params['search-for'] === '') { 161 $this->recordQuery($query, 'i_gedcom', $params); 175 protected function locationsToFix(Tree $tree, array $params): Collection|null argument 177 if ($params['type'] !== Location::RECORD_TYPE || $params['search-for'] === '') { 185 $this->recordQuery($query, 'o_gedcom', $params); 199 protected function mediaToFix(Tree $tree, array $params): Collection|null argument [all …]
|
H A D | FixPlaceNames.php | 89 protected function familiesToFix(Tree $tree, array $params): Collection|null argument 91 if ($params['search-for'] === '' || $params['replace-with'] === '') { 95 $search = '%' . addcslashes($params['search-for'], '\\%_') . '%'; 97 return $this->familiesToFixQuery($tree, $params) 111 protected function individualsToFix(Tree $tree, array $params): Collection|null argument 113 if ($params['search-for'] === '' || $params['replace-with'] === '') { 117 $search = '%' . addcslashes($params['search-for'], '\\%_') . '%'; 119 return $this->individualsToFixQuery($tree, $params) 133 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 135 $search = preg_quote($params['search-for'], '/'); [all …]
|
H A D | FixDuplicateLinks.php | 74 protected function familiesToFix(Tree $tree, array $params): Collection argument 77 return $this->familiesToFixQuery($tree, $params) 90 protected function individualsToFix(Tree $tree, array $params): Collection|null argument 93 return $this->individualsToFixQuery($tree, $params) 106 protected function mediaToFix(Tree $tree, array $params): Collection argument 109 return $this->mediaToFixQuery($tree, $params) 122 protected function notesToFix(Tree $tree, array $params): Collection argument 125 return $this->notesToFixQuery($tree, $params) 138 protected function repositoriesToFix(Tree $tree, array $params): Collection argument 141 return $this->repositoriesToFixQuery($tree, $params) [all …]
|
H A D | AbstractIndividualListModule.php | 141 $params = [ 153 … ->redirectUrl($this->listUrl($tree, $params), StatusCodeInterface::STATUS_MOVED_PERMANENTLY); 189 … $params = ['tree' => $tree->name(), 'show_all' => 'yes', 'show_marnm' => $show_marnm]; 193 … $params = ['tree' => $tree->name(), 'show_all' => 'yes', 'show_marnm' => $show_marnm]; 197 … $params = ['tree' => $tree->name(), 'show_all' => 'yes', 'show_marnm' => $show_marnm]; 202 …$params = ['tree' => $tree->name(), 'surname' => $surname, 'falpha' => $falpha, 'show_marnm' => $s… 227 $params = ['alpha' => $alpha, 'tree' => $tree->name(), 'show_marnm' => $show_marnm]; 233 $params = ['alpha' => $alpha, 'tree' => $tree->name(), 'show_marnm' => $show_marnm]; 238 $params = ['alpha' => $alpha, 'tree' => $tree->name(), 'show_marnm' => $show_marnm]; 242 $params = ['tree' => $tree->name(), 'show_marnm' => $show_marnm]; [all …]
|
H A D | FixCemeteryTag.php | 98 protected function individualsToFix(Tree $tree, array $params): Collection|null argument 100 return $this->individualsToFixQuery($tree, $params) 117 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 132 public function previewUpdate(GedcomRecord $record, array $params): string argument 139 $new[] = $this->updateGedcom($fact, $params); 156 public function updateRecord(GedcomRecord $record, array $params): void argument 159 $record->updateFact($fact->id(), $this->updateGedcom($fact, $params), false); 169 private function updateGedcom(Fact $fact, array $params): string argument 186 $convert = $params['convert'];
|
H A D | FixNameSlashesAndSpaces.php | 74 protected function individualsToFix(Tree $tree, array $params): Collection|null argument 77 return $this->individualsToFixQuery($tree, $params) 89 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 106 public function previewUpdate(GedcomRecord $record, array $params): string argument 122 public function updateRecord(GedcomRecord $record, array $params): void argument
|
H A D | FixMissingDeaths.php | 73 protected function individualsToFix(Tree $tree, array $params): Collection|null argument 75 $query = $this->individualsToFixQuery($tree, $params); 92 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 108 public function previewUpdate(GedcomRecord $record, array $params): string argument 124 public function updateRecord(GedcomRecord $record, array $params): void argument
|
H A D | FixWtObjeSortTag.php | 76 public function individualsToFix(Tree $tree, array $params): Collection argument 78 return $this->individualsToFixQuery($tree, $params) 96 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 109 public function previewUpdate(GedcomRecord $record, array $params): string argument 125 public function updateRecord(GedcomRecord $record, array $params): void argument
|
H A D | FixNameTags.php | 99 public function individualsToFix(Tree $tree, array $params): Collection argument 101 return $this->individualsToFixQuery($tree, $params) 118 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 133 public function previewUpdate(GedcomRecord $record, array $params): string argument 157 public function updateRecord(GedcomRecord $record, array $params): void argument
|
H A D | FixPrimaryTag.php | 76 public function mediaToFix(Tree $tree, array $params): Collection argument 78 return $this->mediaToFixQuery($tree, $params) 92 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument 105 public function previewUpdate(GedcomRecord $record, array $params): string argument 129 public function updateRecord(GedcomRecord $record, array $params): void argument
|
H A D | ModuleDataFixInterface.php | 48 public function recordsToFix(Tree $tree, array $params): Collection; argument 58 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool; argument 68 public function previewUpdate(GedcomRecord $record, array $params): string; argument 78 public function updateRecord(GedcomRecord $record, array $params): void; argument
|
/webtrees/app/Http/RequestHandlers/ |
H A D | MediaFileThumbnail.php | 48 $params = $request->getQueryParams(); 68 unset($params['route']); 69 $params['tree'] = $media_file->media()->tree()->name(); 71 if ($media_file->signature($params) !== $params['s']) { 80 (int) $params['w'], 81 (int) $params['h'], 82 $params['fit'],
|
H A D | DataFixUpdateAll.php | 76 $params = $request->getQueryParams(); 77 $rows = $module->recordsToFix($tree, $params); 87 return $this->createUpdateRanges($tree, $module, $rows, $params); 93 … GedcomRecord && !$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params)); 96 $module->updateRecord($record, $params); 114 array $params argument 120 … ->map(static function (Collection $chunk) use ($module, $params, $tree, $total): object { 132 ] + $params);
|
H A D | DataFixData.php | 76 $params = $request->getQueryParams(); 77 $records = $module->recordsToFix($tree, $params); 79 $callback = function (object $row) use ($module, $params, $tree): array { 85 if ($module->doesRecordNeedUpdate($record, $params)) { 91 ] + $params); 98 ] + $params);
|
H A D | DataFixPreview.php | 64 $params = $request->getQueryParams(); 65 $xref = $params['xref'] ?? ''; 71 if (!$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params)) { 72 $preview = $module->previewUpdate($record, $params);
|
H A D | PendingChangesLogDelete.php | 53 $params = $request->getQueryParams(); 54 $params['tree'] = $tree->name(); 56 $this->pending_changes_service->changesQuery($params)->delete();
|
H A D | PendingChangesLogDownload.php | 54 $params = $request->getQueryParams(); 55 $params['tree'] = $tree->name(); 57 $content = $this->pending_changes_service->changesQuery($params)
|
H A D | DataFixUpdate.php | 62 $params = $request->getQueryParams(); 67 if (!$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params)) { 68 $module->updateRecord($record, $params);
|
H A D | PendingChangesLogData.php | 76 $params = $request->getQueryParams(); 77 $params['tree'] = $tree->name(); 79 $query = $this->pending_changes_service->changesQuery($params);
|
/webtrees/app/Services/ |
H A D | PendingChangesService.php | 279 public function changesQuery(array $params): Builder argument 281 $tree = $params['tree']; 282 $from = $params['from'] ?? ''; 283 $to = $params['to'] ?? ''; 284 $type = $params['type'] ?? ''; 285 $oldged = $params['oldged'] ?? ''; 286 $newged = $params['newged'] ?? ''; 287 $xref = $params['xref'] ?? ''; 288 $username = $params['username'] ?? '';
|
/webtrees/app/ |
H A D | MediaFile.php | 244 $params = [ 254 $params['s'] = $this->signature($params); 256 return route(MediaFileThumbnail::class, $params); 392 public function signature(array $params): string argument 394 unset($params['s']); 396 ksort($params); 406 return md5($glide_key . ':?' . http_build_query($params));
|
/webtrees/app/Http/Middleware/ |
H A D | CheckCsrf.php | 60 $params = (array) $request->getParsedBody(); 61 $client_token = $params['_csrf'] ?? $request->getHeaderLine('X-CSRF-TOKEN'); 64 unset($params['_csrf']); 66 $request = $request->withParsedBody($params);
|
/webtrees/resources/views/lists/ |
H A D | surnames-column-list.phtml | 27 … $module instanceof ModuleListInterface ? $module->listUrl($tree, ['alpha' => '@'] + $params) : ''; 30 …dule instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn] + $params) : ''; 33 …dule instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn] + $params) : '';
|
H A D | surnames-table.phtml | 55 …<a href="<?= e($module->listUrl($tree, ['alpha' => '@'] + $params)) ?>"><?= I18N::translateContext… 57 …<a href="<?= e($module->listUrl($tree, ['surname' => $surn] + $params)) ?>" class="ut"><?= e($surn… 59 …<a href="<?= e($module->listUrl($tree, ['surname' => $surn] + $params)) ?>" class="ut"><?= e($surn…
|