Lines Matching full:if

15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
131 if ($x->canShowName()) {
132 if ($y->canShowName()) {
139 if ($y->canShowName()) {
249 if ($access_level === Auth::PRIV_HIDE) {
277 if ($this->isPendingDeletion()) {
281 if (Auth::isManager($this->tree)) {
296 if ($access_level === Auth::PRIV_HIDE) {
300 if (!$this->canShow($access_level)) {
329 if ($record === null || !$record->canShow($access_level)) {
355 if ($this->getAllNames === []) {
356 if ($this->canShowName()) {
360 if ($this->getAllNames === []) {
372 * If this object has no name, what do we call it?
392 if ($this->getPrimaryName === null) {
397 if (I18N::textScript($name['sort']) === $language_script) {
414 if ($this->getSecondaryName === null) {
419 if (count($all_names) > 1) {
422if ($n !== $this->getPrimaryName() && $name['type'] !== '_MARNM' && I18N::textScript($name['sort']…
464 if ($this->canShowName()) {
493 if ($this->canShowName() && $this->getPrimaryName() !== $this->getSecondaryName()) {
540 if ($fact === null) {
544 // Only display if it has a date or place (or both)
547 if ($fact->date()->isOK()) {
551 if ($fact->place()->gedcomName() !== '' && $style === 2) {
555 if ($attributes === []) {
577 if ($event->date()->isOK()) {
596if (preg_match_all('/\n(?:2 PLAC|3 (?:ROMN|FONE|_HEB)) +(.+)/', $event->gedcom(), $ged_places)) {
628 if ($this->canShow($access_level)) {
630if (($filter === [] || in_array($fact->tag(), $filter, true)) && $fact->canShow($access_level)) {
636 if ($sort) {
647 if ($subtags !== []) {
663 if ($ignore_deleted) {
681 if ($this->facts([$subtag], false, null, true)->count() < $max) {
689 if (!Auth::canUploadMedia($this->tree, Auth::user())) {
708 if ($chan instanceof Fact) {
713 if ($ymd !== '') {
715if (preg_match('/\n3 TIME (([01]\d|2[0-3]):([0-5]\d):([0-5]\d))/', $chan->gedcom(), $match) === 1)…
719if (preg_match('/\n3 TIME (([01]\d|2[0-3]):([0-5]\d))/', $chan->gedcom(), $match) === 1) {
740 if ($chan === null) {
745 if ($chan_user === '') {
797 if ($this->pending === '') {
800 if ($gedcom !== '' && !preg_match('/^1 ' . Gedcom::REGEX_TAG . '/', $gedcom)) {
804 if ($this->pending !== null && $this->pending !== '') {
815 if ($fact->id() === $fact_id) {
816 if ($gedcom !== '') {
828 if ($fact_id === '') {
832 if ($update_chan && !str_contains($new_gedcom, "\n1 CHAN")) {
836 if ($new_gedcom !== $old_gedcom) {
849 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
879 if ($update_chan) {
880 if (preg_match('/\n1 CHAN(\n[2-9].*)*/', $gedcom, $match)) {
901 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
922 if (!$this->isPendingDeletion()) {
934 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
955 if ($fact->value() === $value) {
980 if (isset($fact_privacy[static::RECORD_TYPE])) {
1031if (preg_match_all('/^' . $level . ' (' . $fact_type . ') (.+)((\n[' . $sublevel . '-9].+)*)/m', $…
1034if ($match[1] === 'NAME' && str_contains(strtoupper($match[3]), "\n2 TYPE MARRIED")) {
1039if ($match[3] && preg_match_all('/^' . $sublevel . ' (ROMN|FONE|_\w+) (.+)((\n[' . $subsublevel . …
1041 if ($submatch[1] !== '_RUFNAME') {
1059 if ($this->gedcom !== '') {
1065 if ($this->pending !== null && $this->pending !== '') {
1076 if ($this->pending !== null && !in_array($gedcom_fact, $pending_facts, true)) {
1082 if (!in_array($pending_fact, $gedcom_facts, true)) {
1102 if (!$this->tree->getPreference('HIDE_LIVE_PEOPLE')) {
1107if ($this->xref() === $this->tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUN…
1113 if (preg_match('/\n1 RESN (.+)/', $this->gedcom(), $match)) {
1117 if (str_starts_with($restriction, RestrictionNotice::VALUE_CONFIDENTIAL)) {
1120 if (str_starts_with($restriction, RestrictionNotice::VALUE_PRIVACY)) {
1123 if (str_starts_with($restriction, RestrictionNotice::VALUE_NONE)) {
1130 if (isset($individual_privacy[$this->xref()])) {
1135 if (Auth::PRIV_NONE >= $access_level) {