Twig_Profiler_Profile PHP Class Code Examples

This page contains top rated real world PHP examples of class Twig_Profiler_Profile extracted from open source projects. You can rate examples to help us improve the quality of examples

Example #1
Show file File: Text.php Project: HeroesOfZoltan/wishr
0
 private function dumpProfile(Twig_Profiler_Profile $profile, $prefix = '', $sibling = false)
 {
     if ($profile->isRoot()) {
         $this->root = $profile->getDuration();
         $start = $profile->getName();
     } else {
         if ($profile->isTemplate()) {
             $start = $this->formatTemplate($profile, $prefix);
         } else {
             $start = $this->formatNonTemplate($profile, $prefix);
         }
         $prefix .= $sibling ? '│ ' : '  ';
     }
     $percent = $this->root ? $profile->getDuration() / $this->root * 100 : 0;
     if ($profile->getDuration() * 1000 < 1) {
         $str = $start . "\n";
     } else {
         $str = sprintf("%s %s\n", $start, $this->formatTime($profile, $percent));
     }
     $nCount = count($profile->getProfiles());
     foreach ($profile as $i => $p) {
         $str .= $this->dumpProfile($p, $prefix, $i + 1 !== $nCount);
     }
     return $str;
 }
Example #2
Show file File: ec8a343dc2cc4700fd854eef51b95e9f181e94c582150b5a952b65aaa019884f.php Project: Dren-x/mobitnew
0
 public function block_sidebar($context, array $blocks = array())
 {
     $__internal_86d597366087eaec6baba8e29503bc701f181cd8c278d704d086769921fec9eb = $this->env->getExtension("native_profiler");
     $__internal_86d597366087eaec6baba8e29503bc701f181cd8c278d704d086769921fec9eb->enter($__internal_86d597366087eaec6baba8e29503bc701f181cd8c278d704d086769921fec9eb_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "sidebar"));
     // line 26
     echo "    ";
     $this->displayParentBlock("sidebar", $context, $blocks);
     echo "\n\n    ";
     // line 28
     echo $this->env->getExtension('code_explorer_source_code')->showSourceCode($this->env, $this);
     echo "\n";
     $__internal_86d597366087eaec6baba8e29503bc701f181cd8c278d704d086769921fec9eb->leave($__internal_86d597366087eaec6baba8e29503bc701f181cd8c278d704d086769921fec9eb_prof);
 }
Example #3
Show file File: 43c1da93941ba6fc6a4c8be1bf42fe3adafd009e9a88e7f7eaceb26bfe748fe5.php Project: manojdivakaran/symfonydemo
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_5d6baf8085ba607f409ab2c1cf83d9b35befac3c5db27317b63244fabb06ab63 = $this->env->getExtension("native_profiler");
     $__internal_5d6baf8085ba607f409ab2c1cf83d9b35befac3c5db27317b63244fabb06ab63->enter($__internal_5d6baf8085ba607f409ab2c1cf83d9b35befac3c5db27317b63244fabb06ab63_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "EventBundle:Default:index.html.twig"));
     // line 1
     if (!(null === (isset($context["param1"]) ? $context["param1"] : $this->getContext($context, "param1")))) {
         echo " \nTest ";
         // line 2
         echo twig_escape_filter($this->env, isset($context["param1"]) ? $context["param1"] : $this->getContext($context, "param1"), "html", null, true);
         echo "\n";
     } else {
         // line 4
         echo "Test No Parameters\n";
     }
     $__internal_5d6baf8085ba607f409ab2c1cf83d9b35befac3c5db27317b63244fabb06ab63->leave($__internal_5d6baf8085ba607f409ab2c1cf83d9b35befac3c5db27317b63244fabb06ab63_prof);
 }
Example #4
Show file File: a7410ef1f4d2883c6055962d2ac487ef9a1f471018111aed3674eeea867f7bec.php Project: shine2lay/jack
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_98112d02e4a784947904426c61bc075d0701b428004a21ec8ef6b47c242362b1 = $this->env->getExtension("native_profiler");
     $__internal_98112d02e4a784947904426c61bc075d0701b428004a21ec8ef6b47c242362b1->enter($__internal_98112d02e4a784947904426c61bc075d0701b428004a21ec8ef6b47c242362b1_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_js.html.twig"));
     // line 1
     echo "<div id=\"sfwdt";
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "\" class=\"sf-toolbar\" style=\"display: none\"></div>\n";
     // line 2
     $this->loadTemplate("@WebProfiler/Profiler/base_js.html.twig", "@WebProfiler/Profiler/toolbar_js.html.twig", 2)->display($context);
     // line 3
     echo "<script>/*<![CDATA[*/\n    (function () {\n        ";
     // line 5
     if ("top" == (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"))) {
         // line 6
         echo "            var sfwdt = document.getElementById('sfwdt";
         echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
         echo "');\n            document.body.insertBefore(\n                document.body.removeChild(sfwdt),\n                document.body.firstChild\n            );\n        ";
     }
     // line 12
     echo "\n        Sfjs.load(\n            'sfwdt";
     // line 14
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "',\n            '";
     // line 15
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_wdt", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"))), "html", null, true);
     echo "',\n            function(xhr, el) {\n                el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';\n\n                if (el.style.display == 'none') {\n                    return;\n                }\n\n                if (Sfjs.getPreference('toolbar/displayState') == 'none') {\n                    document.getElementById('sfToolbarMainContent-";
     // line 24
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "').style.display = 'none';\n                    document.getElementById('sfToolbarClearer-";
     // line 25
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "').style.display = 'none';\n                    document.getElementById('sfMiniToolbar-";
     // line 26
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "').style.display = 'block';\n                } else {\n                    document.getElementById('sfToolbarMainContent-";
     // line 28
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "').style.display = 'block';\n                    document.getElementById('sfToolbarClearer-";
     // line 29
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "').style.display = 'block';\n                    document.getElementById('sfMiniToolbar-";
     // line 30
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "html", null, true);
     echo "').style.display = 'none';\n                }\n\n                Sfjs.renderAjaxRequests();\n\n                /* Handle toolbar-info position */\n                var toolbarBlocks = document.querySelectorAll('.sf-toolbar-block');\n                for (var i = 0; i < toolbarBlocks.length; i += 1) {\n                    toolbarBlocks[i].onmouseover = function () {\n                        var toolbarInfo = this.querySelectorAll('.sf-toolbar-info')[0];\n                        var pageWidth = document.body.clientWidth;\n                        var elementWidth = toolbarInfo.offsetWidth;\n                        var leftValue = (elementWidth + this.offsetLeft) - pageWidth;\n                        var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;\n\n                        /* Reset right and left value, useful on window resize */\n                        toolbarInfo.style.right = '';\n                        toolbarInfo.style.left = '';\n\n                        if (leftValue > 0 && rightValue > 0) {\n                            toolbarInfo.style.right = (rightValue * -1) + 'px';\n                        } else if (leftValue < 0) {\n                            toolbarInfo.style.left = 0;\n                        } else {\n                            toolbarInfo.style.right = '-1px';\n                        }\n                    };\n                }\n            },\n            function(xhr) {\n                if (xhr.status !== 0) {\n                    confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\\n\\nDo you want to open the profiler?') && (window.location = '";
     // line 61
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"))), "html", null, true);
     echo "');\n                }\n            },\n            {'maxTries': 5}\n        );\n    })();\n/*]]>*/</script>\n";
     $__internal_98112d02e4a784947904426c61bc075d0701b428004a21ec8ef6b47c242362b1->leave($__internal_98112d02e4a784947904426c61bc075d0701b428004a21ec8ef6b47c242362b1_prof);
 }
