public function block_panel($context, array $blocks = array()) { // line 25 echo " <h2>Queries</h2>\n\n "; // line 27 if (!$this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false)) { // line 28 echo " <p>\n <em>No queries.</em>\n </p>\n "; } else { // line 32 echo " <ul class=\"alt\">\n "; // 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 "\">\n <div>\n <code>"; // line 36 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'query'), "sql", array(), "any", false), "html"); echo "</code>\n </div>\n <small>\n <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 />\n <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\n </small>\n </li>\n "; } $_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>\n "; } }
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> "; } }
protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); // line 1 echo "<ul>\n"; // line 2 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'menuList')); foreach ($context['_seq'] as $context['_key'] => $context['menu']) { // line 3 echo " <li>"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'menu'), "name", array(), "any", false), "html"); echo "</li>\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 5 echo "</ul>\n\n<table>\n\n<tr>\n <th>"; // line 10 echo $this->env->getExtension('paginator')->sortable($this->getContext($context, 'paginator'), "Id", "c.id"); echo "</th>\n <th>"; // line 11 echo $this->env->getExtension('paginator')->sortable($this->getContext($context, 'paginator'), "Name", "c.name"); echo "</th>\n</tr>\n\n"; // line 15 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'paginator')); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context['_key'] => $context['menu']) { // line 16 echo "<tr "; if (twig_test_odd($this->getAttribute($this->getContext($context, 'loop'), "index", array(), "any", false))) { echo "class=\"color\""; } echo ">\n <td>"; // line 17 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'menu'), "id", array(), "any", false), "html"); echo "</td>\n <td>"; // line 18 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'menu'), "name", array(), "any", false), "html"); echo "</td>\n</tr>\n"; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 21 echo "</table>\n\n<div id=\"navigation\">\n"; // line 24 echo $this->env->getExtension('paginator')->paginate($this->getContext($context, 'paginator')); echo "\n</div>\n"; }