Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 130) sorted by relevance

123456

/webtrees/resources/views/edit/
H A Dedit-gedcom-fields.phtml25 foreach ($keys as $num => $key) {
26 $hierarchy[$levels[$key]] = $tags[$key];
27 …$elements[$key] = Registry::elementFactory()->make(implode(':', array_slice($hierarchy, …
28 …$ids[$key] = Registry::idFactory()->id() . '-' . implode('-', array_slice($hierarch…
31 $has_subtags = ($levels[$key + 1] ?? 0) > $levels[$key];
35 for ($n = $key + 1; $n < count($keys) && $levels[$n] > $levels[$key]; ++$n) {
42 $indent[$key] = $elements[$key]->collapseChildren() && $has_subtags;
44 $collapse[$key] = $num > 0 && $indent[$key] && !$has_subtags_with_values;
48 <?php foreach ($keys as $key) : ?>
49 <?php if ($indent[$key - 1] ?? false) : ?>
[all …]
/webtrees/resources/views/
H A Dfact-gedcom-fields.phtml33 foreach ($keys as $key) {
34 $hierarchy[$levels[$key]] = $tags[$key];
35 $full_tag = implode(':', array_slice($hierarchy, 0, 1 + $levels[$key]));
36 $elements[$key] = Registry::elementFactory()->make($full_tag);
38 …if ($elements[$key] instanceof AbstractXrefElement && preg_match('/^@(' . Gedcom::REGEX_XREF . ')@…
42 $private_level = min($private_level, $levels[$key]);
46 if ($levels[$key] >= $private_level) {
47 $values[$key] = '';
79 <?php foreach ($keys as $key) : ?>
80 <?php if ($values[$key] !== '') : ?>
[all …]
/webtrees/resources/views/admin/
H A Dlocations.phtml58 <tr class="<?= $active[$place->key] ?? null ? '' : 'unused-location collapse show' ?>">
103 <?php if ($list_module !== null && array_key_exists($place->key, $active)) : ?>
104 <?php if (count($active[$place->key]) === 1) : ?>
105 …_module->listUrl($all_trees->get($active[$place->key][0]->tree_name), ['place_id' => $active[$plac…
106 <?= e($active[$place->key][0]->tree_title) ?>
111 …amily tree', '%s family trees', count($active[$place->key]), I18N::number(count($active[$place->ke…
115 <?php foreach ($active[$place->key] as $n => $link) : ?>
116 …wn-item" href="<?= e($list_module->listUrl($all_trees->get($active[$place->key][$n]->tree_name), […
127 <?php if (!array_key_exists($place->key, $active)) : ?>
/webtrees/app/Http/RequestHandlers/
H A DTreePreferencesPage.php141 … ->filter(static fn (string $value, string $key): bool => !in_array($key, $ignore_facts, true))
142 ->mapWithKeys(static fn (string $value, string $key): array => [$key => 'FAM:' . $key])
149 … ->filter(static fn (string $value, string $key): bool => !in_array($key, $ignore_facts, true))
150 ->mapWithKeys(static fn (string $value, string $key): array => [$key => 'INDI:' . $key])
H A DUploadMediaAction.php73 foreach ($request->getUploadedFiles() as $key => $uploaded_file) {
82 $key = substr($key, 9);
83 $folder = Validator::parsedBody($request)->string('folder' . $key);
84 $filename = Validator::parsedBody($request)->string('filename' . $key);
H A DReportSetupPage.php164 [$key, $value] = explode('=>', $option);
168 $options[$key] = I18N::number($number, $precision);
170 $options[$key] = I18N::translate($match[1]);
172 $options[$key] = I18N::translateContext($match[1], $match[2]);
H A DSetupWizard.php206 foreach (self::DEFAULT_DATA as $key => $default) {
207 $data[$key] = Validator::parsedBody($request)->string($key, $default);
455 key: $data['dbkey'],
472 key: $data['dbkey'],
/webtrees/app/
H A DCache.php47 * @param string $key
53 public function remember(string $key, Closure $closure, int|null $ttl = null) argument
55 … return $this->cache->get(md5($key), static function (ItemInterface $item) use ($closure, $ttl) {
65 * @param string $key
67 public function forget(string $key): void argument
69 $this->cache->delete(md5($key));
H A DHtml.php46 foreach ($attributes as $key => $value) {
48 $html[] = e($key) . '="' . e($value) . '"';
50 $html[] = e($key) . '="' . $value . '"';
52 $html[] = e($key) . '="' . e($key) . '"';
H A DDB.php85 string $key, argument
99 if ($driver === self::MYSQL && $key !== '' && $certificate !== '' && $ca !== '') {
101 $options[PDO::MYSQL_ATTR_SSL_KEY] = Webtrees::ROOT_DIR . 'data/' . $key;
/webtrees/app/Services/
H A DRomanNumeralsService.php62 foreach (self::ROMAN_NUMERALS as $key => $value) {
63 while ($number >= $key) {
65 $number -= $key;
82 foreach (self::ROMAN_NUMERALS as $key => $value) {
84 $num += $key;
H A DDatatablesService.php79 $key = $sort_columns[$column['column']];
83 $comparison = $row1[$key] <=> $row2[$key];
85 $comparison = $row2[$key] <=> $row1[$key];
/webtrees/resources/views/components/
H A Dselect.phtml24 <?php foreach ($options as $key => $value) : ?>
25 …<option value="<?= e((string) $key) ?>"<?= (is_array($selected) ? in_array($key, $selected, false)…
H A Dmenu-item.phtml25 <?php foreach ($submenu->getAttrs() as $key => $value) : ?>
26 <?= e($key) ?>="<?= e($value) ?>"
40 <?php foreach ($menu->getAttrs() as $key => $value) : ?>
41 <?= e($key) ?>="<?= e($value) ?>"
/webtrees/resources/css/
H A D_on-screen-keyboard.css38 .wt-osk-key {
45 .wt-osk-key-shift {
50 .wt-osk-keys.shifted .wt-osk-key {
54 .wt-osk-keys.shifted .wt-osk-key-shift {
/webtrees/app/Elements/
H A DGovIdType.php311 array_walk($values, static function (string &$value, $key): void {
312 if (is_int($key)) {
313 $value .= ' — ' . I18N::number($key);
H A DAbstractElement.php271 foreach ($this->subtags as $key => $value) {
272 if ($key === $before) {
275 $tmp[$key] = $value;
/webtrees/app/Module/
H A DModuleMapAutocompleteTrait.php55 $key = $this->name() . $place;
60 return $cache->remember($key, function () use ($place) {
78 $cache->remember($key, fn () => [], 3600);
/webtrees/tests/
H A DTestCase.php76 key: '',
119 foreach ($attributes as $key => $value) {
120 $request = $request->withAttribute($key, $value);
122 if ($key === 'tree') {
/webtrees/resources/views/lists/
H A Dindividuals-table.phtml194 <?php foreach ($individuals as $key => $individual) : ?>
212 <td class="text-center" data-sort="<?= $key ?>">
216 <?= I18N::number($key) ?>
219 <?= I18N::number($key) ?>
/webtrees/app/Factories/
H A DRouteFactory.php73 …ters, static fn (string $key): bool => !str_contains($route->path, '{' . $key . '}') && !str_conta…
/webtrees/resources/js/
H A Dwebtrees.js557 const key = 'state-of-' + element.dataset.wtPersist;
558 const previous_state = localStorage.getItem(key);
571 localStorage.setItem(key, element.checked.toString());
574 localStorage.setItem(key, element.getAttribute('aria-expanded'));
969 let key = $(this).contents().get(0).nodeValue;
973 key = shift_key.innerText;
975 webtrees.pasteAtCursor(osk_focus_element, key);
/webtrees/app/Http/Middleware/
H A DRouter.php146 foreach ($route->attributes as $key => $value) {
147 if ($key === 'tree') {
160 $request = $request->withAttribute((string) $key, $value);
/webtrees/app/Schema/
H A DMigration0.php86 $key = DB::prefix($table->getTable() . '_primary');
88 $table->primary(['user_id', 'gedcom_id', 'setting_name'], $key);
380 $key = DB::prefix($table->getTable() . '_primary');
382 $table->primary(['gedcom_id', 'page_name', 'page_parameter'], $key);
/webtrees/public/js/
H A Dwebtrees.min.js1key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_definePropert… property

123456