/webtrees/resources/views/lists/ |
H A D | notes-table.phtml | 101 <?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 D | NoteStructure.php | 111 $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 D | EditNoteAction.php | 45 $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 D | TomSelectNote.php | 62 $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 D | TomSelectSharedNote.php | 62 $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 D | EditNotePage.php | 49 $note = Registry::noteFactory()->make($xref, $tree); 50 $note = Auth::checkNoteAccess($note, true); 53 'note' => $note,
|
H A D | CreateNoteAction.php | 42 $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 D | CreateMediaObjectFromFile.php | 60 $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 D | CreateMediaObjectAction.php | 65 $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 D | RedirectNotePhp.php | 51 $note = Registry::noteFactory()->make($nid, $tree); 53 if ($note instanceof Note) { 54 $url = $note->url();
|
/webtrees/app/Module/ |
H A D | FamilyTreeFavoritesModule.php | 141 $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 D | UserFavoritesModule.php | 143 $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 D | ClippingsCartModule.php | 617 $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 D | CensusAssistantModule.php | 139 $note = $individual->tree()->createRecord($note_gedcom); 141 $newged .= "\n2 NOTE @" . $note->xref() . '@';
|
/webtrees/resources/views/modules/notes/ |
H A D | tab.phtml | 61 … <?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 D | Auth.php | 367 * @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 D | Media.php | 95 $note = $fact->target(); 96 if ($note instanceof Note) { 97 return $note->getNote();
|
/webtrees/tests/app/ |
H A D | NoteTest.php | 40 … $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." "a quot…</bdi>', $note->fullName());
|
/webtrees/resources/views/edit/ |
H A D | shared-note.phtml | 20 …="<?= 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 D | select-note.phtml | 33 <?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 D | MediaFileService.php | 236 * @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 D | TreeService.php | 221 $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 D | RedirectNotePhpTest.php | 53 $note = $this->createMock(Note::class); 54 $note
|
/webtrees/resources/views/ |
H A D | fact.phtml | 99 <?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 D | shared-note.phtml | 12 <?= $note->fullName() ?>
|