Example #5
Show file File: 29fc25868eeeb7615ab16174079dd604d6d2cf9942d01cc4f7dc3119d9661129.php Project: tsurune/Pruebas
0
 public function getrender_table($__messages__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("messages" => $__messages__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_19eab5bb72aa2372c547c27d4179275022e6f5c57e565cdb4c5e3e77c084875e = $this->env->getExtension("native_profiler");
         $__internal_19eab5bb72aa2372c547c27d4179275022e6f5c57e565cdb4c5e3e77c084875e->enter($__internal_19eab5bb72aa2372c547c27d4179275022e6f5c57e565cdb4c5e3e77c084875e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
         // line 158
         echo "    <table>\n        <thead>\n            <tr>\n                <th>Locale</th>\n                <th>Domain</th>\n                <th>Times used</th>\n                <th>Message ID</th>\n                <th>Message Preview</th>\n            </tr>\n        </thead>\n        <tbody>\n        ";
         // line 169
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["messages"]) ? $context["messages"] : $this->getContext($context, "messages"));
         $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["message"]) {
             // line 170
             echo "            <tr>\n                <td class=\"font-normal text-small\">";
             // line 171
             echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "locale", array()), "html", null, true);
             echo "</td>\n                <td class=\"font-normal text-small text-bold\">";
             // line 172
             echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "domain", array()), "html", null, true);
             echo "</td>\n                <td class=\"font-normal text-small\">";
             // line 173
             echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "count", array()), "html", null, true);
             echo "</td>\n                <td>\n                    ";
             // line 175
             echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "id", array()), "html", null, true);
             echo "\n\n                    ";
             // line 177
             if (!(null === $this->getAttribute($context["message"], "transChoiceNumber", array()))) {
                 // line 178
                 echo "                        <small class=\"newline\">(pluralization is used)</small>\n                    ";
             }
             // line 180
             echo "\n                    ";
             // line 181
             if (twig_length_filter($this->env, $this->getAttribute($context["message"], "parameters", array())) > 0) {
                 // line 182
                 echo "                        <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                 echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>\n\n                        <div id=\"parameters-";
                 // line 184
                 echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                 echo "\" class=\"hidden\">\n                            ";
                 // line 185
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["message"], "parameters", array()));
                 $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["parameters"]) {
                     // line 186
                     echo "                                ";
                     echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($context["parameters"]), "html", null, true);
                     echo "\n                                ";
                     // line 187
                     if (!$this->getAttribute($context["loop"], "last", array())) {
                         echo "<br />";
                     }
                     // line 188
                     echo "                            ";
                     ++$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['parameters'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 189
                 echo "                        </div>\n                    ";
             }
             // line 191
             echo "                </td>\n                <td>";
             // line 192
             echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "translation", array()), "html", null, true);
             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['message'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 195
         echo "        </tbody>\n    </table>\n";
         $__internal_19eab5bb72aa2372c547c27d4179275022e6f5c57e565cdb4c5e3e77c084875e->leave($__internal_19eab5bb72aa2372c547c27d4179275022e6f5c57e565cdb4c5e3e77c084875e_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
Example #6
Show file File: f128b9c5e623cd6206faf106682f2df558dc15e946c87abf249701e712450a4a.php Project: CharuniKaushalya/Database-Project
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_4f4fc7648fe220edbdc38d520c82c6e4679ee0be89f12dac16f7e97ced45d099 = $this->env->getExtension("native_profiler");
     $__internal_4f4fc7648fe220edbdc38d520c82c6e4679ee0be89f12dac16f7e97ced45d099->enter($__internal_4f4fc7648fe220edbdc38d520c82c6e4679ee0be89f12dac16f7e97ced45d099_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/traces.html.twig"));
     // line 1
     echo "<div class=\"block\">\n    ";
     // line 2
     if ((isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) > 0) {
         // line 3
         echo "        <h2>\n            <span><small>[";
         // line 4
         echo twig_escape_filter($this->env, (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) - (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")) + 1, "html", null, true);
         echo "/";
         echo twig_escape_filter($this->env, (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) + 1, "html", null, true);
         echo "]</small></span>\n            ";
         // line 5
         echo $this->env->getExtension('code')->abbrClass($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "class", array()));
         echo ": ";
         echo $this->env->getExtension('code')->formatFileFromText(nl2br(twig_escape_filter($this->env, $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "message", array()), "html", null, true)));
         echo "&nbsp;\n            ";
         // line 6
         ob_start();
         // line 7
         echo "            <a href=\"#\" onclick=\"toggle('traces-";
         echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
         echo "', 'traces'); switchIcons('icon-traces-";
         echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
         echo "-open', 'icon-traces-";
         echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
         echo "-close'); return false;\">\n                <img class=\"toggle\" id=\"icon-traces-";
         // line 8
         echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
         echo "-close\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display: ";
         echo 0 == (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) ? "inline" : "none";
         echo "\" />\n                <img class=\"toggle\" id=\"icon-traces-";
         // line 9
         echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
         echo "-open\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display: ";
         echo 0 == (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) ? "none" : "inline";
         echo "\" />\n            </a>\n            ";
         echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
         // line 12
         echo "        </h2>\n    ";
     } else {
         // line 14
         echo "        <h2>Stack Trace</h2>\n    ";
     }
     // line 16
     echo "\n    <a id=\"traces-link-";
     // line 17
     echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
     echo "\"></a>\n    <ol class=\"traces list-exception\" id=\"traces-";
     // line 18
     echo twig_escape_filter($this->env, isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "html", null, true);
     echo "\" style=\"display: ";
     echo 0 == (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) ? "block" : "none";
     echo "\">\n        ";
     // line 19
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "trace", array()));
     foreach ($context['_seq'] as $context["i"] => $context["trace"]) {
         // line 20
         echo "            <li>\n                ";
         // line 21
         $this->loadTemplate("@Twig/Exception/trace.html.twig", "@Twig/Exception/traces.html.twig", 21)->display(array("prefix" => isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"), "i" => $context["i"], "trace" => $context["trace"]));
         // line 22
         echo "            </li>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['i'], $context['trace'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 24
     echo "    </ol>\n</div>\n";
     $__internal_4f4fc7648fe220edbdc38d520c82c6e4679ee0be89f12dac16f7e97ced45d099->leave($__internal_4f4fc7648fe220edbdc38d520c82c6e4679ee0be89f12dac16f7e97ced45d099_prof);
 }
Example #7
Show file File: 66498b0ea9fb1c0c7381f97ec0e8de2426e81aab5762fb91cdea4f4416c30b9f.php Project: MikeVeerman/symf2tut
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_e62358617d57b1c00cedcf8c4ce4b1b29552fee2433dd3170640a1a084580085 = $this->env->getExtension("native_profiler");
     $__internal_e62358617d57b1c00cedcf8c4ce4b1b29552fee2433dd3170640a1a084580085->enter($__internal_e62358617d57b1c00cedcf8c4ce4b1b29552fee2433dd3170640a1a084580085_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Framework/Form/form_errors.html.php"));
     // line 1
     echo "<?php if (count(\$errors) > 0): ?>\n    <ul>\n        <?php foreach (\$errors as \$error): ?>\n            <li><?php echo \$error->getMessage() ?></li>\n        <?php endforeach; ?>\n    </ul>\n<?php endif ?>\n";
     $__internal_e62358617d57b1c00cedcf8c4ce4b1b29552fee2433dd3170640a1a084580085->leave($__internal_e62358617d57b1c00cedcf8c4ce4b1b29552fee2433dd3170640a1a084580085_prof);
 }
Example #8
Show file File: 62bda028b73252b28295ef82f9a2001b9a739af4faaeed80692eb63b0a588966.php Project: stuckiest/SymfonyBlog
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_ab1ad07e4adcdc94398faa67931c4ab9dc2c83cf46be28cd5f0fe8d33875a162 = $this->env->getExtension("native_profiler");
     $__internal_ab1ad07e4adcdc94398faa67931c4ab9dc2c83cf46be28cd5f0fe8d33875a162->enter($__internal_ab1ad07e4adcdc94398faa67931c4ab9dc2c83cf46be28cd5f0fe8d33875a162_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Framework/Form/form_row.html.php"));
     // line 1
     echo "<div>\n    <?php echo \$view['form']->label(\$form) ?>\n    <?php echo \$view['form']->errors(\$form) ?>\n    <?php echo \$view['form']->widget(\$form) ?>\n</div>\n";
     $__internal_ab1ad07e4adcdc94398faa67931c4ab9dc2c83cf46be28cd5f0fe8d33875a162->leave($__internal_ab1ad07e4adcdc94398faa67931c4ab9dc2c83cf46be28cd5f0fe8d33875a162_prof);
 }
Example #9
Show file File: a0b99d5e172cc3229f4e0bb0e87b96c3c3f6f8da82a1df30098da34dd408d39a.php Project: raphydev/onep
0
 public function block_toolbar($context, array $blocks = array())
 {
     $__internal_b3de5617ae2f4b967f66fc59fd43e257bc9bce69e441e05232d4f8e9502106c8 = $this->env->getExtension("native_profiler");
     $__internal_b3de5617ae2f4b967f66fc59fd43e257bc9bce69e441e05232d4f8e9502106c8->enter($__internal_b3de5617ae2f4b967f66fc59fd43e257bc9bce69e441e05232d4f8e9502106c8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
     // line 4
     echo "    ";
     $context["icon"] = '' === ($tmp = "        <span>\n            <svg width=\"24\" height=\"28\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 24 28\" enable-background=\"new 0 0 24 28\" xml:space=\"preserve\"><polygon fill=\"#3F3F3F\" points=\"18.4,3.8 12.8,9.4 16.3,9.4 16.3,21.1 14.1,21.1 9.9,25.3 16.3,25.3 20.5,25.3 20.5,21.1 20.5,9.4 23.9,9.4\"/><polygon fill=\"#3F3F3F\" points=\"5.6,25.3 11.2,19.7 7.7,19.7 7.7,8 9.9,8 14.1,3.8 7.7,3.8 3.5,3.8 3.5,8 3.5,19.7 0.1,19.7\"/></svg>\n            <span class=\"sf-toolbar-ajax-requests\">0</span>\n        </span>\n    ") ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     // line 10
     echo "    ";
     $context["text"] = '' === ($tmp = "        <div class=\"sf-toolbar-info-piece\">\n            <b>AJAX requests</b>\n            <span class=\"sf-toolbar-ajax-info\"></span>\n        </div>\n        <div class=\"sf-toolbar-info-piece\">\n            <table class=\"sf-toolbar-ajax-requests\">\n                <thead>\n                    <tr>\n                        <th>Method</th>\n                        <th>URL</th>\n                        <th>Time</th>\n                        <th>Profile</th>\n                    </tr>\n                </thead>\n                <tbody class=\"sf-toolbar-ajax-request-list\"></tbody>\n            </table>\n        </div>\n    ") ? '' : new Twig_Markup($tmp, $this->env->getCharset());
     // line 29
     echo "    ";
     $this->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig", "@WebProfiler/Collector/ajax.html.twig", 29)->display(array_merge($context, array("link" => false)));
     $__internal_b3de5617ae2f4b967f66fc59fd43e257bc9bce69e441e05232d4f8e9502106c8->leave($__internal_b3de5617ae2f4b967f66fc59fd43e257bc9bce69e441e05232d4f8e9502106c8_prof);
 }
Example #10
Show file File: f7abf1ea0f8f46444ca8084a48ce45ace0d337e0c1572bdca6b9b31d4de1ce26.php Project: manojdivakaran/symfonydemo
0
 public function block_body($context, array $blocks = array())
 {
     $__internal_2711a2de54680a6942f1dff740f6e42a8e2c80389887697de66a2e47dbc445d2 = $this->env->getExtension("native_profiler");
     $__internal_2711a2de54680a6942f1dff740f6e42a8e2c80389887697de66a2e47dbc445d2->enter($__internal_2711a2de54680a6942f1dff740f6e42a8e2c80389887697de66a2e47dbc445d2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     echo "";
     $__internal_2711a2de54680a6942f1dff740f6e42a8e2c80389887697de66a2e47dbc445d2->leave($__internal_2711a2de54680a6942f1dff740f6e42a8e2c80389887697de66a2e47dbc445d2_prof);
 }
Example #11
Show file File: 8227f3957f19339a5ce375bbe63017b1f68a656bdbcb2f485e7ababbf8197021.php Project: RuntyCybin/CProject
0
 public function getform_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "forms_by_hash" => $__forms_by_hash__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269 = $this->env->getExtension("native_profiler");
         $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269->enter($__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "form_tree_details"));
         // line 458
         echo "    ";
         $context["tree"] = $this;
         // line 459
         echo "    <div class=\"tree-details\" ";
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "id", array(), "any", true, true)) {
             echo "id=\"";
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-details\"";
         }
         echo ">\n        <h2>\n            ";
         // line 461
         echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true);
         echo "\n            ";
         // line 462
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "type_class", array(), "any", true, true) && twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "type", array(), "any", true, true)) {
             // line 463
             echo "            <span class=\"form-type\">[<abbr title=\"";
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type_class", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type", array()), "html", null, true);
             echo "</abbr>]</span>\n            ";
         }
         // line 465
         echo "        </h2>\n\n        ";
         // line 467
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "errors", array(), "any", true, true) && twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array())) > 0) {
             // line 468
             echo "        <div class=\"errors\">\n            <h3>\n                <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 470
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\" href=\"#\">\n                    Errors <span class=\"toggle-icon\"></span>\n                </a>\n            </h3>\n\n            <table id=\"";
             // line 475
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\">\n                <thead>\n                    <tr>\n                        <th>Message</th>\n                        <th>Origin</th>\n                        <th>Cause</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 484
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 485
                 echo "                <tr>\n                    <td>";
                 // line 486
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["error"], "message", array()), "html", null, true);
                 echo "</td>\n                    <td>\n                        ";
                 // line 488
                 if (twig_test_empty(twig_template_get_attributes($this, $context["error"], "origin", array()))) {
                     // line 489
                     echo "                            <em>This form.</em>\n                        ";
                 } elseif (!twig_template_get_attributes($this, isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : null, twig_template_get_attributes($this, $context["error"], "origin", array()), array(), "array", true, true)) {
                     // line 491
                     echo "                            <em>Unknown.</em>\n                        ";
                 } else {
                     // line 493
                     echo "                            ";
                     echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"), twig_template_get_attributes($this, $context["error"], "origin", array()), array(), "array"), "name", array()), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 495
                 echo "                    </td>\n                    <td>\n                        ";
                 // line 497
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, $context["error"], "trace", array()));
                 $context['_iterated'] = false;
                 $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["trace"]) {
                     // line 498
                     echo "                            ";
                     if (!twig_template_get_attributes($this, $context["loop"], "first", array())) {
                         // line 499
                         echo "                                <span class=\"newline\">Caused by:</span>\n                            ";
                     }
                     // line 501
                     echo "\n                            ";
                     // line 502
                     if (twig_template_get_attributes($this, $context["trace"], "root", array(), "any", true, true)) {
                         // line 503
                         echo "                                <strong class=\"newline\">";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "class", array()), "html", null, true);
                         echo "</strong>\n                                <pre>";
                         // line 505
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "root", array()), "html", null, true);
                         // line 506
                         if (!twig_test_empty(twig_template_get_attributes($this, $context["trace"], "path", array()))) {
                             // line 507
                             if (twig_first($this->env, twig_template_get_attributes($this, $context["trace"], "path", array())) != "[") {
                                 echo ".";
                             }
                             // line 508
                             echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "path", array()), "html", null, true);
                         }
                         // line 509
                         echo " = ";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "value", array()), "html", null, true);
                         // line 510
                         echo "</pre>\n                            ";
                     } elseif (twig_template_get_attributes($this, $context["trace"], "message", array(), "any", true, true)) {
                         // line 512
                         echo "                                <strong class=\"newline\">";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "class", array()), "html", null, true);
                         echo "</strong>\n                                <pre>";
                         // line 513
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "message", array()), "html", null, true);
                         echo "</pre>\n                            ";
                     } else {
                         // line 515
                         echo "                                <pre>";
                         echo twig_escape_filter($this->env, $context["trace"], "html", null, true);
                         echo "</pre>\n                            ";
                     }
                     // line 517
                     echo "                        ";
                     $context['_iterated'] = true;
                     ++$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'];
                     }
                 }
                 if (!$context['_iterated']) {
                     // line 518
                     echo "                            <em>Unknown.</em>\n                        ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 520
                 echo "                    </td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 523
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 527
         echo "\n        ";
         // line 528
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", true, true)) {
             // line 529
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 530
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\" href=\"#\">\n                Default Data <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 535
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Property</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Model Format</th>\n                        <td>\n                            ";
             // line 547
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                 // line 548
                 echo "                                ";
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "model", array()), "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 550
                 echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
             }
             // line 552
             echo "                        </td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n                        <td>";
             // line 556
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "norm", array()), "html", null, true);
             echo "</td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">View Format</th>\n                        <td>\n                            ";
             // line 561
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                 // line 562
                 echo "                                ";
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "view", array()), "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 564
                 echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
             }
             // line 566
             echo "                        </td>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 572
         echo "\n        ";
         // line 573
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", true, true)) {
             // line 574
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 575
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\" href=\"#\">\n                Submitted Data <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 580
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\">\n        ";
             // line 581
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) {
                 // line 582
                 echo "            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Property</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">View Format</th>\n                        <td>\n                            ";
                 // line 593
                 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                     // line 594
                     echo "                                ";
                     echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "view", array()), "html", null, true);
                     echo "\n                            ";
                 } else {
                     // line 596
                     echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
                 }
                 // line 598
                 echo "                        </td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n                        <td>";
                 // line 602
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "norm", array()), "html", null, true);
                 echo "</td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Model Format</th>\n                        <td>\n                            ";
                 // line 607
                 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                     // line 608
                     echo "                                ";
                     echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "model", array()), "html", null, true);
                     echo "\n                            ";
                 } else {
                     // line 610
                     echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
                 }
                 // line 612
                 echo "                        </td>\n                    </tr>\n                </tbody>\n            </table>\n        ";
             } else {
                 // line 617
                 echo "            <div class=\"empty\">\n                <p>This form was not submitted.</p>\n            </div>\n        ";
             }
             // line 621
             echo "        </div>\n        ";
         }
         // line 623
         echo "\n        ";
         // line 624
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "passed_options", array(), "any", true, true)) {
             // line 625
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 626
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\" href=\"#\">\n                Passed Options <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 631
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\">\n            ";
             // line 632
             if (twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()))) {
                 // line 633
                 echo "            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Option</th>\n                        <th>Passed Value</th>\n                        <th>Resolved Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
                 // line 642
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()));
                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                     // line 643
                     echo "                <tr>\n                    <th>";
                     // line 644
                     echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                     echo "</th>\n                    <td>";
                     // line 645
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "</td>\n                    <td>\n                        ";
                     // line 647
                     if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array") === $context["value"]) {
                         // line 648
                         echo "                            <em class=\"font-normal text-muted\">same as passed value</em>\n                        ";
                     } else {
                         // line 650
                         echo "                            ";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array"), "html", null, true);
                         echo "\n                        ";
                     }
                     // line 652
                     echo "                    </td>\n                </tr>\n                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 655
                 echo "                </tbody>\n            </table>\n            ";
             } else {
                 // line 658
                 echo "                <div class=\"empty\">\n                    <p>No options where passed when constructing this form.</p>\n                </div>\n            ";
             }
             // line 662
             echo "        </div>\n        ";
         }
         // line 664
         echo "\n        ";
         // line 665
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "resolved_options", array(), "any", true, true)) {
             // line 666
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 667
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" href=\"#\">\n                Resolved Options <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 672
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" class=\"hidden\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Option</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 681
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()));
             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                 // line 682
                 echo "                <tr>\n                    <th scope=\"row\">";
                 // line 683
                 echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                 echo "</th>\n                    <td>";
                 // line 684
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 687
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 691
         echo "\n        ";
         // line 692
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "view_vars", array(), "any", true, true)) {
             // line 693
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 694
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" href=\"#\">\n                View Variables <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 699
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" class=\"hidden\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Variable</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 708
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "view_vars", array()));
             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
                 // line 709
                 echo "                <tr>\n                    <th scope=\"row\">";
                 // line 710
                 echo twig_escape_filter($this->env, $context["variable"], "html", null, true);
                 echo "</th>\n                    <td>";
                 // line 711
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 714
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 718
         echo "    </div>\n\n    ";
         // line 720
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "children", array()));
         foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
             // line 721
             echo "        ";
             echo $context["tree"]->getform_tree_details($context["childName"], $context["childData"], isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"));
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269->leave($__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
Example #12
Show file File: ProfilerExtension.php Project: Ener-Getick/symfony
0
 public function leave(\Twig_Profiler_Profile $profile)
 {
     parent::leave($profile);
     if ($this->stopwatch && $profile->isTemplate()) {
         $this->events[$profile]->stop();
         unset($this->events[$profile]);
     }
 }
Example #13
Show file File: 87ec0a1e234c8548ef2488bbdb0e312304c02e04aa2c760eb57304cb1f3997ae.php Project: CharuniKaushalya/Database-Project
0
 public function block_body($context, array $blocks = array())
 {
     $__internal_bb97b9056364d06b4fad9a7b248d79d0df7a0f43529cc1e553a5b510a8df8a9f = $this->env->getExtension("native_profiler");
     $__internal_bb97b9056364d06b4fad9a7b248d79d0df7a0f43529cc1e553a5b510a8df8a9f->enter($__internal_bb97b9056364d06b4fad9a7b248d79d0df7a0f43529cc1e553a5b510a8df8a9f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 4
     echo "    <h1></h1>\n    <div class=\"container-fluid\">\n    <div class=\"row\" style=\"height:20px;\"> \n    </div>\n    <div class=\"row\"> \n        <div class=\"col-md-1\"> \n        </div>\n        <div class=\"col-md-10\"> \n            <div class=\"box box-info\">\n                <div class=\"box-header with-border\">\n                    <h3 class=\"box-title\">ChildrenOfOtoeos Edit</h3>\n                    <a href=\"";
     // line 15
     echo $this->env->getExtension('routing')->getPath("childrenofotoeos_index");
     echo "\" class=\"btn btn-info\">Back to the list</a>\n                </div><!-- /.box-header -->\n                <!-- form start -->\n                <form class=\"form-horizontal\" method=\"post\" ";
     // line 18
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), 'enctype');
     echo ">\n                    <div class=\"box-body\">\n                        <div class=\"form-group\">\n                            <label class=\"col-sm-2 control-label\">Last Transfer Received</label>\n                            <div class=\"col-sm-10\">\n                                ";
     // line 23
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), "lastTransferReceived", array()), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Name", "id" => "form-name")));
     echo "\n                            </div>\n                        </div>\n                        <div class=\"form-group\">\n                            <label class=\"col-sm-2 control-label\">Before Address Work Place</label>\n                            <div class=\"col-sm-10\">\n                                ";
     // line 29
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), "beforeAddressWrkPlace", array()), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Address", "id" => "form-beforeAddressWrkPlace")));
     echo "\n                            </div>\n                        </div>\n                        <div class=\"form-group\">\n                            <label class=\"col-sm-2 control-label\">After Address Work Place</label>\n                            <div class=\"col-sm-10\">\n                                ";
     // line 35
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), "afterAddressWrkPlace", array()), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Address", "id" => "form-afterAddressWrkPlace")));
     echo "\n                            </div>\n                        </div>\n                        <div class=\"form-group\">\n                            <label class=\"col-sm-2 control-label\">Distance</label>\n                            <div class=\"col-sm-10\">\n                                ";
     // line 41
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), "distance", array()), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Address", "id" => "form-distance")));
     echo "\n                            </div>\n                        </div>\n                        <div class=\"form-group\">\n                            <label class=\"col-sm-2 control-label\">No School Addmitted</label>\n                            <div class=\"col-sm-10\">\n                                ";
     // line 47
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), "noSclAddmitted", array()), 'widget', array("attr" => array("class" => "form-control", "placeholder" => "Address", "id" => "form-noSclAddmitted")));
     echo "\n                            </div>\n                        </div>\n\n                        ";
     // line 51
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), 'form_start');
     echo "\n                            ";
     // line 52
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), 'widget');
     echo "\n                            <input type=\"submit\" value=\"Edit\" class=\"btn btn-info pull-right\"/>\n                        ";
     // line 54
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form"), 'form_end');
     echo "\n\n                     </div><!-- /.box-body -->\n                </form>\n                <div class=\"box-footer\">\n                \n                ";
     // line 60
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form_start');
     echo "\n                    <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\">\n                ";
     // line 62
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form_end');
     echo "\n                </div><!-- /.box-footer -->\n              </div>\n            </div>\n        </div>\n    </div>   \n";
     $__internal_bb97b9056364d06b4fad9a7b248d79d0df7a0f43529cc1e553a5b510a8df8a9f->leave($__internal_bb97b9056364d06b4fad9a7b248d79d0df7a0f43529cc1e553a5b510a8df8a9f_prof);
 }
