Lines Matching full:if
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
226 * @return string the subrecord that was found or an empty string "" if not found.
230 if ($gedrec === '') {
238 if ($ct === 0) {
241 if ($ct < $num) {
246 if (!$pos2) {
249 if (!$pos2) {
252 if (!$pos2) {
276 if (substr($thisSubrecord, 0, 2) !== $nlevel . ' ') {
280 if ($subrecordType === 'CONT') {
291 * The element handler will be called if found, otherwise it must be HTML
304 if (preg_match("/^\\$(\w+)$/", $value, $match)) {
305 … if (isset($this->vars[$match[1]]['id']) && !isset($this->vars[$match[1]]['gedcom'])) {
312 …if ($this->process_footnote && ($this->process_ifs === 0 || $name === 'if') && ($this->process_ged…
315 if (method_exists($this, $method)) {
324 * The element handler will be called if found, otherwise it must be HTML
333 …if (($this->process_footnote || $name === 'Footnote') && ($this->process_ifs === 0 || $name === 'i…
336 if (method_exists($this, $method)) {
352 …if ($this->print_data && $this->process_gedcoms === 0 && $this->process_ifs === 0 && $this->proces…
366 if (empty($attrs['name'])) {
393 if (!empty($attrs['customwidth'])) {
397 if (!empty($attrs['customheight'])) {
402 if (isset($attrs['leftmargin'])) {
403 if ($attrs['leftmargin'] === '0') {
410 if (isset($attrs['rightmargin'])) {
411 if ($attrs['rightmargin'] === '0') {
418 if (isset($attrs['topmargin'])) {
419 if ($attrs['topmargin'] === '0') {
426 if (isset($attrs['bottommargin'])) {
427 if ($attrs['bottommargin'] === '0') {
434 if (isset($attrs['headermargin'])) {
435 if ($attrs['headermargin'] === '0') {
442 if (isset($attrs['footermargin'])) {
443 if ($attrs['footermargin'] === '0') {
451 if (!empty($attrs['orientation'])) {
452 if ($attrs['orientation'] === 'landscape') {
459 if (!empty($attrs['pageSize'])) {
464 if (isset($attrs['showGeneratedBy'])) {
465 if ($attrs['showGeneratedBy'] === '0') {
529 if ($align === 'rightrtl') {
530 if ($this->wt_report->rtl) {
536 if ($this->wt_report->rtl) {
549 // If true reset the last cell height
558 …// Cell height (expressed in points) The starting height of this cell. If the text wraps the heigh…
569 if (isset($attrs['left'])) {
570 if ($attrs['left'] === '.') {
580 if (isset($attrs['top'])) {
581 if ($attrs['top'] === '.') {
598 if (isset($attrs['newline'])) {
599 if (!empty($attrs['newline'])) {
606 if ($align === 'left') {
687 if ($this->process_gedcoms > 0) {
697 if (count($tags) < 2) {
701 if (empty($newgedrec)) {
705 if (preg_match('/\$(.+)/', $tag, $match)) {
706 if (isset($this->vars[$match[1]]['gedcom'])) {
713 if (preg_match('/@(.+)/', $tag, $match)) {
715 if (preg_match("/\d $match[1] @([^@]+)@/", $tgedrec, $gmatch)) {
731 if (!empty($newgedrec)) {
734 if (preg_match("/(\d+) (_?[A-Z0-9]+) (.*)/", $this->gedrec, $match)) {
750 if ($this->process_gedcoms > 0) {
768 if (!empty($attrs['bgcolor'])) {
774 if (isset($attrs['fill'])) {
775 if ($attrs['fill'] === '0') {
784 if (isset($attrs['border'])) {
785 if ($attrs['border'] === '1') {
792 …// int The starting height of this cell. If the text wraps the height will automatically be adjust…
794 if (!empty($attrs['height'])) {
799 if (!empty($attrs['width'])) {
805 if (isset($attrs['left'])) {
806 if ($attrs['left'] === '.') {
816 if (isset($attrs['top'])) {
817 if ($attrs['top'] === '.') {
827 if (isset($attrs['newline'])) {
828 if ($attrs['newline'] === '1') {
836 if (isset($attrs['pagecheck'])) {
837 if ($attrs['pagecheck'] === '0') {
845 if (isset($attrs['padding'])) {
846 if ($attrs['padding'] === '0') {
854 if (isset($attrs['reseth'])) {
855 if ($attrs['reseth'] === '1') {
917 if (!empty($attrs['style'])) {
923 if (!empty($attrs['color'])) {
955 if (empty($attrs['id'])) {
956 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
960 if (preg_match('/\$(.+)/', $attrs['id'], $match)) {
961 if (isset($this->vars[$match[1]]['id'])) {
965 if (preg_match('/@(.+)/', $attrs['id'], $match)) {
967 if (preg_match("/\d $match[1] @([^@]+)@/", $this->gedrec, $gmatch)) {
975 if (!empty($id)) {
977 if ($record === null) {
980 if (!$record->canShowName()) {
985 if (!empty($attrs['truncate'])) {
990 if (!empty($addname)) {
1010 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
1014 if (isset($attrs['newline']) && $attrs['newline'] === '1') {
1021 if (!empty($tag)) {
1022 if ($tag === '@desc') {
1027 if ($tag === '@id') {
1031 if (empty($attrs['level'])) {
1033 if ($level === 0) {
1051 if ($useBreak === '1') {
1057 if (substr($value, 0, 4) === '<br>') {
1062 if (in_array(end($tmp), ['NOTE', 'TEXT'], true)) {
1063 if ($this->tree->getPreference('FORMAT_TEXT') === 'markdown') {
1071 if (!empty($attrs['truncate'])) {
1089 if ($this->process_repeats > 1) {
1098 if (!empty($tag)) {
1099 if ($tag === '@desc') {
1107 if ($level === 0) {
1116 if (!empty($t)) {
1117 if ($i < ($count - 1)) {
1119 if (empty($subrec)) {
1122 if (empty($subrec)) {
1138 …if (preg_match('/^\d ' . Gedcom::REGEX_TAG . ' @(' . Gedcom::REGEX_XREF . ')@/', $subrecord, $xref…
1140 if ($linked_object && !$linked_object->canShow()) {
1158 if ($this->process_repeats > 0) {
1162 // Check if there is anything to repeat
1163 if (count($this->repeats) > 0) {
1164 // No need to load them if not used...
1181 if (str_contains($lines[$line_nr], '<RepeatTag')) {
1186 if (0 < $count) {
1220 if (!xml_parse($repeat_parser, $reportxml, true)) {
1251 if (empty($attrs['var'])) {
1257 if (!empty($this->vars[$var]['id'])) {
1261 if (($this->fact === 'EVEN' || $this->fact === 'FACT') && $this->type !== '') {
1263 // n TYPE This text if string
1269 if (!$element instanceof UnknownElement) {
1278 if (preg_match('/^I18N::number\((.+)\)$/', $var, $match)) {
1286 // Check if variable is set as a date and reformat the date
1287 if (isset($attrs['date'])) {
1288 if ($attrs['date'] === '1') {
1307 if ($this->process_repeats > 1) {
1317 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
1321 if (isset($attrs['ignore'])) {
1324 if (preg_match('/\$(.+)/', $tag, $match)) {
1329 if (empty($attrs['diff']) && !empty($id)) {
1336 if (!in_array($tag, $nonfacts, true)) {
1342 …if (($fact->isPendingAddition() || $fact->isPendingDeletion()) && !str_ends_with($fact->tag(), ':C…
1357 if ($this->process_repeats > 0) {
1361 // Check if there is anything to repeat
1362 if (count($this->repeats) > 0) {
1394 if (preg_match('/1 (\w+)(.*)/', $this->gedrec, $match)) {
1396 if ($this->fact === 'EVEN' || $this->fact === 'FACT') {
1398 if (preg_match('/2 TYPE (.+)/', $this->gedrec, $tmatch)) {
1428 if (!xml_parse($repeat_parser, $reportxml, true)) {
1455 if (empty($attrs['name'])) {
1463 if ($value === '@ID') {
1464 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
1475 if (preg_match("/\d $match[1] (.+)/", $this->gedrec, $gmatch)) {
1479 if (preg_match("/\\$(\w+)/", $name, $match)) {
1489 if (preg_match('/^I18N::number\((.+)\)$/', $value, $match)) {
1498 if (preg_match("/(\d+)\s*([-+*\/])\s*(\d+)/", $value, $match)) {
1507 if (str_contains($value, '@')) {
1514 * Handle <if>
1522 if ($this->process_ifs > 0) {
1545 if ($id === 'ID') {
1546 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
1557 if ($level === 0) {
1561 if (empty($value)) {
1579 if (!$ret) {
1585 * Handle </if>
1591 if ($this->process_ifs > 0) {
1608 if (preg_match('/[0-9] (.+) @(.+)@/', $this->gedrec, $match)) {
1612 if ($record && $record->canShow()) {
1616 if (!empty($attrs['style'])) {
1635 if ($this->process_footnote) {
1638 if (strlen($temp) > 3) {
1665 if ($this->print_data && $this->process_gedcoms === 0) {
1678 if ($this->print_data && $this->process_gedcoms === 0) {
1693 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
1716 if ($media_file instanceof MediaFile && $media_file->fileExists()) {
1720 if ($width > 0 && $height == 0) {
1762 if ($file === '@FILE') {
1764 if (preg_match("/\d OBJE @(.+)@/", $this->gedrec, $match)) {
1768 if ($media_file instanceof MediaFile && $media_file->fileExists()) {
1772 if ($width > 0 && $height == 0) {
1787 if (file_exists($file) && preg_match('/(jpg|jpeg|png|gif)$/i', $file)) {
1789 if ($width > 0 && $height == 0) {
1816 if (isset($attrs['x1'])) {
1817 if ($attrs['x1'] === '0') {
1827 if (isset($attrs['y1'])) {
1828 if ($attrs['y1'] === '0') {
1838 if (isset($attrs['x2'])) {
1839 if ($attrs['x2'] === '0') {
1849 if (isset($attrs['y2'])) {
1850 if ($attrs['y2'] === '0') {
1873 if ($this->process_repeats > 1) {
1878 if (isset($attrs['sortby'])) {
1880 if (preg_match("/\\$(\w+)/", $sortby, $match)) {
1914 if (str_starts_with($attr, 'filter') && $value !== '') {
1917 if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) {
1928 if ($match[2] === 'LTE') {
1942 // Search the DB only if there is any name supplied
2000 if (str_starts_with($attr, 'filter') && $value !== '') {
2003 if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) {
2014 if ($match[2] === 'LTE') {
2031 if ($sortby === 'NAME' || $match[1] !== '') {
2041 // Search the DB only if there is any name supplied
2042 if ($match[1] != '') {
2093 if (isset($attrs['filter1']) && count($this->list) > 0) {
2095 if (preg_match("/filter(\d)/", $key)) {
2097 if (preg_match("/@(\w+)/", $condition, $match)) {
2100 if ($id === 'ID') {
2101 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
2109 if (preg_match("/\d $id (.+)/", $this->gedrec, $match)) {
2116 if (preg_match("/([A-Z:]+)\s*([^\s]+)\s*(.+)/", $condition, $match)) {
2120 if (preg_match("/\\$(\w+)/", $val, $match)) {
2124 if ($val !== '') {
2127 … //-- only limit to a level number if we are specifically looking at a level
2128 if (count($tags) > 1) {
2132 if (!empty($searchstr)) {
2136 if ($t === 'EMAIL' || $t === '_EMAIL') {
2143 if ($tag === 'EMAIL' || $tag === '_EMAIL') {
2151 if ($t === 'PLAC') {
2172 if ($filters !== []) {
2175 … if (!preg_match('/' . $filter . '/i', $record->privatizeGedcom(Auth::accessLevel($this->tree)))) {
2182 if ($filters2 !== []) {
2189 if ($keep) {
2193 if ($val === "''") {
2200 if ($t === 'EMAIL' && empty($v)) {
2209 if ($t === 'DATE') {
2218 if ($t === 'DATE') {
2227 if ($v == $val) {
2236 if ($keep) {
2276 if ($this->process_repeats > 0) {
2280 // Check if there is any list
2281 if (count($this->list) > 0) {
2297 if (str_contains($lines[$line_nr], '<List')) {
2302 if (0 < $count) {
2317 if ($record->canShow()) {
2341 if (!xml_parse($repeat_parser, $reportxml, true)) {
2369 if ($this->list_private == 0) {
2386 if ($this->process_repeats > 1) {
2393 if (preg_match("/\\$(\w+)/", $sortby, $match)) {
2399 if (isset($attrs['maxgen'])) {
2405 if (preg_match("/\\$(\w+)/", $group, $match)) {
2412 if (preg_match("/\\$(\w+)/", $id, $match)) {
2419 if ($person instanceof Individual) {
2478 if ($this->generation == $genCounter) {
2502 if ($this->process_repeats > 0) {
2506 // Check if there is any relatives
2507 if (count($this->list) > 0) {
2523 if (str_contains($lines[$line_nr], '<Relatives')) {
2528 if (0 < $count) {
2543 if (isset($value->generation)) {
2570 if (!xml_parse($repeat_parser, $reportxml, true)) {
2639 if ($person === null) {
2642 if (!isset($list[$pid])) {
2645 if (!isset($list[$pid]->generation)) {
2649 if ($parents) {
2652 if ($husband) {
2654 if (isset($list[$pid]->generation)) {
2660 if ($wife) {
2662 if (isset($list[$pid]->generation)) {
2673 if ($child) {
2676 if (isset($list[$pid]->generation)) {
2683 if ($generations == -1 || $list[$pid]->generation + 1 < $generations) {
2707 if (str_starts_with($id, 'empty')) {
2714 if ($husband) {
2718 if ($wife) {
2722 if ($generations == -1 || $list[$id]->generation + 1 < $generations) {
2723 if ($husband) {
2726 if ($wife) {
2730 if ($children) {
2751 if ($gedrec === '') {
2756 if ($level === 0) {
2765 if (empty($subrec) && $origlevel == 0) {
2769 if (empty($subrec)) {
2770 if ($t === 'TITL') {
2772 if (!empty($subrec)) {
2776 if ($subrec === '') {
2777 if ($level > 0) {
2781 if ($subrec === '') {
2790 if ($ct === 0) {
2793 if ($ct === 0) {
2796 if ($ct > 0) {
2798 if ($t === 'NOTE' && preg_match('/^@(.+)@$/', $value, $match)) {
2800 if ($note instanceof Note) {
2807 if ($level !== 0 || $t !== 'NOTE') {
2811 if ($tag === 'NAME' || $tag === '_MARNM' || $tag === '_AKA') {
2834 if (isset($this->vars[$matches[1]]['id'])) {
2835 if ($quote) {