function getBEOutput(&$sql, $content)
 {
     $var = 'REX_DATA';
     $matches = $this->getVarParams($content, $var);
     foreach ($matches as $match) {
         list($param_str, $args) = $match;
         list($field, $args) = $this->extractArg('field', $args, 0);
         if ($field != '') {
             $varname = '$__rex_data';
             // $varname = str_replace('"', '\"', $varname);
             $value = '';
             $value = rex_var::handleGlobalVarParams($varname, $args, $sql->getValue($field));
             $content = str_replace($var . '[' . $param_str . ']', $value, $content);
         }
     }
     return $content;
 }
 function getBEOutput(&$sql, $content)
 {
     global $REX;
     $var = 'REX_DATA';
     $matches = $this->getVarParams($content, $var);
     foreach ($matches as $match) {
         list($param_str, $args) = $match;
         //list ($field, $args) = $this->extractArg('field', $args, 0);
         $field = $args['field'];
         if ($field != "") {
             $varname = '$__rex_data';
             // $varname = str_replace('"', '\"', $varname);
             $value = "";
             $suffix = '';
             if (isset($args['translate']) && $args['translate'] == "1" && $REX['CUR_CLANG'] >= 1) {
                 $suffix = '_' . $REX['CUR_CLANG'];
                 $value = rex_var::handleGlobalVarParams($varname, $args, $sql->getValue($field . $suffix));
             }
             if ($value == '') {
                 // Fallback, falls Feld fuer SPrache nciht gefuellt ist
                 $value = rex_var::handleGlobalVarParams($varname, $args, $sql->getValue($field));
             }
             $content = str_replace($var . '[' . $param_str . ']', $value, $content);
         }
     }
     return $content;
 }