Lines Matching refs:value
303 foreach ($attrs as $key => $value) {
304 if (preg_match("/^\\$(\w+)$/", $value, $match)) {
306 $value = $this->vars[$match[1]]['id'];
309 $newattrs[$key] = $value;
1023 $value = $this->desc;
1024 $value = trim($value);
1025 $this->current_element->addText($value);
1040 $value = $this->getGedcomValue($tag, $level, $this->gedrec);
1043 $tmp = new Date($value);
1044 $value = strip_tags($tmp->display());
1047 $tmp = new Place($value, $this->tree);
1048 $value = $tmp->shortName();
1054 $value = str_replace('(', '<br>(', $value);
1055 $value = str_replace('<span dir="ltr"><br>', '<br><span dir="ltr">', $value);
1056 $value = str_replace('<span dir="rtl"><br>', '<br><span dir="rtl">', $value);
1057 if (substr($value, 0, 4) === '<br>') {
1058 $value = substr($value, 4);
1064 … $value = strip_tags(Registry::markdownFactory()->markdown($value, $this->tree), ['br']);
1066 … $value = strip_tags(Registry::markdownFactory()->autolink($value, $this->tree), ['br']);
1068 $value = strtr($value, [MarkdownFactory::BREAK => ' ']);
1072 $value = Str::limit($value, (int) $attrs['truncate'], I18N::translate('…'));
1074 $this->current_element->addText($value);
1100 $value = $this->desc;
1101 $value = trim($value);
1102 $this->current_element->addText($value);
1460 $value = $attrs['value'];
1463 if ($value === '@ID') {
1465 $value = $match[1];
1467 } elseif ($value === '@fact') {
1468 $value = $this->fact;
1469 } elseif ($value === '@desc') {
1470 $value = $this->desc;
1471 } elseif ($value === '@generation') {
1472 $value = (string) $this->generation;
1473 } elseif (preg_match("/@(\w+)/", $value, $match)) {
1476 $value = str_replace('@', '', trim($gmatch[1]));
1482 $count = preg_match_all("/\\$(\w+)/", $value, $match, PREG_SET_ORDER);
1486 $value = preg_replace('/\$' . $match[$i][1] . '/', $t, $value, 1);
1489 if (preg_match('/^I18N::number\((.+)\)$/', $value, $match)) {
1490 $value = I18N::number((int) $match[1]);
1491 } elseif (preg_match('/^I18N::translate\(\'(.+)\'\)$/', $value, $match)) {
1492 $value = I18N::translate($match[1]);
1493 } elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $value, $match)) {
1494 $value = I18N::translateContext($match[1], $match[2]);
1498 if (preg_match("/(\d+)\s*([-+*\/])\s*(\d+)/", $value, $match)) {
1504 $value = (string) $expression_language->evaluate($value);
1507 if (str_contains($value, '@')) {
1508 $value = '';
1510 $this->vars[$name]['id'] = $value;
1544 $value = '""';
1547 $value = "'" . $match[1] . "'";
1550 $value = '"' . $this->fact . '"';
1552 $value = '"' . addslashes($this->desc) . '"';
1554 $value = '"' . $this->generation . '"';
1560 $value = $this->getGedcomValue($id, $level, $this->gedrec);
1561 if (empty($value)) {
1563 $value = $this->getGedcomValue($id, $level, $this->gedrec);
1565 $value = preg_replace('/^@(' . Gedcom::REGEX_XREF . ')@$/', '$1', $value);
1566 $value = '"' . addslashes($value) . '"';
1568 $condition = str_replace("@$id", $value, $condition);
1913 foreach ($attrs as $attr => $value) {
1914 if (str_starts_with($attr, 'filter') && $value !== '') {
1915 $value = $this->substituteVars($value, false);
1917 if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) {
1936 } elseif (preg_match('/^NAME CONTAINS (.+)$/', $value, $match)) {
1950 } elseif (preg_match('/^LIKE \/(.+)\/$/', $value, $match)) {
1958 } elseif (preg_match('/^(?:\w*):PLAC CONTAINS (.+)$/', $value, $match)) {
1972 } elseif (preg_match('/^(\w*):(\w+) CONTAINS (.+)$/', $value, $match)) {
1977 } elseif (preg_match('/^(\w+) CONTAINS (.*)$/', $value, $match)) {
1999 foreach ($attrs as $attr => $value) {
2000 if (str_starts_with($attr, 'filter') && $value !== '') {
2001 $value = $this->substituteVars($value, false);
2003 if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) {
2022 } elseif (preg_match('/^LIKE \/(.+)\/$/', $value, $match)) {
2030 } elseif (preg_match('/^NAME CONTAINS (.*)$/', $value, $match)) {
2052 } elseif (preg_match('/^(?:\w*):PLAC CONTAINS (.+)$/', $value, $match)) {
2066 } elseif (preg_match('/^(\w*):(\w+) CONTAINS (.+)$/', $value, $match)) {
2071 } elseif (preg_match('/^(\w+) CONTAINS (.+)$/', $value, $match)) {
2094 foreach ($attrs as $key => $value) {
2096 $condition = $value;
2099 $value = "''";
2102 $value = "'" . $match[1] . "'";
2105 $value = "'" . $this->fact . "'";
2107 $value = "'" . $this->desc . "'";
2110 $value = "'" . str_replace('@', '', trim($match[1])) . "'";
2113 $condition = preg_replace("/@$id/", $value, $condition);
2476 foreach ($this->list as $key => $value) {
2477 $this->generation = $value->generation;
2542 foreach ($this->list as $xref => $value) {
2543 if (isset($value->generation)) {
2544 $this->generation = $value->generation;
2797 $value = trim($match[1]);
2798 if ($t === 'NOTE' && preg_match('/^@(.+)@$/', $value, $match)) {
2801 $value = $note->getNote();
2804 $value = $match[1];
2808 $value .= self::getCont($level + 1, $subrec);
2812 return strtr($value, ['/' => '']);
2815 return $value;