Example #14
Show file File: 146494672a89fa1b9235dd8269d492da931b28940950e89e8fdb338bf86ea500.php Project: ruben998/web
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_bf581059e3526c2345244bd820f15e0a32bd4571e8ca6e1f8ddad80ef99e8529 = $this->env->getExtension("native_profiler");
     $__internal_bf581059e3526c2345244bd820f15e0a32bd4571e8ca6e1f8ddad80ef99e8529->enter($__internal_bf581059e3526c2345244bd820f15e0a32bd4571e8ca6e1f8ddad80ef99e8529_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:error.xml.twig"));
     // line 1
     echo "<?xml version=\"1.0\" encoding=\"";
     echo twig_escape_filter($this->env, $this->env->getCharset(), "html", null, true);
     echo "\" ?>\n\n<error code=\"";
     // line 3
     echo twig_escape_filter($this->env, isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "html", null, true);
     echo "\" message=\"";
     echo twig_escape_filter($this->env, isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "html", null, true);
     echo "\" />\n";
     $__internal_bf581059e3526c2345244bd820f15e0a32bd4571e8ca6e1f8ddad80ef99e8529->leave($__internal_bf581059e3526c2345244bd820f15e0a32bd4571e8ca6e1f8ddad80ef99e8529_prof);
 }
