177 lines
7.9 KiB
PHP
177 lines
7.9 KiB
PHP
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Extension\SandboxExtension;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
|
|
/* @Doctrine/Collector/explain.html.twig */
|
|
class __TwigTemplate_d4f6e5d6bccf9fba08407b124d68b293cea28697a471d1c1665c3a844b56c616 extends Template
|
|
{
|
|
private $source;
|
|
private $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->parent = false;
|
|
|
|
$this->blocks = [
|
|
];
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Doctrine/Collector/explain.html.twig"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Doctrine/Collector/explain.html.twig"));
|
|
|
|
// line 1
|
|
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 1, $this->source); })()), 0, [], "array", false, false, false, 1)) > 1)) {
|
|
// line 2
|
|
echo " ";
|
|
// line 3
|
|
echo " <table style=\"margin: 5px 0;\">
|
|
<thead>
|
|
<tr>
|
|
";
|
|
// line 6
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 6, $this->source); })()), 0, [], "array", false, false, false, 6)));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
|
|
// line 7
|
|
echo " <th>";
|
|
echo twig_escape_filter($this->env, $context["label"], "html", null, true);
|
|
echo "</th>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 9
|
|
echo " </tr>
|
|
</thead>
|
|
<tbody>
|
|
";
|
|
// line 12
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 12, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
|
|
// line 13
|
|
echo " <tr>
|
|
";
|
|
// line 14
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable($context["row"]);
|
|
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
|
|
// line 15
|
|
echo " <td>";
|
|
echo twig_escape_filter($this->env, twig_replace_filter($context["item"], ["," => ", "]), "html", null, true);
|
|
echo "</td>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 17
|
|
echo " </tr>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 19
|
|
echo " </tbody>
|
|
</table>
|
|
";
|
|
} else {
|
|
// line 22
|
|
echo " ";
|
|
// line 23
|
|
echo " <pre style=\"margin: 5px 0;\">";
|
|
// line 24
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 24, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
|
|
// line 25
|
|
echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true);
|
|
echo "
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 27
|
|
echo "</pre>
|
|
";
|
|
}
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "@Doctrine/Collector/explain.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 118 => 27, 110 => 25, 106 => 24, 104 => 23, 102 => 22, 97 => 19, 90 => 17, 81 => 15, 77 => 14, 74 => 13, 70 => 12, 65 => 9, 56 => 7, 52 => 6, 47 => 3, 45 => 2, 43 => 1,);
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("{% if data[0]|length > 1 %}
|
|
{# The platform returns a table for the explanation (e.g. MySQL), display all columns #}
|
|
<table style=\"margin: 5px 0;\">
|
|
<thead>
|
|
<tr>
|
|
{% for label in data[0]|keys %}
|
|
<th>{{ label }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in data %}
|
|
<tr>
|
|
{% for key, item in row %}
|
|
<td>{{ item|replace({',': ', '}) }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
{# The Platform returns a single column for a textual explanation (e.g. PostgreSQL), display all lines #}
|
|
<pre style=\"margin: 5px 0;\">
|
|
{%- for row in data -%}
|
|
{{ row|first }}{{ \"\\n\" }}
|
|
{%- endfor -%}
|
|
</pre>
|
|
{% endif %}
|
|
", "@Doctrine/Collector/explain.html.twig", "/home/poule/encrypted/stockage-syncable/www/development/html/caisse/vendor/doctrine/doctrine-bundle/Resources/views/Collector/explain.html.twig");
|
|
}
|
|
}
|