Home
last modified time | relevance | path

Searched refs:note (Results 1 – 25 of 118) sorted by relevance

12345

/webtrees/resources/views/lists/
H A Dnotes-table.phtml101 <?php foreach ($notes as $note) : ?>
102 …<tr class="<?= $note->isPendingAddition() ? 'wt-new' : '' ?> <?= $note->isPendingDeletion() ? 'wt-…
104 <td data-sort="<?= e($note->sortName()) ?>">
105 <a href="<?= e($note->url()) ?>">
106 <?= $note->fullName() ?>
111 <td class="text-center" data-sort="<?= $count_individuals[$note->xref()] ?? 0 ?>">
112 <?= I18N::number($count_individuals[$note->xref()] ?? 0) ?>
116 <td class="text-center" data-sort="<?= $count_families[$note->xref()] ?? 0 ?>">
117 <?= I18N::number($count_families[$note->xref()] ?? 0) ?>
121 <td class="text-center" data-sort="<?= $count_media[$note->xref()] ?? 0 ?>">
[all …]
/webtrees/app/Elements/
H A DNoteStructure.php111 $note = Registry::noteFactory()->make($match[1], $tree);
113 if ($note === null) {
117 if (!$note->canShow()) {
122 $value = $note->getNote();
124 $first_line = '<a href="' . e($note->url()) . '">' . $note->fullName() . '</a>';
127 if ($html === '<p>' . strip_tags($note->fullName()) . '</p>') {
128 $value = '<a href="' . e($note->url()) . '">' . strip_tags($html) . '</a>';
184 $note = Registry::noteFactory()->make($match[1], $tree);
186 if ($note instanceof Note) {
187 $value = $note->getNote();
/webtrees/app/Http/RequestHandlers/
H A DEditNoteAction.php45 $note = Registry::noteFactory()->make($xref, $tree);
46 $note = Auth::checkNoteAccess($note, true);
56 '/^0 @' . $note->xref() . '@ NOTE.*(\n1 CONT.*)*/',
57 '0 @' . $note->xref() . '@ NOTE ' . $NOTE,
58 $note->gedcom()
61 $note->updateRecord($gedrec, true);
63 return redirect($note->url());
H A DTomSelectNote.php62 $note = Registry::noteFactory()->make($query, $tree);
64 if ($note instanceof Note) {
65 $results = new Collection([$note]);
71 return $results->map(static fn (Note $note): array => [
72 'text' => view('selects/shared-note', ['note' => $note]),
73 'value' => $at . $note->xref() . $at,
H A DTomSelectSharedNote.php62 $note = Registry::sharedNoteFactory()->make($query, $tree);
64 if ($note instanceof SharedNote) {
65 $results = new Collection([$note]);
71 return $results->map(static fn (SharedNote $note): array => [
72 'text' => view('selects/shared-note', ['note' => $note]),
73 'value' => $at . $note->xref() . $at,
H A DEditNotePage.php49 $note = Registry::noteFactory()->make($xref, $tree);
50 $note = Auth::checkNoteAccess($note, true);
53 'note' => $note,
H A DCreateNoteAction.php42 $note = Validator::parsedBody($request)->isNotEmpty()->string('note');
45 $note = Registry::elementFactory()->make('NOTE:CONT')->canonical($note);
48 $gedcom = '0 @@ NOTE ' . strtr($note, ["\n" => "\n1 CONT "]);
H A DCreateMediaObjectFromFile.php60 $note = Validator::parsedBody($request)->string('note');
63 $note = Registry::elementFactory()->make('OBJE:NOTE')->canonical($note);
67 …om = "0 @@ OBJE\n" . $this->media_file_service->createMediaFileGedcom($file, $type, $title, $note);
H A DCreateMediaObjectAction.php65 $note = Validator::parsedBody($request)->string('media-note');
70 $note = Registry::elementFactory()->make('OBJE:NOTE')->canonical($note);
91 …om = "0 @@ OBJE\n" . $this->media_file_service->createMediaFileGedcom($file, $type, $title, $note);
H A DRedirectNotePhp.php51 $note = Registry::noteFactory()->make($nid, $tree);
53 if ($note instanceof Note) {
54 $url = $note->url();
/webtrees/app/Module/
H A DFamilyTreeFavoritesModule.php141 $row->note = null;
161 $note = Validator::parsedBody($request)->string('note');
170 $this->addUrlFavorite($tree, $url, $title ?: $url, $note);
174 $this->addRecordFavorite($tree, $record, $note);
210 * @param string $note
214 private function addUrlFavorite(Tree $tree, string $url, string $title, string $note): void argument
222 'note' => $note,
230 * @param string $note
234 private function addRecordFavorite(Tree $tree, GedcomRecord $record, string $note): void argument
242 'note' => $note,
H A DUserFavoritesModule.php143 $row->note = null;
163 $note = Validator::parsedBody($request)->string('note');
172 $this->addUrlFavorite($tree, $user, $url, $title ?: $url, $note);
176 $this->addRecordFavorite($tree, $user, $record, $note);
213 * @param string $note
217 …ion addUrlFavorite(Tree $tree, UserInterface $user, string $url, string $title, string $note): void argument
225 'note' => $note,
234 * @param string $note
238 …nction addRecordFavorite(Tree $tree, UserInterface $user, GedcomRecord $record, string $note): void argument
246 'note' => $note,
H A DClippingsCartModule.php617 $note = Registry::noteFactory()->make($xref, $tree);
618 $note = Auth::checkNoteAccess($note);
619 $name = $note->fullName();
629 'record' => $note,
639 $note = Registry::noteFactory()->make($xref, $tree);
640 $note = Auth::checkNoteAccess($note);
642 $this->addNoteToCart($note);
644 return redirect($note->url());
873 protected function addNoteToCart(Note $note): void argument
878 $tree = $note->tree()->name();
[all …]
H A DCensusAssistantModule.php139 $note = $individual->tree()->createRecord($note_gedcom);
141 $newged .= "\n2 NOTE @" . $note->xref() . '@';
/webtrees/resources/views/modules/notes/
H A Dtab.phtml61 … <?php $note = Registry::noteFactory()->make(trim($text, '@'), $individual->tree()) ?> variable
62 <?php if ($note instanceof Note) : ?>
63 <?php if ($note->canShow()) : ?>
64 <a href="<?= e($note->url()) ?>">
68 … <?= (new SubmitterText(''))->value($note->getNote(), $individual->tree()) ?>
/webtrees/app/
H A DAuth.php367 * @param Note|null $note
374 public static function checkNoteAccess(Note|null $note, bool $edit = false): Note argument
378 if ($note === null) {
382 if ($edit && $note->canEdit()) {
383 $note->lock();
385 return $note;
388 if ($note->canShow()) {
389 return $note;
H A DMedia.php95 $note = $fact->target();
96 if ($note instanceof Note) {
97 return $note->getNote();
/webtrees/tests/app/
H A DNoteTest.php40 … $note = new Note('X123', "0 @X123@ NOTE 1\n1 CONT\n1 CONT 2\n1 CONT 3\n1 CONT 4", null, $tree);
42 self::assertSame('<bdi>1</bdi>', $note->fullName());
49 $note = new Note('X123', '0 @X123@ NOTE ' . $text, null, $tree);
51 … adipiscing elit, sed do eiusmod tempor incididunt.&quot; &quot;a quot…</bdi>', $note->fullName());
/webtrees/resources/views/edit/
H A Dshared-note.phtml20 …="<?= e(route(EditNoteAction::class, ['tree' => $tree->name(), 'xref' => $note->xref()])) ?>" clas…
27 …<textarea class="form-control" name="NOTE" id="NOTE" rows="10" dir="auto"><?= e($note->getNote()) …
43 <a class="btn btn-secondary" href="<?= e($note->url()) ?>">
/webtrees/resources/views/components/
H A Dselect-note.phtml33 <?php if (($note ?? null) instanceof Note) : ?>
34 <option value="<?= e($at . $note->xref() . $at) ?>">
35 <?= view('selects/note', ['note' => $note]) ?>
/webtrees/app/Services/
H A DMediaFileService.php236 * @param string $note
240 …public function createMediaFileGedcom(string $file, string $type, string $title, string $note): st… argument
265 if ($note !== '') {
267 $gedcom .= "\n1 NOTE " . strtr($note, ["\n" => "\n2 CONT "]);
H A DTreeService.php221 $note = I18N::translate('Edit this individual and replace their details with your own.');
222 … $indi = "0 @X1@ INDI\n1 NAME " . $name . "\n1 SEX M\n1 BIRT\n2 DATE 01 JAN 1850\n2 NOTE " . $note;
/webtrees/tests/app/Http/RequestHandlers/
H A DRedirectNotePhpTest.php53 $note = $this->createMock(Note::class);
54 $note
/webtrees/resources/views/
H A Dfact.phtml99 <?php foreach ($fact->target()->facts(['NOTE']) as $note) : ?>
100 …<?= view('fact-gedcom-fields', ['gedcom' => $note->gedcom(), 'parent' => $fact->target()->tag(), '…
/webtrees/resources/views/selects/
H A Dshared-note.phtml12 <?= $note->fullName() ?>

12345