Example #15
Show file File: fdfb0551ecc8fadd42a9c87a3d59763cc04f01a364106c1d6abb9ef51f56a0b5.php Project: bamper/clothing_store_symfony
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549 = $this->env->getExtension("native_profiler");
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->enter($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base_js.html.twig"));
     // line 1
     echo "<script>/*<![CDATA[*/\n    Sfjs = (function() {\n        \"use strict\";\n\n        var noop = function() {},\n\n            collectionToArray = function (collection) {\n                var length = collection.length || 0,\n                    results = new Array(length);\n\n                while (length--) {\n                    results[length] = collection[length];\n                }\n\n                return results;\n            },\n\n            profilerStorageKey = 'sf2/profiler/',\n\n            request = function(url, onSuccess, onError, payload, options) {\n                var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n                options = options || {};\n                options.maxTries = options.maxTries || 0;\n                xhr.open(options.method || 'GET', url, true);\n                xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n                xhr.onreadystatechange = function(state) {\n                    if (4 !== xhr.readyState) {\n                        return null;\n                    }\n\n                    if (xhr.status == 404 && options.maxTries > 1) {\n                        setTimeout(function(){\n                            options.maxTries--;\n                            request(url, onSuccess, onError, payload, options);\n                        }, 500);\n\n                        return null;\n                    }\n\n                    if (200 === xhr.status) {\n                        (onSuccess || noop)(xhr);\n                    } else {\n                        (onError || noop)(xhr);\n                    }\n                };\n                xhr.send(payload || '');\n            },\n\n            hasClass = function(el, klass) {\n                return el.className && el.className.match(new RegExp('\\\\b' + klass + '\\\\b'));\n            },\n\n            removeClass = function(el, klass) {\n                if (el.className) {\n                    el.className = el.className.replace(new RegExp('\\\\b' + klass + '\\\\b'), ' ');\n                }\n            },\n\n            addClass = function(el, klass) {\n                if (!hasClass(el, klass)) {\n                    el.className += \" \" + klass;\n                }\n            },\n\n            getPreference = function(name) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                return localStorage.getItem(profilerStorageKey + name);\n            },\n\n            setPreference = function(name, value) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                localStorage.setItem(profilerStorageKey + name, value);\n            },\n\n            requestStack = [],\n\n            renderAjaxRequests = function() {\n                var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n                if (!requestCounter.length) {\n                    return;\n                }\n\n                var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n                var state = 'ok';\n                if (tbodies.length) {\n                    var tbody = tbodies[0];\n\n                    var rows = document.createDocumentFragment();\n\n                    if (requestStack.length) {\n                        for (var i = 0; i < requestStack.length; i++) {\n                            var request = requestStack[i];\n\n                            var row = document.createElement('tr');\n                            rows.appendChild(row);\n\n                            var methodCell = document.createElement('td');\n                            if (request.error) {\n                                methodCell.className = 'sf-ajax-request-error';\n                            }\n                            methodCell.textContent = request.method;\n                            row.appendChild(methodCell);\n\n                            var pathCell = document.createElement('td');\n                            pathCell.className = 'sf-ajax-request-url';\n                            if ('GET' === request.method) {\n                                var pathLink = document.createElement('a');\n                                pathLink.setAttribute('href', request.url);\n                                pathLink.textContent = request.url;\n                                pathCell.appendChild(pathLink);\n                            } else {\n                                pathCell.textContent = request.url;\n                            }\n                            pathCell.setAttribute('title', request.url);\n                            row.appendChild(pathCell);\n\n                            var durationCell = document.createElement('td');\n                            durationCell.className = 'sf-ajax-request-duration';\n\n                            if (request.duration) {\n                                durationCell.textContent = request.duration + \"ms\";\n                            } else {\n                                durationCell.textContent = '-';\n                            }\n                            row.appendChild(durationCell);\n\n                            row.appendChild(document.createTextNode(' '));\n                            var profilerCell = document.createElement('td');\n\n                            if (request.profilerUrl) {\n                                var profilerLink = document.createElement('a');\n                                profilerLink.setAttribute('href', request.profilerUrl);\n                                profilerLink.textContent = request.profile;\n                                profilerCell.appendChild(profilerLink);\n                            } else {\n                                profilerCell.textContent = 'n/a';\n                            }\n\n                            row.appendChild(profilerCell);\n\n                            var requestState = 'ok';\n                            if (request.error) {\n                                requestState = 'error';\n                                if (state != \"loading\" && i > requestStack.length - 4) {\n                                    state = 'error';\n                                }\n                            } else if (request.loading) {\n                                requestState = 'loading';\n                                state = 'loading';\n                            }\n                            row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n                        }\n\n                        var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n                        var children = collectionToArray(tbody.children);\n                        for (var i = 0; i < children.length; i++) {\n                            tbody.removeChild(children[i]);\n                        }\n                        tbody.appendChild(rows);\n\n                        if (infoSpan) {\n                            var text = requestStack.length + ' call' + (requestStack.length > 1 ? 's' : '');\n                            infoSpan.textContent = text;\n                        }\n                    } else {\n                        var cell = document.createElement('td');\n                        cell.setAttribute('colspan', '4');\n                        cell.textContent = \"No AJAX requests yet.\";\n                        var row = document.createElement('tr');\n                        row.appendChild(cell);\n                        tbody.appendChild(row);\n                    }\n                }\n\n                requestCounter[0].textContent = requestStack.length;\n\n                var className = 'sf-toolbar-ajax-requests sf-toolbar-status';\n                if (state == 'ok') {\n                    className += ' sf-toolbar-status-green';\n                } else if (state == 'error') {\n                    className += ' sf-toolbar-status-red';\n                } else {\n                    className += ' sf-ajax-request-loading';\n                }\n\n                requestCounter[0].className = className;\n            };\n\n        var addEventListener;\n\n        var el = document.createElement('div');\n        if (!'addEventListener' in el) {\n            addEventListener = function (element, eventName, callback) {\n                element.attachEvent('on' + eventName, callback);\n            };\n        } else {\n            addEventListener = function (element, eventName, callback) {\n                element.addEventListener(eventName, callback, false);\n            };\n        }\n\n        ";
     // line 208
     if (array_key_exists("excluded_ajax_paths", $context)) {
         // line 209
         echo "            if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n                var proxied = XMLHttpRequest.prototype.open;\n\n                XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n                    var self = this;\n\n                    /* prevent logging AJAX calls to static and inline files, like templates */\n                    var path = url;\n                    if (url.substr(0, 1) === '/') {\n                        if (0 === url.indexOf('";
         // line 218
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                            path = url.substr(";
         // line 219
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                        }\n                    }\n                    else if (0 === url.indexOf('";
         // line 222
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                        path = url.substr(";
         // line 223
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                    }\n\n                    if (path.substr(0, 1) === '/' && !path.match(new RegExp(";
         // line 226
         echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths"));
         echo "))) {\n                        var stackElement = {\n                            loading: true,\n                            error: false,\n                            url: url,\n                            method: method,\n                            start: new Date()\n                        };\n\n                        requestStack.push(stackElement);\n\n                        this.addEventListener('readystatechange', function() {\n                            if (self.readyState == 4) {\n                                stackElement.duration = new Date() - stackElement.start;\n                                stackElement.loading = false;\n                                stackElement.error = self.status < 200 || self.status >= 400;\n                                stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n                                stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n                                Sfjs.renderAjaxRequests();\n                            }\n                        }, false);\n\n                        Sfjs.renderAjaxRequests();\n                    }\n\n                    proxied.apply(this, Array.prototype.slice.call(arguments));\n                };\n            }\n        ";
     }
     // line 256
     echo "\n        return {\n            hasClass: hasClass,\n\n            removeClass: removeClass,\n\n            addClass: addClass,\n\n            getPreference: getPreference,\n\n            setPreference: setPreference,\n\n            addEventListener: addEventListener,\n\n            request: request,\n\n            renderAjaxRequests: renderAjaxRequests,\n\n            load: function(selector, url, onSuccess, onError, options) {\n                var el = document.getElementById(selector);\n\n                if (el && el.getAttribute('data-sfurl') !== url) {\n                    request(\n                        url,\n                        function(xhr) {\n                            el.innerHTML = xhr.responseText;\n                            el.setAttribute('data-sfurl', url);\n                            removeClass(el, 'loading');\n                            (onSuccess || noop)(xhr, el);\n                        },\n                        function(xhr) { (onError || noop)(xhr, el); },\n                        '',\n                        options\n                    );\n                }\n\n                return this;\n            },\n\n            toggle: function(selector, elOn, elOff) {\n                var tmp = elOn.style.display,\n                    el = document.getElementById(selector);\n\n                elOn.style.display = elOff.style.display;\n                elOff.style.display = tmp;\n\n                if (el) {\n                    el.style.display = 'none' === tmp ? 'none' : 'block';\n                }\n\n                return this;\n            }\n        }\n    })();\n/*]]>*/</script>\n";
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->leave($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof);
 }
Example #16
Show file File: 82bf9060026b41e452330cfc24d37c25c316e055316dbb8dab75c50f5505f6e3.php Project: MikeVeerman/symf2tut
0
 public function block_panel($context, array $blocks = array())
 {
     $__internal_33fd6573dce712412154a3e7aa385961f68db857b12356661de9fb6f32a4a8b2 = $this->env->getExtension("native_profiler");
     $__internal_33fd6573dce712412154a3e7aa385961f68db857b12356661de9fb6f32a4a8b2->enter($__internal_33fd6573dce712412154a3e7aa385961f68db857b12356661de9fb6f32a4a8b2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 71
     echo "    <div class=\"sf-tabs\">\n        <div class=\"tab\">\n            <h3 class=\"tab-title\">Request</h3>\n\n            <div class=\"tab-content\">\n                <h3>GET Parameters</h3>\n\n                ";
     // line 78
     if (twig_test_empty($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestquery", array()), "all", array()))) {
         // line 79
         echo "                    <div class=\"empty\">\n                        <p>No GET parameters</p>\n                    </div>\n                ";
     } else {
         // line 83
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestquery", array())), false);
         echo "\n                ";
     }
     // line 85
     echo "\n                <h3>POST Parameters</h3>\n\n                ";
     // line 88
     if (twig_test_empty($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestrequest", array()), "all", array()))) {
         // line 89
         echo "                    <div class=\"empty\">\n                        <p>No POST parameters</p>\n                    </div>\n                ";
     } else {
         // line 93
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestrequest", array())), false);
         echo "\n                ";
     }
     // line 95
     echo "\n                <h3>Request Attributes</h3>\n\n                ";
     // line 98
     if (twig_test_empty($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestattributes", array()), "all", array()))) {
         // line 99
         echo "                    <div class=\"empty\">\n                        <p>No attributes</p>\n                    </div>\n                ";
     } else {
         // line 103
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestattributes", array())), false);
         echo "\n                ";
     }
     // line 105
     echo "\n                <h3>Cookies</h3>\n\n                ";
     // line 108
     if (twig_test_empty($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestcookies", array()), "all", array()))) {
         // line 109
         echo "                    <div class=\"empty\">\n                        <p>No cookies</p>\n                    </div>\n                ";
     } else {
         // line 113
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestcookies", array())), false);
         echo "\n                ";
     }
     // line 115
     echo "\n                <h3>Request Headers</h3>\n                ";
     // line 117
     echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestheaders", array()), "labels" => array(0 => "Header", 1 => "Value")), false);
     echo "\n\n                <h3>Request Content</h3>\n\n                ";
     // line 121
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "content", array()) == false) {
         // line 122
         echo "                    <div class=\"empty\">\n                        <p>Request content not available (it was retrieved as a resource).</p>\n                    </div>\n                ";
     } elseif ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "content", array())) {
         // line 126
         echo "                    <div class=\"card\">\n                        <pre class=\"break-long-words\">";
         // line 127
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "content", array()), "html", null, true);
         echo "</pre>\n                    </div>\n                ";
     } else {
         // line 130
         echo "                    <div class=\"empty\">\n                        <p>No content</p>\n                    </div>\n                ";
     }
     // line 134
     echo "\n                <h3>Server Parameters</h3>\n                ";
     // line 136
     echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "requestserver", array())), false);
     echo "\n            </div>\n        </div>\n\n        <div class=\"tab\">\n            <h3 class=\"tab-title\">Response</h3>\n\n            <div class=\"tab-content\">\n                <h3>Response Headers</h3>\n\n                ";
     // line 146
     echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "responseheaders", array()), "labels" => array(0 => "Header", 1 => "Value")), false);
     echo "\n            </div>\n        </div>\n\n        <div class=\"tab ";
     // line 150
     echo twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "sessionmetadata", array())) ? "disabled" : "";
     echo "\">\n            <h3 class=\"tab-title\">Session</h3>\n\n            <div class=\"tab-content\">\n                <h3>Session Metadata</h3>\n\n                ";
     // line 156
     if (twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "sessionmetadata", array()))) {
         // line 157
         echo "                    <div class=\"empty\">\n                        <p>No session metadata</p>\n                    </div>\n                ";
     } else {
         // line 161
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "sessionmetadata", array())), false);
         echo "\n                ";
     }
     // line 163
     echo "\n                <h3>Session Attributes</h3>\n\n                ";
     // line 166
     if (twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "sessionattributes", array()))) {
         // line 167
         echo "                    <div class=\"empty\">\n                        <p>No session attributes</p>\n                    </div>\n                ";
     } else {
         // line 171
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "sessionattributes", array()), "labels" => array(0 => "Attribute", 1 => "Value")), false);
         echo "\n                ";
     }
     // line 173
     echo "            </div>\n        </div>\n\n        <div class=\"tab ";
     // line 176
     echo twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "flashes", array())) ? "disabled" : "";
     echo "\">\n            <h3 class=\"tab-title\">Flashes</h3>\n\n            <div class=\"tab-content\">\n                <h3>Flashes</h3>\n\n                ";
     // line 182
     if (twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "flashes", array()))) {
         // line 183
         echo "                    <div class=\"empty\">\n                        <p>No flash messages were created.</p>\n                    </div>\n                ";
     } else {
         // line 187
         echo "                    ";
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "flashes", array())), false);
         echo "\n                ";
     }
     // line 189
     echo "            </div>\n        </div>\n\n        ";
     // line 192
     if ($this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "parent", array())) {
         // line 193
         echo "        <div class=\"tab\">\n            <h3 class=\"tab-title\">Parent Request</h3>\n\n            <div class=\"tab-content\">\n                <h3>\n                    <a href=\"";
         // line 198
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getAttribute($this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "parent", array()), "token", array()))), "html", null, true);
         echo "\">Return to parent request</a>\n                    <small>(token = ";
         // line 199
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "parent", array()), "token", array()), "html", null, true);
         echo ")</small>\n                </h3>\n\n                ";
         // line 202
         echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "parent", array()), "getcollector", array(0 => "request"), "method"), "requestattributes", array())), false);
         echo "\n            </div>\n        </div>\n        ";
     }
     // line 206
     echo "\n        ";
     // line 207
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "children", array()))) {
         // line 208
         echo "        <div class=\"tab\">\n            <h3 class=\"tab-title\">Sub Requests <span class=\"badge\">";
         // line 209
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "children", array())), "html", null, true);
         echo "</span></h3>\n\n            <div class=\"tab-content\">\n                ";
         // line 212
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["profile"]) ? $context["profile"] : $this->getContext($context, "profile"), "children", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
             // line 213
             echo "                    <h3>\n                        <a href=\"";
             // line 214
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getAttribute($context["child"], "token", array()))), "html", null, true);
             echo "\">";
             // line 215
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "getcollector", array(0 => "request"), "method"), "requestattributes", array()), "get", array(0 => "_controller"), "method"), "html", null, true);
             // line 216
             echo "</a>\n                        <small>(token = ";
             // line 217
             echo twig_escape_filter($this->env, $this->getAttribute($context["child"], "token", array()), "html", null, true);
             echo ")</small>\n                    </h3>\n\n                    ";
             // line 220
             echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", array("bag" => $this->getAttribute($this->getAttribute($context["child"], "getcollector", array(0 => "request"), "method"), "requestattributes", array())), false);
             echo "\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 222
         echo "            </div>\n        </div>\n        ";
     }
     // line 225
     echo "    </div>\n";
     $__internal_33fd6573dce712412154a3e7aa385961f68db857b12356661de9fb6f32a4a8b2->leave($__internal_33fd6573dce712412154a3e7aa385961f68db857b12356661de9fb6f32a4a8b2_prof);
 }
