d" )); if (empty($sortbyTVType)) $sortbyTVType = \'string\'; if ($modx->getOption(\'dbtype\') === \'mysql\') { switch ($sortbyTVType) { case \'integer\': $criteria->select("CAST(IFNULL(tvSort.value, tvDefault.default_text) AS SIGNED INTEGER) AS sortTV"); break; case \'decimal\': $criteria->select("CAST(IFNULL(tvSort.value, tvDefault.default_text) AS DECIMAL) AS sortTV"); break; case \'datetime\': $criteria->select("CAST(IFNULL(tvSort.value, tvDefault.default_text) AS DATETIME) AS sortTV"); break; case \'string\': default: $criteria->select("IFNULL(tvSort.value, tvDefault.default_text) AS sortTV"); break; } } elseif ($modx->getOption(\'dbtype\') === \'sqlsrv\') { switch ($sortbyTVType) { case \'integer\': $criteria->select("CAST(ISNULL(tvSort.value, tvDefault.default_text) AS BIGINT) AS sortTV"); break; case \'decimal\': $criteria->select("CAST(ISNULL(tvSort.value, tvDefault.default_text) AS DECIMAL) AS sortTV"); break; case \'datetime\': $criteria->select("CAST(ISNULL(tvSort.value, tvDefault.default_text) AS DATETIME) AS sortTV"); break; case \'string\': default: $criteria->select("ISNULL(tvSort.value, tvDefault.default_text) AS sortTV"); break; } } $criteria->sortby("sortTV", $sortdirTV); } if (!empty($sortby)) { if (strpos($sortby, \'{\') === 0) { $sorts = $modx->fromJSON($sortby); } else { $sorts = array($sortby => $sortdir); } if (is_array($sorts)) { foreach($sorts as $sort => $dir){ if ($sort == \'resources\' && !empty($resources)) { $sort = \'FIELD(modResource.id, \' . implode($resources,\',\') . \')\'; } if ($sortbyEscaped) $sort = $modx->escape($sort); if (!empty($sortbyAlias)) $sort = $modx->escape($sortbyAlias) . ".{$sort}"; $criteria->sortby($sort, $dir); } } } if (!empty($limit)) $criteria->limit($limit, $offset); if (!empty($debug)) { $criteria->prepare(); $modx->log(modX::LOG_LEVEL_ERROR, $criteria->toSQL()); } $collection = $modx->getCollection(\'modResource\', $criteria, $dbCacheFlag); $idx = !empty($idx) || $idx === \'0\' ? (integer) $idx : 1; $first = empty($first) && $first !== \'0\' ? 1 : (integer) $first; $last = empty($last) ? (count($collection) + $idx - 1) : (integer) $last; /* include parseTpl */ include_once $modx->getOption(\'getresources.core_path\',null,$modx->getOption(\'core_path\').\'components/getresources/\').\'include.parsetpl.php\'; $templateVars = array(); if (!empty($includeTVs) && !empty($includeTVList)) { $templateVars = $modx->getCollection(\'modTemplateVar\', array(\'name:IN\' => $includeTVList)); } /** @var modResource $resource */ foreach ($collection as $resourceId => $resource) { $tvs = array(); if (!empty($includeTVs)) { if (empty($includeTVList)) { $templateVars = $resource->getMany(\'TemplateVars\'); } /** @var modTemplateVar $templateVar */ foreach ($templateVars as $tvId => $templateVar) { if (!empty($includeTVList) && !in_array($templateVar->get(\'name\'), $includeTVList)) continue; if ($processTVs && (empty($processTVList) || in_array($templateVar->get(\'name\'), $processTVList))) { $tvs[$tvPrefix . $templateVar->get(\'name\')] = $templateVar->renderOutput($resource->get(\'id\')); } else { $value = $templateVar->getValue($resource->get(\'id\')); if ($prepareTVs && method_exists($templateVar, \'prepareOutput\') && (empty($prepareTVList) || in_array($templateVar->get(\'name\'), $prepareTVList))) { $value = $templateVar->prepareOutput($value); } $tvs[$tvPrefix . $templateVar->get(\'name\')] = $value; } } } $odd = ($idx & 1); $properties = array_merge( $scriptProperties ,array( \'idx\' => $idx ,\'first\' => $first ,\'last\' => $last ,\'odd\' => $odd ) ,$includeContent ? $resource->toArray() : $resource->get($fields) ,$tvs ); $resourceTpl = false; if ($idx == $first && !empty($tplFirst)) { $resourceTpl = parseTpl($tplFirst, $properties); } if ($idx == $last && empty($resourceTpl) && !empty($tplLast)) { $resourceTpl = parseTpl($tplLast, $properties); } $tplidx = \'tpl_\' . $idx; if (empty($resourceTpl) && !empty($$tplidx)) { $resourceTpl = parseTpl($$tplidx, $properties); } if ($idx > 1 && empty($resourceTpl)) { $divisors = getDivisors($idx); if (!empty($divisors)) { foreach ($divisors as $divisor) { $tplnth = \'tpl_n\' . $divisor; if (!empty($$tplnth)) { $resourceTpl = parseTpl($$tplnth, $properties); if (!empty($resourceTpl)) { break; } } } } } if ($odd && empty($resourceTpl) && !empty($tplOdd)) { $resourceTpl = parseTpl($tplOdd, $properties); } if (!empty($tplCondition) && !empty($conditionalTpls) && empty($resourceTpl)) { $conTpls = $modx->fromJSON($conditionalTpls); $subject = $properties[$tplCondition]; $tplOperator = !empty($tplOperator) ? $tplOperator : \'=\'; $tplOperator = strtolower($tplOperator); $tplCon = \'\'; foreach ($conTpls as $operand => $conditionalTpl) { switch ($tplOperator) { case \'!=\': case \'neq\': case \'not\': case \'isnot\': case \'isnt\': case \'unequal\': case \'notequal\': $tplCon = (($subject != $operand) ? $conditionalTpl : $tplCon); break; case \'<\': case \'lt\': case \'less\': case \'lessthan\': $tplCon = (($subject < $operand) ? $conditionalTpl : $tplCon); break; case \'>\': case \'gt\': case \'greater\': case \'greaterthan\': $tplCon = (($subject > $operand) ? $conditionalTpl : $tplCon); break; case \'<=\': case \'lte\': case \'lessthanequals\': case \'lessthanorequalto\': $tplCon = (($subject <= $operand) ? $conditionalTpl : $tplCon); break; case \'>=\': case \'gte\': case \'greaterthanequals\': case \'greaterthanequalto\': $tplCon = (($subject >= $operand) ? $conditionalTpl : $tplCon); break; case \'isempty\': case \'empty\': $tplCon = empty($subject) ? $conditionalTpl : $tplCon; break; case \'!empty\': case \'notempty\': case \'isnotempty\': $tplCon = !empty($subject) && $subject != \'\' ? $conditionalTpl : $tplCon; break; case \'isnull\': case \'null\': $tplCon = $subject == null || strtolower($subject) == \'null\' ? $conditionalTpl : $tplCon; break; case \'inarray\': case \'in_array\': case \'ia\': $operand = explode(\',\', $operand); $tplCon = in_array($subject, $operand) ? $conditionalTpl : $tplCon; break; case \'between\': case \'range\': case \'>=<\': case \'><\': $operand = explode(\',\', $operand); $tplCon = ($subject >= min($operand) && $subject <= max($operand)) ? $conditionalTpl : $tplCon; break; case \'==\': case \'=\': case \'eq\': case \'is\': case \'equal\': case \'equals\': case \'equalto\': default: $tplCon = (($subject == $operand) ? $conditionalTpl : $tplCon); break; } } if (!empty($tplCon)) { $resourceTpl = parseTpl($tplCon, $properties); } } if (!empty($tpl) && empty($resourceTpl)) { $resourceTpl = parseTpl($tpl, $properties); } if ($resourceTpl === false && !empty($debug)) { $chunk = $modx->newObject(\'modChunk\'); $chunk->setCacheable(false); $output[]= $chunk->process(array(), \'
\' . print_r($properties, true) .\'
\'); } else { $output[]= $resourceTpl; } $idx++; } /* output */ $toSeparatePlaceholders = $modx->getOption(\'toSeparatePlaceholders\', $scriptProperties, false); if (!empty($toSeparatePlaceholders)) { $modx->setPlaceholders($output, $toSeparatePlaceholders); return \'\'; } $output = implode($outputSeparator, $output); $tplWrapper = $modx->getOption(\'tplWrapper\', $scriptProperties, false); $wrapIfEmpty = $modx->getOption(\'wrapIfEmpty\', $scriptProperties, false); if (!empty($tplWrapper) && ($wrapIfEmpty || !empty($output))) { $output = parseTpl($tplWrapper, array_merge($scriptProperties, array(\'output\' => $output))); } $toPlaceholder = $modx->getOption(\'toPlaceholder\', $scriptProperties, false); if (!empty($toPlaceholder)) { $modx->setPlaceholder($toPlaceholder, $output); return \'\'; } return $output;', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( ), ), 'HasChildren' => array ( 'fields' => array ( 'id' => 35, 'source' => 1, 'property_preprocess' => false, 'name' => 'HasChildren', 'description' => '', 'editor_type' => 0, 'category' => 0, 'cache_type' => 0, 'snippet' => '/* $document = $modx->getObject(\'modResource\', $id); if($document){ return $document->get(\'isfolder\')? \'1\' : \'0\'; } return \'\'; */ $document = $modx->getObject(\'modResource\', $id); if($document){ return $document->hasChildren()? \'1\' : \'0\'; } return \'\';', 'locked' => false, 'properties' => array ( ), 'moduleguid' => '', 'static' => false, 'static_file' => '', 'content' => '/* $document = $modx->getObject(\'modResource\', $id); if($document){ return $document->get(\'isfolder\')? \'1\' : \'0\'; } return \'\'; */ $document = $modx->getObject(\'modResource\', $id); if($document){ return $document->hasChildren()? \'1\' : \'0\'; } return \'\';', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), ), 'modTemplateVar' => array ( 'eyecatcher' => array ( 'fields' => array ( 'id' => 4, 'source' => 1, 'property_preprocess' => false, 'type' => 'image', 'name' => 'eyecatcher', 'caption' => 'Eyecatcher', 'description' => 'Bildformat: 2100 x 300 Pixel, 72 dpi', 'editor_type' => 0, 'category' => 0, 'locked' => false, 'elements' => '', 'rank' => 0, 'display' => 'default', 'default_text' => '', 'properties' => array ( ), 'input_properties' => array ( ), 'output_properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), 'fotogalerie' => array ( 'fields' => array ( 'id' => 5, 'source' => 1, 'property_preprocess' => false, 'type' => 'galleryalbumlist', 'name' => 'fotogalerie', 'caption' => 'Galerie auswählen', 'description' => '', 'editor_type' => 0, 'category' => 0, 'locked' => false, 'elements' => '', 'rank' => 0, 'display' => 'default', 'default_text' => '', 'properties' => array ( ), 'input_properties' => array ( 'allowBlank' => 'true', 'sort' => 'rank', 'dir' => 'DESC', 'limit' => '0', 'start' => '0', 'showNone' => 'true', 'showCover' => 'true', 'parent' => '', 'subchilds' => 'Nein', 'width' => '400', 'listWidth' => '', 'typeAhead' => 'false', 'typeAheadDelay' => '250', 'forceSelection' => 'false', 'listEmptyText' => '', ), 'output_properties' => array ( ), 'static' => false, 'static_file' => '', 'content' => '', ), 'policies' => array ( 'web' => array ( ), ), 'source' => array ( 'id' => 1, 'name' => 'Filesystem', 'description' => '', 'class_key' => 'sources.modFileMediaSource', 'properties' => array ( ), 'is_stream' => true, ), ), ), ), ); Hautarztpraxis Dr. med. Henning Lichtenstein - Facharzt für Haut- und Geschlechtskrankheiten - Praxisrundgang
Praxisrundgang

Willkommen in unserer Praxis

Fotogalerie

Praxisrundgang