Lines Matching full:if
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
98 … if ((int) $this->tree->getPreference('SHOW_DEAD_PEOPLE') >= $access_level && $this->isDead()) {
101 if ($KEEP_ALIVE_YEARS_BIRTH !== 0) {
105 … if ($date->isOK() && $date->gregorianYear() + $KEEP_ALIVE_YEARS_BIRTH > date('Y')) {
112 if ($KEEP_ALIVE_YEARS_DEATH !== 0) {
116 … if ($date->isOK() && $date->gregorianYear() + $KEEP_ALIVE_YEARS_DEATH > date('Y')) {
122 if (!$keep_alive) {
130 if ($gedcomid !== '' && $user_path_length > 0) {
151 if ($user_individual instanceof Individual) {
152 if (!$cache) {
159 if ($family instanceof Family) {
174 if (array_key_exists($n, $cache)) {
176 if ($n % 2 === 0 && in_array($target, $cache[$n], true)) {
182 if ($n % 2 === 0) {
188 … if ($individual instanceof self && !in_array($individual, $cache[$n - 2], true)) {
193 if (in_array($target, $cache[$n], true)) {
202 … if ($family instanceof Family && !in_array($family, $cache[$n - 2], true)) {
216 * If not known to be dead, then assume living.
226 …if (preg_match('/\n1 (?:' . implode('|', Gedcom::DEATH_EVENTS) . ')(?: Y|(?:\n[2-9].+)*\n2 (DATE|P…
230 … // If any event occurred more than $MAX_ALIVE_AGE years ago, then assume the individual is dead
231 if (preg_match_all('/\n2 DATE (.+)/', $this->gedcom, $date_matches)) {
234 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * $MAX_ALIVE_AGE) {
239 // If one of these is a birth, the individual must be alive.
240 if (preg_match('/\n1 BIRT(?:\n[2-9].+)*\n2 DATE /', $this->gedcom)) {
245 // If we found no conclusive dates then check the dates of close relatives.
254 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE + 45)) {
267 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE - 10)) {
273 if ($spouse) {
278 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE + 40)) {
289 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE - 15)) {
300 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE - 30)) {
324 if ($fact instanceof Fact && $fact->target() instanceof Media) {
333 * Use an icon if no image is available.
346 if ($media_file !== null) {
350 if ($this->tree->getPreference('USE_SILHOUETTE') === '1') {
365 if ($date->isOK()) {
395 if ($date->isOK()) {
440 if ($birth_year === '') {
444 if ($death_year === '' && $this->isDead()) {
466 if ($dates !== []) {
484 if ($places !== []) {
502 if ($dates !== []) {
520 if ($places !== []) {
535 if ($this->estimated_birth_date === null) {
537 if ($date->isOK()) {
542 if ($this->estimated_birth_date === null) {
546 if ($tmp->isOK()) {
552 if ($tmp->isOK()) {
557 if ($husband instanceof self) {
559 if ($tmp->isOK()) {
565 if ($wife instanceof self) {
567 if ($tmp->isOK()) {
574 if ($tmp->isOK()) {
582 if ($tmp->isOK()) {
587 if ($spouse) {
589 if ($tmp->isOK()) {
596 if ($tmp->isOK()) {
602 if ($min && $max) {
623 if ($this->estimated_death_date === null) {
625 if ($date->isOK()) {
630 if ($this->estimated_death_date === null) {
631 if ($this->getEstimatedBirthDate()->minimumJulianDay() !== 0) {
652 if (preg_match('/\n1 SEX ([MFX])/', $this->gedcom . $this->pending, $match)) {
670 if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
677 if ($family instanceof Family && $family->canShow($access_level)) {
697 if ($family instanceof Family) {
711 if (preg_match('/\n1 NCHI (\d+)(?:\n|$)/', $this->gedcom(), $match)) {
736 if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
744 if ($family instanceof Family && $family->canShow($access_level)) {
764 if (!$families->containsStrict($step_family)) {
787 if ($spouse instanceof self) {
789 if (!$families->containsStrict($step_family)) {
810 if ($fact instanceof Fact) {
839 if ($family !== $step_family) {
843 if ($parent === $step_parent) {
845 if ($parent->sex() === 'M') {
847 if ($step_family->spouse($step_parent) instanceof Individual) {
857 if ($step_family->spouse($step_parent) instanceof Individual) {
887 if ($spouse instanceof Individual) {
896 * If this object has no name, what do we call it?
947 if ($SURN !== '') {
961 if (substr_count($value, '/') % 2 === 1) {
970 if (preg_match('/\/.*\//', $full, $match)) {
976 // If we don’t have a SURN record, extract it from the NAME
977 if (!$SURNS) {
978 if (preg_match_all('/\/([^\/]*)\//', $full, $matches)) {
991 // If we don’t have a GIVN record, extract it from the NAME
992 if (!$GIVN) {
1004 if (!$GIVN) {
1032 if (strcasecmp(substr($SURN, 0, 2), 'Mc') === 0) {