Lines Matching refs:params
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'], '/');
149 public function previewUpdate(GedcomRecord $record, array $params): string argument
152 $new = $this->updateGedcom($record, $params);
165 public function updateRecord(GedcomRecord $record, array $params): void argument
167 $record->updateRecord($this->updateGedcom($record, $params), false);
176 private function updateGedcom(GedcomRecord $record, array $params): string argument
178 $search = preg_quote($params['search-for'], '/');
180 $replace = '$1' . addcslashes($params['replace-with'], '$\\') . '$2';