function processMarkersCallBack($aMatch, $bClearNotUsed, $bThrusted) { $sCatch = $aMatch[1]; $aTags = $this->currentTemplateMarkers(); if ($sCatch[0] === "L" && $sCatch[1] === "L" && $sCatch[2] === "L" && $sCatch[3] === ":") { if (isset($this)) { return $this->_getLLLabel($sCatch); } } else { if (($mVal = tx_ameosformidable::resolveForTemplate($sCatch, $aTags)) !== AMEOSFORMIDABLE_LEXER_FAILED && $mVal !== AMEOSFORMIDABLE_LEXER_BREAKED) { if (is_array($mVal)) { if (array_key_exists("__compiled", $mVal)) { if ($bThrusted) { return $mVal["__compiled"]; } else { return $this->sanitizeStringForTemplateEngine($mVal["__compiled"]); } } else { return ""; } } else { if ($bThrusted) { return $mVal; } else { return $this->sanitizeStringForTemplateEngine($mVal); } } } else { //nothing if ($bClearNotUsed) { return ""; } else { if ($bThrusted) { return $aMatch[0]; } else { return $this->sPfxBegin . $aMatch[1] . $this->sPfxEnd; } } } } }