Lines Matching refs:search
61 $search = Validator::parsedBody($request)->string('search');
67 $records = $this->search_service->searchIndividuals([$tree], [$search]);
68 $count = $this->replaceRecords($records, $search, $replace);
71 $records = $this->search_service->searchFamilies([$tree], [$search]);
72 $count = $this->replaceRecords($records, $search, $replace);
75 $records = $this->search_service->searchRepositories([$tree], [$search]);
76 $count = $this->replaceRecords($records, $search, $replace);
79 $records = $this->search_service->searchSources([$tree], [$search]);
80 $count = $this->replaceRecords($records, $search, $replace);
83 $records = $this->search_service->searchNotes([$tree], [$search]);
84 $count = $this->replaceRecords($records, $search, $replace);
93 $records = $this->search_service->searchIndividuals([$tree], [$search]);
94 $count = $this->replaceIndividualNames($records, $search, $replace, $name_tags);
99 $records = $this->search_service->searchIndividuals([$tree], [$search]);
100 $count = $this->replacePlaces($records, $search, $replace);
103 $records = $this->search_service->searchFamilies([$tree], [$search]);
104 $count = $this->replacePlaces($records, $search, $replace);
110 'search' => $search,
121 * @param string $search
126 private function replaceRecords(Collection $records, string $search, string $replace): int argument
129 $query = preg_quote($search, '/');
146 * @param string $search
152 …private function replaceIndividualNames(Collection $records, string $search, string $replace, arra… argument
154 … $pattern = '/(\n(?:' . implode('|', $name_tags) . ') .*)' . preg_quote($search, '/') . '/i';
173 * @param string $search
178 private function replacePlaces(Collection $records, string $search, string $replace): int argument
180 $pattern = '/(\n\d PLAC\b.* )' . preg_quote($search, '/') . '([,\n])/i';