123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?php
-
- /* DoctrineBundle:Collector:db.html.twig */
- class __TwigTemplate_6dfd35a5a66b4ed16257e8019781a83d extends Twig_Template
- {
- protected $parent;
-
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->parent = array();
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- );
- }
-
- public function getParent(array $context)
- {
- $parent = "WebProfilerBundle:Profiler:layout.html.twig";
- if ($parent instanceof Twig_Template) {
- $name = $parent->getTemplateName();
- $this->parent[$name] = $parent;
- $parent = $name;
- } elseif (!isset($this->parent[$parent])) {
- $this->parent[$parent] = $this->env->loadTemplate($parent);
- }
-
- return $this->parent[$parent];
- }
-
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
- }
-
- // line 3
- public function block_toolbar($context, array $blocks = array())
- {
- // line 4
- echo " ";
- ob_start();
- // line 5
- echo " <img width=\"20\" height=\"28\" alt=\"Database\" style=\"border-width: 0; vertical-align: middle; margin-right: 5px;\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAcCAYAAABh2p9gAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQRJREFUeNpi/P//PwM1ARMDlcGogZQDlpMnT7pxc3NbA9nhQKxOpL5rQLwJiPeBsI6Ozl+YBOOOHTv+AOllQNwtLS39F2owKYZ/gRq8G4i3ggxEToggWzvc3d2Pk+1lNL4fFAs6ODi8JzdS7mMRVyDVoAMHDsANdAPiOCC+jCQvQKqBQB/BDbwBxK5AHA3E/kB8nKJkA8TMQBwLxaBIKQbi70AvTADSBiSadwFXpCikpKQU8PDwkGTaly9fHFigkaKIJid4584dkiMFFI6jkTJII0WVmpHCAixZQEXWYhDeuXMnyLsVlEQKI45qFBQZ8eRECi4DBaAlDqle/8A48ip6gAADANdQY88Uc0oGAAAAAElFTkSuQmCC\"/>
- ";
- $context['icon'] = new Twig_Markup(ob_get_clean());
- // line 7
- echo " ";
- ob_start();
- // line 8
- echo " <span title=\"";
- echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute($this->getContext($context, 'collector'), "time", array(), "any", false) * 1000)), "html");
- echo " ms\">";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false), "html");
- echo "</span>
- ";
- $context['text'] = new Twig_Markup(ob_get_clean());
- // line 10
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
- }
-
- // line 13
- public function block_menu($context, array $blocks = array())
- {
- // line 14
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"";
- // line 15
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/db.png"), "html");
- echo "\" alt=\"\" /></span>
- <strong>Doctrine</strong>
- <span class=\"count\">
- <span>";
- // line 18
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false), "html");
- echo "</span>
- <span>";
- // line 19
- echo twig_escape_filter($this->env, sprintf("%0.0f", ($this->getAttribute($this->getContext($context, 'collector'), "time", array(), "any", false) * 1000)), "html");
- echo " ms</span>
- </span>
- </span>
- ";
- }
-
- // line 24
- public function block_panel($context, array $blocks = array())
- {
- // line 25
- echo " <h2>Queries</h2>
-
- ";
- // line 27
- if ((!$this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false))) {
- // line 28
- echo " <p>
- <em>No queries.</em>
- </p>
- ";
- } else {
- // line 32
- echo " <ul class=\"alt\">
- ";
- // line 33
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "queries", array(), "any", false));
- foreach ($context['_seq'] as $context['i'] => $context['query']) {
- // line 34
- echo " <li class=\"";
- echo ((twig_test_odd($this->getContext($context, 'i'))) ? ("odd") : ("even"));
- echo "\">
- <div>
- <code>";
- // line 36
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'query'), "sql", array(), "any", false), "html");
- echo "</code>
- </div>
- <small>
- <strong>Parameters</strong>: ";
- // line 39
- echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, 'query'), "params", array(), "any", false)), "html");
- echo "<br />
- <strong>Time</strong>: ";
- // line 40
- echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute($this->getContext($context, 'query'), "executionMS", array(), "any", false) * 1000)), "html");
- echo " ms
- </small>
- </li>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 44
- echo " </ul>
- ";
- }
- // line 46
- echo "
- <h2>Database Connections</h2>
-
- ";
- // line 49
- if ($this->getAttribute($this->getContext($context, 'collector'), "connections", array(), "any", false)) {
- // line 50
- echo " <table>
- <tr>
- <th>Name</th>
- <th>Service</th>
- </tr>
- ";
- // line 55
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "connections", array(), "any", false));
- foreach ($context['_seq'] as $context['name'] => $context['service']) {
- // line 56
- echo " <tr>
- <th>";
- // line 57
- echo twig_escape_filter($this->env, $this->getContext($context, 'name'), "html");
- echo "</th>
- <td>";
- // line 58
- echo twig_escape_filter($this->env, $this->getContext($context, 'service'), "html");
- echo "</td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['name'], $context['service'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 61
- echo " </table>
- ";
- } else {
- // line 63
- echo " <p>
- <em>No entity managers.</em>
- </p>
- ";
- }
- // line 67
- echo "
- <h2>Entity Managers</h2>
-
- ";
- // line 70
- if ($this->getAttribute($this->getContext($context, 'collector'), "managers", array(), "any", false)) {
- // line 71
- echo " <table>
- <tr>
- <th>Name</th>
- <th>Service</th>
- </tr>
- ";
- // line 76
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "managers", array(), "any", false));
- foreach ($context['_seq'] as $context['name'] => $context['service']) {
- // line 77
- echo " <tr>
- <th>";
- // line 78
- echo twig_escape_filter($this->env, $this->getContext($context, 'name'), "html");
- echo "</th>
- <td>";
- // line 79
- echo twig_escape_filter($this->env, $this->getContext($context, 'service'), "html");
- echo "</td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['name'], $context['service'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 82
- echo " </table>
- ";
- } else {
- // line 84
- echo " <p>
- <em>No entity managers.</em>
- </p>
- ";
- }
- }
-
- public function getTemplateName()
- {
- return "DoctrineBundle:Collector:db.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|