/webtrees/app/Module/ |
H A D | StatisticsChartModule.php | 290 foreach ($rows as $row) { 291 … $this->fillYData($row->d_month, 0, $row->total, $x_axis, $z_axis, $ydata); 297 foreach ($rows as $row) { 298 … $this->fillYData($row->d_month, $row->i_sex, $row->total, $x_axis, $z_axis, $ydata); 307 foreach ($rows as $row) { 308 … $this->fillYData($row->d_month, $boundary, $row->total, $x_axis, $z_axis, $ydata); 339 foreach ($rows as $row) { 340 … $this->fillYData($row->d_month, 0, $row->total, $x_axis, $z_axis, $ydata); 346 foreach ($rows as $row) { 347 … $this->fillYData($row->d_month, $row->i_sex, $row->total, $x_axis, $z_axis, $ydata); [all …]
|
H A D | AbstractIndividualListModule.php | 546 foreach ($query->get() as $row) { 547 …ial = I18N::language()->initialLetter(I18N::language()->normalize(I18N::strtoupper($row->n_givn))); 550 $initials[$initial] += (int) $row->count; 604 foreach ($surname_data as $row) { 605 $normalized = I18N::strtoupper(I18N::language()->normalize($row->n_surn)); 606 $list[$normalized][] = $row->n_surn; 626 foreach ($surname_data as $row) { 627 $n_surn = $row->n_surn === '' ? $row->n_surname : $row->n_surn; 630 $list[$n_surn][$row->n_surname] ??= 0; 631 $list[$n_surn][$row->n_surname] += $row->total; [all …]
|
H A D | TopSurnamesModule.php | 116 foreach ($query->get() as $row) { 117 $row->n_surn = $row->n_surn === '' ? $row->n_surname : $row->n_surn; 118 $row->n_surn = I18N::strtoupper(I18N::language()->normalize($row->n_surn)); 120 $top_surnames[$row->n_surn][$row->n_surname] ??= 0; 121 $top_surnames[$row->n_surn][$row->n_surname] += (int) $row->total;
|
H A D | FamilyTreeFavoritesModule.php | 135 ->map(static function (object $row) use ($tree): object { 136 if ($row->xref !== null) { 137 $row->record = Registry::gedcomRecordFactory()->make($row->xref, $tree); 139 if ($row->record instanceof GedcomRecord && !$row->record->canShowName()) { 140 $row->record = null; 141 $row->note = null; 144 $row->record = null; 147 return $row;
|
H A D | UserFavoritesModule.php | 137 ->map(static function (object $row) use ($tree): object { 138 if ($row->xref !== null) { 139 $row->record = Registry::gedcomRecordFactory()->make($row->xref, $tree); 141 if ($row->record instanceof GedcomRecord && !$row->record->canShowName()) { 142 $row->record = null; 143 $row->note = null; 146 $row->record = null; 149 return $row;
|
H A D | FamilyTreeStatisticsModule.php | 133 foreach ($query->get() as $row) { 134 $row->n_surn = $row->n_surn === '' ? $row->n_surname : $row->n_surn; 135 $row->n_surn = I18N::strtoupper(I18N::language()->normalize($row->n_surn)); 137 $top_surnames[$row->n_surn][$row->n_surname] ??= 0; 138 $top_surnames[$row->n_surn][$row->n_surname] += (int) $row->total;
|
H A D | UserJournalModule.php | 78 ->map(static function (object $row): object { 79 $row->updated = Registry::timestampFactory()->fromString($row->updated); 81 return $row; 163 $row = DB::table('news') 169 if ($row === null) { 173 $row = (object)['body' => '', 'subject' => '']; 179 'body' => $row->body, 181 'subject' => $row->subject,
|
H A D | FamilyTreeNewsModule.php | 76 ->map(static function (object $row): object { 77 $row->updated = Registry::timestampFactory()->fromString($row->updated); 79 return $row; 161 $row = DB::table('news') 167 if ($row === null) { 171 $row = (object) [ 180 'body' => $row->body, 182 'subject' => $row->subject,
|
/webtrees/app/Statistics/Repository/ |
H A D | EventRepository.php | 233 ->map(static fn (object $row): object => (object) [ 234 'id' => $row->id, 235 'year' => (int) $row->year, 236 'fact' => $row->fact, 237 'type' => $row->type, 251 $row = $this->eventQuery($direction); 254 if ($row !== null) { 255 $record = Registry::gedcomRecordFactory()->make($row->id, $this->tree); 292 $row = $this->eventQuery($direction); 294 if ($row === null) { [all …]
|
H A D | FamilyDatesRepository.php | 87 ->map(static fn (object $row): object => (object) [ 88 'id' => $row->id, 89 'year' => (int) $row->year, 90 'fact' => $row->fact, 91 'type' => $row->type, 106 $row = $this->eventQuery($type, $operation); 109 if ($row !== null) { 110 $record = Registry::gedcomRecordFactory()->make($row->id, $this->tree); 196 $row = $this->eventQuery($type, $operation); 198 if ($row === null) { [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | UserListData.php | 125 $callback = function (object $row) use ($languages, $user): array { 126 $row_user = $this->user_service->find((int) $row->user_id); 128 … view('admin/users-table-options', ['row' => $row, 'self' => $user, 'user' => $row_user]), 129 $row->user_id, 130 '<bdi>' . e($row->user_name) . '</bdi>', 131 '<bdi>' . e($row->real_name) . '</bdi>', 132 '<a href="mailto:' . e($row->email) . '">' . e($row->email) . '</a>', 133 $languages->get($row->language, $row->language), 134 $row->registered_at, 135 …$row->registered_at ? view('components/datetime-diff', ['timestamp' => Registry::timestampFactory(… [all …]
|
H A D | ManageMediaData.php | 113 $callback = function (object $row): array { 114 $tree = $this->tree_service->find((int) $row->m_file); 115 $media = Registry::mediaFactory()->make($row->m_id, $tree, $row->m_gedcom); 118 $is_http = str_starts_with($row->multimedia_file_refn, 'http://'); 123 … '<a href="' . e($row->multimedia_file_refn) . '">' . e($row->multimedia_file_refn) . '</a>', 130 $path = $row->media_folder . $row->multimedia_file_refn; 153 e($row->multimedia_file_refn), 228 $callback = function (array $row) use ($data_filesystem, $media_trees): array { 230 $mime_type = $data_filesystem->mimeType($row[0]) ?: Mime::DEFAULT_TYPE; 236 $url = route(AdminMediaFileThumbnail::class, ['path' => $row[0]]); [all …]
|
H A D | TreePrivacyPage.php | 110 ->map(static function (object $row) use ($tree): object { 111 $row->record = null; 112 $row->label = ''; 114 if ($row->xref !== null) { 115 $row->record = Registry::gedcomRecordFactory()->make($row->xref, $tree); 118 if ($row->tag_type) { 119 $row->tag_label = $row->tag_type; 122 $element = Registry::elementFactory()->make($prefix . $row->tag_type); 125 $row->tag_label = $element->label(); 130 $row->tag_label = ''; [all …]
|
H A D | PendingChangesLogData.php | 81 $callback = function (object $row) use ($tree): array { 82 $old_lines = $row->old_gedcom === '' ? [] : explode("\n", $row->old_gedcom); 83 $new_lines = $row->new_gedcom === '' ? [] : explode("\n", $row->new_gedcom); 102 $record = Registry::gedcomRecordFactory()->make($row->xref, $tree); 104 …$change_time = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $row->change_time, new DateTimeZ… 109 $row->change_id, 111 I18N::translate($row->status), 112 … $record ? '<a href="' . e($record->url()) . '">' . $record->xref() . '</a>' : $row->xref, 124 $row->user_name, 125 $row->gedcom_name,
|
H A D | PendingChangesLogDownload.php | 59 ->map(static fn (object $row): string => 62 '"' . $row->change_time . '"', 63 '"' . $row->status . '"', 64 '"' . $row->xref . '"', 65 '"' . str_replace('"', '""', $row->old_gedcom) . '"', 66 '"' . str_replace('"', '""', $row->new_gedcom) . '"', 67 '"' . str_replace('"', '""', $row->user_name) . '"', 68 '"' . str_replace('"', '""', $row->gedcom_name) . '"',
|
H A D | SiteLogsData.php | 55 …s->datatables_service->handleQuery($request, $query, [], [], static function (object $row): array { 56 …$log_time = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $row->log_time, new DateTimeZone('U… 61 $row->log_id, 63 $row->log_type, 64 '<span class="ut">' . e($row->log_message) . '</span>', 65 e($row->ip_address), 66 '<span class="ut">' . e($row->user_name) . '</span>', 67 '<span class="ut">' . e($row->gedcom_name) . '</span>',
|
H A D | SiteLogsDownload.php | 56 ->map(static fn (object $row): string => '"' . $row->log_time . '",' . 57 '"' . $row->log_type . '",' . 58 '"' . str_replace('"', '""', $row->log_message) . '",' . 59 '"' . $row->ip_address . '",' . 60 '"' . str_replace('"', '""', $row->user_name) . '",' . 61 '"' . str_replace('"', '""', $row->gedcom_name) . '"' .
|
/webtrees/resources/views/modules/recent_changes/ |
H A D | changes-table.phtml | 57 <?php foreach ($rows as $row) : ?> 59 … <td data-sort="<?= $row->record->tag() ?>" class="text-centre wt-side-block-optional"> 60 <?php if ($row->record->tag() === Individual::RECORD_TYPE) : ?> 63 <?php elseif ($row->record->tag() === Family::RECORD_TYPE) : ?> 66 <?php elseif ($row->record->tag() === Media::RECORD_TYPE) : ?> 69 <?php elseif ($row->record->tag() === Note::RECORD_TYPE) : ?> 72 <?php elseif ($row->record->tag() === Source::RECORD_TYPE) : ?> 75 <?php elseif ($row->record->tag() === Submitter::RECORD_TYPE) : ?> 78 <?php elseif ($row->record->tag() === Repository::RECORD_TYPE) : ?> 81 <?php elseif ($row->record->tag() === Location::RECORD_TYPE) : ?> [all …]
|
H A D | changes-list.phtml | 20 <?php foreach ($rows as $n => $row) : ?> 42 <a href="<?= e($row->record->url()) ?>"> 43 <?= $row->record->fullName() ?> 48 …ged on %1$s by %2$s', view('components/datetime', ['timestamp' => $row->time]), e($row->record->la… 50 … */ I18N::translate('Changed on %1$s', view('components/datetime', ['timestamp' => $row->time])) ?> 52 …ecord was] Changed on <date/time> */ I18N::translate('Changed by %1$s', e($row->user->userName()))…
|
/webtrees/app/Services/ |
H A D | MapDataService.php | 58 $row = DB::table('place_location') 63 if ($row === null) { 67 $hierarchy[] = $row->place; 68 $id = $row->parent_id; 92 foreach ($rows as $row) { 93 $children[mb_strtolower($row->p_place)][] = $row; 127 …->map(static fn (object $row): string => implode(Gedcom::PLACE_SEPARATOR, array_filter((array) $ro… 150 …->map(static fn (object $row): string => implode(Gedcom::PLACE_SEPARATOR, array_filter((array) $ro… 257 ->map(static function (object $row): object { 258 $row->child_count = (int) $row->child_count; [all …]
|
H A D | CalendarService.php | 160 foreach ($record_query->get() as $row) { 162 $record = Registry::individualFactory()->make($row->xref, $tree, $row->gedcom); 169 $record = Registry::familyFactory()->make($row->xref, $tree, $row->gedcom); 179 …$anniv_date = new Date($row->d_type . ' ' . $row->d_day . ' ' . $row->d_month . ' ' . $row->d_year… 181 foreach ($record->facts([$row->d_fact]) as $fact) { 358 foreach ($record_query->get() as $row) { 360 … $record = Registry::individualFactory()->make($row->xref, $tree, $row->gedcom); 367 $record = Registry::familyFactory()->make($row->xref, $tree, $row->gedcom); 377 …$anniv_date = new Date($row->d_type . ' ' . $row->d_day . ' ' . $row->d_month . ' ' . $row->d_year… 381 foreach ($record->facts([$row->d_fact]) as $fact) { [all …]
|
H A D | SearchService.php | 495 $row_mapper = static function (object $row) use ($tree): Place { 496 $place = implode(', ', array_filter((array) $row)); 1037 foreach ($query->cursor() as $row) { 1038 $record = $row_mapper($row); 1187 return function (object $row): Family { 1188 $tree = $this->tree_service->find((int) $row->f_file); 1190 return Registry::familyFactory()->mapper($tree)($row); 1201 return function (object $row): Individual { 1202 $tree = $this->tree_service->find((int) $row->i_file); 1204 return Registry::individualFactory()->mapper($tree)($row); [all …]
|
H A D | PendingChangesService.php | 116 foreach ($rows as $row) { 117 $row->change_time = Registry::timestampFactory()->fromString($row->change_time); 119 …?:@' . Gedcom::REGEX_XREF . '@ )?(' . Gedcom::REGEX_TAG . ')/', $row->old_gedcom . $row->new_gedco… 123 $row->record = $factory->new($row->xref, $row->old_gedcom, $row->new_gedcom, $tree); 125 $changes[$row->xref][] = $row;
|
/webtrees/app/ |
H A D | Tree.php | 138 foreach ($rows as $row) { 140 $row->resn = self::RESN_PRIVACY[$row->resn]; 142 if ($row->xref !== null) { 143 if ($row->tag_type !== null) { 144 $this->individual_fact_privacy[$row->xref][$row->tag_type] = $row->resn; 146 $this->individual_privacy[$row->xref] = $row->resn; 149 $this->fact_privacy[$row->tag_type] = $row->resn; 161 …return static fn (object $row): Tree => new Tree((int) $row->tree_id, $row->tree_name, $row->tree_…
|
H A D | SessionDatabaseHandler.php | 35 private ?object $row = null; variable in Fisharebest\\Webtrees\\SessionDatabaseHandler 71 $this->row = DB::table('session') 75 return $this->row->session_data ?? ''; 90 if ($this->row === null) { 102 if ((int) $this->row->user_id !== $user_id) { 106 if ($this->row->ip_address !== $ip_address) { 110 if ($this->row->session_data !== $data) { 115 …tMinutes(1)->timestamp() > Registry::timestampFactory()->fromString($this->row->session_time)->tim…
|