Example #17
Show file File: AbstractTest.php Project: tahermarkos/Transport
0
 protected function getProfile()
 {
     $profile = new Twig_Profiler_Profile();
     $index = new Twig_Profiler_Profile('index.twig', Twig_Profiler_Profile::TEMPLATE);
     $profile->addProfile($index);
     $body = new Twig_Profiler_Profile('embedded.twig', Twig_Profiler_Profile::BLOCK, 'body');
     $body->leave();
     $index->addProfile($body);
     $embedded = new Twig_Profiler_Profile('embedded.twig', Twig_Profiler_Profile::TEMPLATE);
     $included = new Twig_Profiler_Profile('included.twig', Twig_Profiler_Profile::TEMPLATE);
     $embedded->addProfile($included);
     $index->addProfile($embedded);
     $included->leave();
     $embedded->leave();
     $macro = new Twig_Profiler_Profile('index.twig', Twig_Profiler_Profile::MACRO, 'foo');
     $macro->leave();
     $index->addProfile($macro);
     $embedded = clone $embedded;
     $index->addProfile($embedded);
     $a = range(1, 1000);
     $embedded->leave();
     $profile->leave();
     usleep(5000);
     $index->leave();
     return $profile;
 }
Example #18
Show file File: Blackfire.php Project: qcdcool/gitblog
0
 private function dumpProfile($edge, Twig_Profiler_Profile $profile, &$data)
 {
     if (isset($data[$edge])) {
         $data[$edge]['ct'] += 1;
         $data[$edge]['wt'] += floor($profile->getDuration() * 1000000);
         $data[$edge]['mu'] += $profile->getMemoryUsage();
         $data[$edge]['pmu'] += $profile->getPeakMemoryUsage();
     } else {
         $data[$edge] = array('ct' => 1, 'wt' => floor($profile->getDuration() * 1000000), 'mu' => $profile->getMemoryUsage(), 'pmu' => $profile->getPeakMemoryUsage());
     }
 }
