Lines Matching refs:value

44      * @param string $value
49 public function edit(string $id, string $name, string $value, Tree $tree): string argument
55 if (preg_match('/^@' . Gedcom::REGEX_XREF . '@$/', $value)) {
56 return $xref_note->edit($id, $name, $value, $tree);
60 if ($value !== '') {
61 return $submitter_text->edit($id, $name, $value, $tree);
76 $submitter_text->edit($id, $name, $value, $tree) .
79 $xref_note->edit($id . '-select', $name, $value, $tree) .
99 * @param string $value
104 public function labelValue(string $value, Tree $tree): string argument
110 if (preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $value, $match) === 1) {
114 return parent::labelValue($value, $tree);
122 $value = $note->getNote();
123 $html = $this->valueFormatted($value, $tree);
128 $value = '<a href="' . e($note->url()) . '">' . strip_tags($html) . '</a>';
130 return '<div>' . I18N::translate('%1$s: %2$s', $label, $value) . '</div>';
147 $html = $this->valueFormatted($value, $tree);
152 $value = '<span class="ut">' . $html . '</span>';
154 return '<div>' . I18N::translate('%1$s: %2$s', $label, $value) . '</div>';
157 $value = e(Note::firstLineOfTextFromHtml($html));
158 …$value = '<span class="ut collapse ' . ($expanded ? '' : 'show') . ' ' . e($id) . '">' . $value . …
166 I18N::translate('%1$s: %2$s', $label, $value) .
176 * @param string $value
181 public function value(string $value, Tree $tree): string argument
183 if (preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $value, $match) === 1) {
187 $value = $note->getNote();
191 return parent::value($value, $tree);