getContents(); $firstrow = \reset($contents); if (!$firstrow instanceof ArrayValue) { return null; } $out = '
';

        foreach ($firstrow->getContents() as $field) {
            $out .= '';
        }

        $out .= '';

        foreach ($contents as $row) {
            if (!$row instanceof ArrayValue) {
                return null;
            }

            $out .= '';

            foreach ($row->getContents() as $field) {
                $ref = $field->getContext()->isRef() ? '&' : '';
                $type = $this->renderer->escape($field->getDisplayType());

                $out .= '';
            }

            $out .= '';
        }

        $out .= '
'.$this->renderer->escape($field->getDisplayName()).'
'.$this->renderer->escape($row->getDisplayName()).''; if ($field instanceof FixedWidthValue) { if (null === ($dv = $field->getDisplayValue())) { $out .= ''.$ref.'null'; } elseif ('boolean' === $field->getType()) { $out .= ''.$ref.$dv.''; } else { $out .= $dv; } } elseif ($field instanceof StringValue) { if (false !== $field->getEncoding()) { $val = $field->getValueUtf8(); if (RichRenderer::$strlen_max && self::$respect_str_length) { $val = Utils::truncateString($val, RichRenderer::$strlen_max, 'UTF-8'); } $out .= $this->renderer->escape($val); } else { $out .= ''.$ref.$type.''; } } elseif ($field instanceof ArrayValue) { $out .= ''.$ref.'array ('.$field->getSize().')'; } else { $out .= ''.$ref.$type.''; if (null !== $size) { $out .= ' ('.$size.')'; } } if ($field->flags & AbstractValue::FLAG_BLACKLIST) { $out .= ' Blacklisted'; } elseif ($field->flags & AbstractValue::FLAG_RECURSION) { $out .= ' Recursion'; } elseif ($field->flags & AbstractValue::FLAG_DEPTH_LIMIT) { $out .= ' Depth Limit'; } $out .= '
'; return $out; } }