summaryrefslogtreecommitdiff
path: root/resources/views/modules
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-11-11 06:49:16 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-11-18 09:14:43 +0000
commit2decada70ae5df289448aadc0d1089d2606545d1 (patch)
treec1c7127743c6a2e3822d8f76a20b6b6e6204db6b /resources/views/modules
parent4fb14fcb5ee76066edbf821710fa9ec3480291bf (diff)
downloadwebtrees-2decada70ae5df289448aadc0d1089d2606545d1.tar.gz
webtrees-2decada70ae5df289448aadc0d1089d2606545d1.tar.bz2
webtrees-2decada70ae5df289448aadc0d1089d2606545d1.zip
Rename Fact::getDate() to date()
Diffstat (limited to 'resources/views/modules')
-rw-r--r--resources/views/modules/relatives/family.phtml10
-rw-r--r--resources/views/modules/sitemap/sitemap-file.xml.phtml2
-rw-r--r--resources/views/modules/todays_events/list.phtml2
-rw-r--r--resources/views/modules/todays_events/table.phtml4
-rw-r--r--resources/views/modules/todo/research-tasks.phtml4
-rw-r--r--resources/views/modules/upcoming_events/list.phtml2
-rw-r--r--resources/views/modules/upcoming_events/table.phtml4
-rw-r--r--resources/views/modules/yahrzeit/list.phtml2
8 files changed, 15 insertions, 15 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index 80c529df6c..08b0fab15c 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -106,13 +106,13 @@
<th scope="row">
</th>
<td>
- <?= GedcomTag::getLabelValue($fact->getTag(), $fact->getDate()->display() . ' — ' . $fact->place()->getFullName()) ?>
+ <?= GedcomTag::getLabelValue($fact->getTag(), $fact->date()->display() . ' — ' . $fact->place()->getFullName()) ?>
</td>
</tr>
<?php
- if (!$prev->isOK() && $fact->getDate()->isOK()) {
- $prev = $fact->getDate();
+ if (!$prev->isOK() && $fact->date()->isOK()) {
+ $prev = $fact->date();
}
}
@@ -146,8 +146,8 @@
}
$next = new Date('');
foreach ($person->getFacts(WT_EVENTS_BIRT, true) as $bfact) {
- if ($bfact->getDate()->isOK()) {
- $next = $bfact->getDate();
+ if ($bfact->date()->isOK()) {
+ $next = $bfact->date();
break;
}
}
diff --git a/resources/views/modules/sitemap/sitemap-file.xml.phtml b/resources/views/modules/sitemap/sitemap-file.xml.phtml
index 451ff3cc32..5a04d15b3f 100644
--- a/resources/views/modules/sitemap/sitemap-file.xml.phtml
+++ b/resources/views/modules/sitemap/sitemap-file.xml.phtml
@@ -4,7 +4,7 @@
<url>
<loc><?= e($record->url()) ?></loc>
<?php if ($record->getFirstFact('CHAN') !== null) : ?>
- <lastmod><?= $record->getFirstFact('CHAN')->getDate()->minimumDate()->Format('%Y-%m-%d') ?></lastmod>
+ <lastmod><?= $record->getFirstFact('CHAN')->date()->minimumDate()->Format('%Y-%m-%d') ?></lastmod>
<?php endif ?>
</url>
<?php endforeach ?>
diff --git a/resources/views/modules/todays_events/list.phtml b/resources/views/modules/todays_events/list.phtml
index 26ac326644..6149117d4a 100644
--- a/resources/views/modules/todays_events/list.phtml
+++ b/resources/views/modules/todays_events/list.phtml
@@ -10,7 +10,7 @@
<?= $record->getSexImage() ?>
<?php endif ?>
<div class="indent">
- <?= $fact->getLabel() . ' — ' . $fact->getDate()->display(true); ?>
+ <?= $fact->getLabel() . ' — ' . $fact->date()->display(true); ?>
<?= ' (' . I18N::timeAgo($fact->anniv * 365 * 24 * 60 * 60) . ')'; ?>
<?php if (!$fact->place()->isEmpty()) : ?>
<?= ' — <a href="' . $fact->place()->getURL() . '">' . $fact->place()->getFullName() . '</a>'; ?>
diff --git a/resources/views/modules/todays_events/table.phtml b/resources/views/modules/todays_events/table.phtml
index 05a7f789a6..0d69bb08d1 100644
--- a/resources/views/modules/todays_events/table.phtml
+++ b/resources/views/modules/todays_events/table.phtml
@@ -32,8 +32,8 @@
<?= $record->getSexImage() ?>
<?php endif ?>
</td>
- <td data-sort="<?= $fact->getDate()->julianDay() ?>">
- <?= $fact->getDate()->display(true); ?>
+ <td data-sort="<?= $fact->date()->julianDay() ?>">
+ <?= $fact->date()->display(true); ?>
</td>
<td data-sort="<?= $fact->anniv ?>">
<?= $fact->anniv ?>
diff --git a/resources/views/modules/todo/research-tasks.phtml b/resources/views/modules/todo/research-tasks.phtml
index ec1cb9bd3b..ddd01fc401 100644
--- a/resources/views/modules/todo/research-tasks.phtml
+++ b/resources/views/modules/todo/research-tasks.phtml
@@ -21,8 +21,8 @@
<tbody>
<?php foreach ($tasks as $task) : ?>
<tr>
- <td data-sort="<?= $task->getDate()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional">
- <?= $task->getDate()->display() ?>
+ <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional">
+ <?= $task->date()->display() ?>
</td>
<td data-sort="<?= e($task->record()->getSortName()) ?>">
<a href="<?= e($task->record()->url()) ?>">
diff --git a/resources/views/modules/upcoming_events/list.phtml b/resources/views/modules/upcoming_events/list.phtml
index 26ac326644..6149117d4a 100644
--- a/resources/views/modules/upcoming_events/list.phtml
+++ b/resources/views/modules/upcoming_events/list.phtml
@@ -10,7 +10,7 @@
<?= $record->getSexImage() ?>
<?php endif ?>
<div class="indent">
- <?= $fact->getLabel() . ' — ' . $fact->getDate()->display(true); ?>
+ <?= $fact->getLabel() . ' — ' . $fact->date()->display(true); ?>
<?= ' (' . I18N::timeAgo($fact->anniv * 365 * 24 * 60 * 60) . ')'; ?>
<?php if (!$fact->place()->isEmpty()) : ?>
<?= ' — <a href="' . $fact->place()->getURL() . '">' . $fact->place()->getFullName() . '</a>'; ?>
diff --git a/resources/views/modules/upcoming_events/table.phtml b/resources/views/modules/upcoming_events/table.phtml
index 05a7f789a6..0d69bb08d1 100644
--- a/resources/views/modules/upcoming_events/table.phtml
+++ b/resources/views/modules/upcoming_events/table.phtml
@@ -32,8 +32,8 @@
<?= $record->getSexImage() ?>
<?php endif ?>
</td>
- <td data-sort="<?= $fact->getDate()->julianDay() ?>">
- <?= $fact->getDate()->display(true); ?>
+ <td data-sort="<?= $fact->date()->julianDay() ?>">
+ <?= $fact->date()->display(true); ?>
</td>
<td data-sort="<?= $fact->anniv ?>">
<?= $fact->anniv ?>
diff --git a/resources/views/modules/yahrzeit/list.phtml b/resources/views/modules/yahrzeit/list.phtml
index bd70ebebac..8642f1510b 100644
--- a/resources/views/modules/yahrzeit/list.phtml
+++ b/resources/views/modules/yahrzeit/list.phtml
@@ -6,7 +6,7 @@
</a>
<?= $yahrzeit->individual->getSexImage() ?>
<div class="indent">
- <?= $yahrzeit->fact->getDate()->display(true) ?>,
+ <?= $yahrzeit->fact->date()->display(true) ?>,
<?= I18N::translate('%s year anniversary', $yahrzeit->fact->anniv) ?>
</div>
<?php endforeach ?>