Lines Matching full:if
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
186 if (preg_match('/^1 (' . Gedcom::REGEX_TAG . ')/', $gedcom, $match)) {
204 if (preg_match('/^1 ' . $this->tag . ' ?(.*(?:\n2 CONT ?.*)*)/', $this->gedcom, $match)) {
220 if (!preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $this->value(), $match)) {
270 if (preg_match('/\n2 ' . $tag . '\b ?(.*(?:(?:\n3 CONT ?.*)*)*)/', $this->gedcom, $match)) {
284 if (preg_match('/\n4 LATI (.+)/', $this->gedcom, $match)) {
298 if (preg_match('/\n4 LONG (.+)/', $this->gedcom, $match)) {
322 if (str_starts_with($restriction, RestrictionNotice::VALUE_CONFIDENTIAL)) {
326 if (str_starts_with($restriction, RestrictionNotice::VALUE_PRIVACY)) {
329 if (str_starts_with($restriction, RestrictionNotice::VALUE_NONE)) {
337 if ($target instanceof GedcomRecord && $target->tag() === $this->tag) {
345 if (isset($individual_fact_privacy[$xref][$this->tag])) {
348 if (isset($fact_privacy[$this->tag])) {
363 if ($this->isPendingDeletion()) {
367 if (Auth::isManager($this->record->tree())) {
448 …if (str_ends_with($this->tag(), ':NOTE') && preg_match('/^@' . Gedcom::REGEX_XREF . '@$/', $this->…
453 if ($this->tag() === 'FAM:MARR') {
457 if ($type !== '') {
463 if ($this->tag === 'FACT' || $this->tag === 'EVEN') {
466 if ($type !== '') {
467 if (!str_contains($type, '%')) {
471 if ($translated !== $type) {
534 if ($target instanceof GedcomRecord) {
539 if ($value !== '' && $value !== 'Y') {
544 if ($date->isOK()) {
545 …if ($this->record instanceof Individual && in_array($this->tag, Gedcom::BIRTH_EVENTS, true) && $th…
552 if ($this->place()->gedcomName() !== '') {
558 if ($this->isPendingAddition()) {
581 if ($target instanceof GedcomRecord) {
586 if ($value !== '' && $value !== 'Y') {
591 if ($this->date()->isOK()) {
596 if ($this->place()->gedcomName() !== '') {
612 if ($a->date()->isOK() && $b->date()->isOK()) {
613 // If both events have dates, compare by date
616 if ($ret === 0) {
617 // If dates overlap, compare by fact type
620 // If the fact type is also the same, retain the initial order
621 if ($ret === 0) {
643 if ($factsort === []) {
651 … if ($a->record instanceof Family && $b->record instanceof Family && $a->record !== $b->record) {
660 if (!array_key_exists($atag, $factsort)) {
664 if (!array_key_exists($btag, $factsort)) {
670 …if ($a->attribute('DATE') !== '' && $factsort[$atag] > $factsort['BURI'] && $factsort[$atag] < $fa…
674 …if ($b->attribute('DATE') !== '' && $factsort[$btag] > $factsort['BURI'] && $factsort[$btag] < $fa…
678 // If facts are the same then put dated facts before non-dated facts
679 if ($atag === $btag) {
680 if ($a->attribute('DATE') !== '' && $b->attribute('DATE') === '') {
684 if ($b->attribute('DATE') !== '' && $a->attribute('DATE') === '') {
688 // If no sorting preference, then keep original ordering
720 if ($fact->date()->isOK()) {
739 if ($j < $nc && self::typeComparator()($dated[$i], $nondated[$j]) > 0) {