Example #19
Show file File: ProfileTest.php Project: tahermarkos/Transport
0
 public function testSerialize()
 {
     $profile = new Twig_Profiler_Profile('template', 'type', 'name');
     $profile1 = new Twig_Profiler_Profile('template1', 'type1', 'name1');
     $profile->addProfile($profile1);
     $profile->leave();
     $profile1->leave();
     $profile2 = unserialize(serialize($profile));
     $profiles = $profile->getProfiles();
     $this->assertCount(1, $profiles);
     $profile3 = $profiles[0];
     $this->assertEquals($profile->getTemplate(), $profile2->getTemplate());
     $this->assertEquals($profile->getType(), $profile2->getType());
     $this->assertEquals($profile->getName(), $profile2->getName());
     $this->assertEquals($profile->getDuration(), $profile2->getDuration());
     $this->assertEquals($profile1->getTemplate(), $profile3->getTemplate());
     $this->assertEquals($profile1->getType(), $profile3->getType());
     $this->assertEquals($profile1->getName(), $profile3->getName());
 }
Example #20
Show file File: Profiler.php Project: Dren-x/mobit
0
 public function leave(Twig_Profiler_Profile $profile)
 {
     $profile->leave();
     array_shift($this->actives);
     if (1 === count($this->actives)) {
         $this->actives[0]->leave();
     }
 }
Example #21
Show file File: 0f3baf774c1c5d578c2c519fef938f74b38f0582f9d885a6ff32f2252b29fae7.php Project: Milkyway2605/EasyStage_Symfony
0
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9 = $this->env->getExtension("native_profiler");
     $__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9->enter($__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:exception.txt.twig"));
     // line 1
     echo "[exception] ";
     echo (isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code")) . " | " . (isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text")) . " | " . $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "class", array());
     echo "\n[message] ";
     // line 2
     echo $this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "message", array());
     echo "\n";
     // line 3
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array()));
     foreach ($context['_seq'] as $context["i"] => $context["e"]) {
         // line 4
         echo "[";
         echo $context["i"] + 1;
         echo "] ";
         echo $this->getAttribute($context["e"], "class", array());
         echo ": ";
         echo $this->getAttribute($context["e"], "message", array());
         echo "\n";
         // line 5
         $this->loadTemplate("TwigBundle:Exception:traces.txt.twig", "TwigBundle:Exception:exception.txt.twig", 5)->display(array("exception" => $context["e"]));
         // line 6
         echo "\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9->leave($__internal_82a0e2110829e05d04d509aaad606161779028bbabd90aadd2356846d70947b9_prof);
 }