当前位置: 首页>>代码示例>>PHP>>正文


PHP twig_get_array_keys_filter函数代码示例

本文整理汇总了PHP中twig_get_array_keys_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_get_array_keys_filter函数的具体用法?PHP twig_get_array_keys_filter怎么用?PHP twig_get_array_keys_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了twig_get_array_keys_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_6ac8a9b7a99b74a14d7bc5579b2d44b1082eefcb3fe2f81a7c10d9fa311073c7 = $this->env->getExtension("native_profiler");
     $__internal_6ac8a9b7a99b74a14d7bc5579b2d44b1082eefcb3fe2f81a7c10d9fa311073c7->enter($__internal_6ac8a9b7a99b74a14d7bc5579b2d44b1082eefcb3fe2f81a7c10d9fa311073c7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:table.html.twig"));
     // line 1
     echo "<table ";
     if (array_key_exists("class", $context)) {
         echo "class='";
         echo twig_escape_filter($this->env, $this->getContext($context, "class"), "html", null, true);
         echo "'";
     }
     echo " >\n    <thead>\n        <tr>\n            <th scope=\"col\" style=\"width: 25%\">Key</th>\n            <th scope=\"col\" style=\"width: 75%\">Value</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th>";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td><pre>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute($this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</pre></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
     $__internal_6ac8a9b7a99b74a14d7bc5579b2d44b1082eefcb3fe2f81a7c10d9fa311073c7->leave($__internal_6ac8a9b7a99b74a14d7bc5579b2d44b1082eefcb3fe2f81a7c10d9fa311073c7_prof);
 }
开发者ID:asa93,项目名称:Batch,代码行数:32,代码来源:a9cf47ffe973e17b20ea5cd5cbb631c48da0744c3b717428534949d04e7a642a.php

示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<table ";
     if (array_key_exists("class", $context)) {
         echo "class='";
         echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
         echo "'";
     }
     echo " >\n    <thead>\n        <tr>\n            <th scope=\"col\" style=\"width: 25%\">Key</th>\n            <th scope=\"col\" style=\"width: 75%\">Value</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th>";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td><pre>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</pre></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
 }
开发者ID:somaizouhaier,项目名称:allemni,代码行数:29,代码来源:a8050880d83e7d4b3ab68540e42b840e20712f7e4deec63b6018eae1c4bd7083.php

示例3: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_e29c01e815d12a82da49208d02f984a876d0190e068e1cf00d5b465f12062715 = $this->env->getExtension("native_profiler");
     $__internal_e29c01e815d12a82da49208d02f984a876d0190e068e1cf00d5b465f12062715->enter($__internal_e29c01e815d12a82da49208d02f984a876d0190e068e1cf00d5b465f12062715_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:table.html.twig"));
     // line 1
     echo "<table ";
     if (array_key_exists("class", $context)) {
         echo "class='";
         echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
         echo "'";
     }
     echo " >\n    <thead>\n        <tr>\n            <th scope=\"col\" style=\"width: 25%\">Key</th>\n            <th scope=\"col\" style=\"width: 75%\">Value</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th>";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td><pre>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</pre></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
     $__internal_e29c01e815d12a82da49208d02f984a876d0190e068e1cf00d5b465f12062715->leave($__internal_e29c01e815d12a82da49208d02f984a876d0190e068e1cf00d5b465f12062715_prof);
 }
开发者ID:Aryellix,项目名称:scrumator,代码行数:32,代码来源:335b22550ad253e3f5aab98b1000f22ad5196af583da9d81bca5c20fd37fb376.php

示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_b71ec851d725e3bfd4c170957ebd7a59b76cca17d3f2f99b4f29a8d8a232482b = $this->env->getExtension("native_profiler");
     $__internal_b71ec851d725e3bfd4c170957ebd7a59b76cca17d3f2f99b4f29a8d8a232482b->enter($__internal_b71ec851d725e3bfd4c170957ebd7a59b76cca17d3f2f99b4f29a8d8a232482b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/table.html.twig"));
     // line 1
     echo "<table ";
     if (array_key_exists("class", $context)) {
         echo "class='";
         echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
         echo "'";
     }
     echo " >\n    <thead>\n        <tr>\n            <th scope=\"col\" style=\"width: 25%\">Key</th>\n            <th scope=\"col\" style=\"width: 75%\">Value</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th>";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td><pre>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</pre></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
     $__internal_b71ec851d725e3bfd4c170957ebd7a59b76cca17d3f2f99b4f29a8d8a232482b->leave($__internal_b71ec851d725e3bfd4c170957ebd7a59b76cca17d3f2f99b4f29a8d8a232482b_prof);
 }
开发者ID:2AE,项目名称:GSBphp,代码行数:32,代码来源:b41816006aab1eb659a10543151f8aaf495ad892a037c87ee58adcba75fec602.php

示例5: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_07c6db0c7bf0c2b0f39dd8a2adb8734aa673fb222a82e498d6dc9e7a199b1b8f = $this->env->getExtension("native_profiler");
     $__internal_07c6db0c7bf0c2b0f39dd8a2adb8734aa673fb222a82e498d6dc9e7a199b1b8f->enter($__internal_07c6db0c7bf0c2b0f39dd8a2adb8734aa673fb222a82e498d6dc9e7a199b1b8f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:table.html.twig"));
     // line 1
     echo "<table class=\"";
     echo twig_escape_filter($this->env, array_key_exists("class", $context) ? _twig_default_filter(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "") : "", "html", null, true);
     echo "\">\n    <thead>\n        <tr>\n            <th scope=\"col\" class=\"key\">";
     // line 4
     echo twig_escape_filter($this->env, array_key_exists("labels", $context) ? $this->getAttribute(isset($context["labels"]) ? $context["labels"] : $this->getContext($context, "labels"), 0, array(), "array") : "Key", "html", null, true);
     echo "</th>\n            <th scope=\"col\">";
     // line 5
     echo twig_escape_filter($this->env, array_key_exists("labels", $context) ? $this->getAttribute(isset($context["labels"]) ? $context["labels"] : $this->getContext($context, "labels"), 1, array(), "array") : "Value", "html", null, true);
     echo "</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th scope=\"row\">";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
     $__internal_07c6db0c7bf0c2b0f39dd8a2adb8734aa673fb222a82e498d6dc9e7a199b1b8f->leave($__internal_07c6db0c7bf0c2b0f39dd8a2adb8734aa673fb222a82e498d6dc9e7a199b1b8f_prof);
 }
开发者ID:vodich,项目名称:platform,代码行数:34,代码来源:6234253db580d72004d75cccd4fe1f1c17089c593fcf959d733b3f986b8aea38.php

示例6: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<table ";
     if (array_key_exists("class", $context)) {
         echo "class='";
         echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
         echo "'";
     }
     echo " >\n    <thead>\n        <tr>\n            <th scope=\"col\">Key</th>\n            <th scope=\"col\">Value</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th>";
         // line 11
         echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : $this->getContext($context, "key"), "html", null, true);
         echo "</th>\n                ";
         // line 13
         echo "                <td>";
         echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), isset($context["key"]) ? $context["key"] : $this->getContext($context, "key"), array(), "array"), 64 | 256), "html", null, true);
         echo "</td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "    </tbody>\n</table>\n";
 }
开发者ID:guich25,项目名称:Ecommerce,代码行数:30,代码来源:a2098ab8ef2ca40e6828ee970004e417c1de930929a169a9d28938c0bcb0.php

示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e = $this->env->getExtension("native_profiler");
     $__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e->enter($__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/table.html.twig"));
     // line 1
     echo "<table class=\"";
     echo twig_escape_filter($this->env, array_key_exists("class", $context) ? _twig_default_filter(isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "") : "", "html", null, true);
     echo "\">\n    <thead>\n        <tr>\n            <th scope=\"col\" class=\"key\">";
     // line 4
     echo twig_escape_filter($this->env, array_key_exists("labels", $context) ? $this->getAttribute(isset($context["labels"]) ? $context["labels"] : $this->getContext($context, "labels"), 0, array(), "array") : "Key", "html", null, true);
     echo "</th>\n            <th scope=\"col\">";
     // line 5
     echo twig_escape_filter($this->env, array_key_exists("labels", $context) ? $this->getAttribute(isset($context["labels"]) ? $context["labels"] : $this->getContext($context, "labels"), 1, array(), "array") : "Value", "html", null, true);
     echo "</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"))));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 10
         echo "            <tr>\n                <th scope=\"row\">";
         // line 11
         echo twig_escape_filter($this->env, $context["key"], "html", null, true);
         echo "</th>\n                <td>";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('profiler')->dumpValue($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), $context["key"], array(), "array")), "html", null, true);
         echo "</td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    </tbody>\n</table>\n";
     $__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e->leave($__internal_d9c4a74d996a7844ff543e95958cad98f3fdde40163727ff20a0ad792cbe4c1e_prof);
 }
开发者ID:rince1990,项目名称:photocool,代码行数:34,代码来源:ed29ac91b691faa42d1f27eaeeb9c3f0b2e96d8e9fbfbef6a49c70535fd936bb.php

示例8: doDisplay

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<strong>Explanation:</strong>

<table style=\"margin: 5px 0;\">
    <thead>
        <tr>
            ";
        // line 6
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute((isset($context["data"]) ? $context["data"] : $this->getContext($context, "data")), 0, array(), "array")));
        foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
            // line 7
            echo "                <th>";
            echo twig_escape_filter($this->env, $context["label"], "html", null, true);
            echo "</th>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 9
        echo "        </tr>
    </thead>
    <tbody>
        ";
        // line 12
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["data"]) ? $context["data"] : $this->getContext($context, "data")));
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 13
            echo "        <tr>
            ";
            // line 14
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($context["row"]);
            foreach ($context['_seq'] as $context["key"] => $context["item"]) {
                // line 15
                echo "                <td>";
                echo twig_escape_filter($this->env, ((("possible_keys" == $context["key"])) ? (strtr($context["item"], array("," => ", "))) : ($context["item"])), "html", null, true);
                echo "</td>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 17
            echo "        </tr>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 19
        echo "    </tbody>
</table>
";
    }
开发者ID:ataxel,项目名称:tp,代码行数:59,代码来源:87ef1c13b48cf8b973cee34d17e8f2b6dca233d6e20b155f0a0c71fe55c1.php

示例9: block_panel

 public function block_panel($context, array $blocks = array())
 {
     // line 13
     echo "    <h2>Called Listeners</h2>\n\n    <table>\n        <tr>\n            <th>Event name</th>\n            <th>Priority</th>\n            <th>Listener</th>\n        </tr>\n        ";
     // line 21
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "calledlisteners"));
     foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
         // line 22
         echo "            <tr>\n                <td><code>";
         // line 23
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "event"), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 24
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "priority"), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 25
         echo $context["__internal_03175e35fdf2fbd0a5ea82f398aaec4c_1"]->getdisplay_listener($this->getContext($context, "listener"));
         echo "</code></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 28
     echo "    </table>\n\n    ";
     // line 30
     if ($this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners")) {
         // line 31
         echo "        <h2>Not Called Listeners</h2>\n\n        <table>\n            <tr>\n                <th>Event name</th>\n                <th>Priority</th>\n                <th>Listener</th>\n            </tr>\n            ";
         // line 39
         $context["listeners"] = $this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners");
         // line 40
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, "listeners"))));
         foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
             // line 41
             echo "                <tr>\n                    <td><code>";
             // line 42
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"), "event"), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 43
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"), "priority"), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 44
             echo $context["__internal_03175e35fdf2fbd0a5ea82f398aaec4c_1"]->getdisplay_listener($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"));
             echo "</code></td>\n                </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 47
         echo "        </table>\n    ";
     }
 }
开发者ID:laubosslink,项目名称:lab,代码行数:55,代码来源:5e35fdf2fbd0a5ea82f398aaec4c.php

示例10: block_panelContent

 public function block_panelContent($context, array $blocks = array())
 {
     // line 24
     echo "    <h2>Called Listeners</h2>\n\n    <table>\n        <tr>\n            <th>Event name</th>\n            <th>Priority</th>\n            <th>Listener</th>\n        </tr>\n        ";
     // line 32
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "calledlisteners"));
     foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
         // line 33
         echo "            <tr>\n                <td><code>";
         // line 34
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "event"), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 35
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "listener"), "priority"), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 36
         echo $context["__internal_ab1f4715ed09b657b05a4dce5beb775a49c5e30b"]->getdisplay_listener($this->getContext($context, "listener"));
         echo "</code></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 39
     echo "    </table>\n\n    ";
     // line 41
     if ($this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners")) {
         // line 42
         echo "        <h2>Not Called Listeners</h2>\n\n        <table>\n            <tr>\n                <th>Event name</th>\n                <th>Priority</th>\n                <th>Listener</th>\n            </tr>\n            ";
         // line 50
         $context["listeners"] = $this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners");
         // line 51
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, "listeners"))));
         foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
             // line 52
             echo "                <tr>\n                    <td><code>";
             // line 53
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"), "event"), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 54
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"), "priority"), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 55
             echo $context["__internal_ab1f4715ed09b657b05a4dce5beb775a49c5e30b"]->getdisplay_listener($this->getAttribute($this->getContext($context, "listeners"), $this->getContext($context, "listener"), array(), "array"));
             echo "</code></td>\n                </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 58
         echo "        </table>\n    ";
     }
 }
开发者ID:joan16v,项目名称:symfony2_test,代码行数:55,代码来源:d9e17a20b7ee3ccb43531124b847.php

示例11: block_panelContent

 public function block_panelContent($context, array $blocks = array())
 {
     // line 24
     echo "    <h2>Called Listeners</h2>\n\n    <table>\n        <tr>\n            <th>Event name</th>\n            <th>Listener</th>\n        </tr>\n        ";
     // line 31
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "calledlisteners", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
         // line 32
         echo "            <tr>\n                <td><code>";
         // line 33
         echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "event", array()), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 34
         echo $context["__internal_ca7298c0f97992f8db99dba66122337d9148c8b39cb97f9e760e6ea1a56c3032"]->getdisplay_listener($context["listener"]);
         echo "</code></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 37
     echo "    </table>\n\n    <h2>Not Called Listeners</h2>\n\n    ";
     // line 41
     if ($this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners", array())) {
         // line 42
         echo "        <table>\n            <tr>\n                <th>Event name</th>\n                <th>Listener</th>\n            </tr>\n            ";
         // line 47
         $context["listeners"] = $this->getAttribute($this->getContext($context, "collector"), "notcalledlisteners", array());
         // line 48
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, "listeners"))));
         foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
             // line 49
             echo "                <tr>\n                    <td><code>";
             // line 50
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "listeners"), $context["listener"], array(), "array"), "event", array()), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 51
             echo $context["__internal_ca7298c0f97992f8db99dba66122337d9148c8b39cb97f9e760e6ea1a56c3032"]->getdisplay_listener($this->getAttribute($this->getContext($context, "listeners"), $context["listener"], array(), "array"));
             echo "</code></td>\n                </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 54
         echo "        </table>\n    ";
     } else {
         // line 56
         echo "        <p>\n            <strong>No uncalled listeners</strong>.\n        </p>\n        <p>\n\n            All listeners were called for this request or an error occurred\n            when trying to collect uncalled listeners (in which case check the\n            logs to get more information).\n\n        </p>\n    ";
     }
 }
开发者ID:bettaiebahmed,项目名称:TunisiaMallProject,代码行数:52,代码来源:df3fade58dc88e35259c56d7adac97a65f1a3b112fd5898a2805a40534a9.php

示例12: block_panelContent

 public function block_panelContent($context, array $blocks = array())
 {
     // line 24
     echo "    <h2>Called Listeners</h2>\n\n    <table>\n        <tr>\n            <th>Event name</th>\n            <th>Listener</th>\n        </tr>\n        ";
     // line 31
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "calledlisteners", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
         // line 32
         echo "            <tr>\n                <td><code>";
         // line 33
         echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "event", array()), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 34
         echo $context["__internal_a4ac6a6fae1596d33f13651e2f6077739646811781c15832459cbf78de933e81"]->getdisplay_listener($context["listener"]);
         echo "</code></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 37
     echo "    </table>\n\n    <h2>Not Called Listeners</h2>\n\n    ";
     // line 41
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "notcalledlisteners", array())) {
         // line 42
         echo "        <table>\n            <tr>\n                <th>Event name</th>\n                <th>Listener</th>\n            </tr>\n            ";
         // line 47
         $context["listeners"] = $this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "notcalledlisteners", array());
         // line 48
         echo "            ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["listeners"]) ? $context["listeners"] : null)));
         foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
             // line 49
             echo "                <tr>\n                    <td><code>";
             // line 50
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["listeners"]) ? $context["listeners"] : null, $context["listener"], array(), "array"), "event", array()), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 51
             echo $context["__internal_a4ac6a6fae1596d33f13651e2f6077739646811781c15832459cbf78de933e81"]->getdisplay_listener($this->getAttribute(isset($context["listeners"]) ? $context["listeners"] : null, $context["listener"], array(), "array"));
             echo "</code></td>\n                </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 54
         echo "        </table>\n    ";
     } else {
         // line 56
         echo "        <p>\n            <strong>No uncalled listeners</strong>.\n        </p>\n        <p>\n\n            All listeners were called for this request or an error occurred\n            when trying to collect uncalled listeners (in which case check the\n            logs to get more information).\n\n        </p>\n    ";
     }
 }
开发者ID:skwill,项目名称:3kings,代码行数:52,代码来源:864954c59020c0be697278f45cdd9c1bec82f22c63100adc85309cf09e65e64b.php

示例13: block_panelContent

 public function block_panelContent($context, array $blocks = array())
 {
     // line 24
     echo "    <h2>Called Listeners</h2>\n\n    <table>\n        <tr>\n            <th>Event name</th>\n            <th>Listener</th>\n        </tr>\n        ";
     // line 31
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "calledlisteners"));
     foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
         // line 32
         echo "            <tr>\n                <td><code>";
         // line 33
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener"), "event"), "html", null, true);
         echo "</code></td>\n                <td><code>";
         // line 34
         echo $context["__internal_cb6bfed9c579242d840ceafbf7b86211445ef36a61f85cff2dfd206928f47c4f"]->getdisplay_listener(isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener"));
         echo "</code></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 37
     echo "    </table>\n\n    <h2>Not Called Listeners</h2>\n\n    ";
     // line 41
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "notcalledlisteners")) {
         // line 42
         echo "        <table>\n            <tr>\n                <th>Event name</th>\n                <th>Listener</th>\n            </tr>\n            ";
         // line 47
         $context["listeners"] = $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "notcalledlisteners");
         // line 48
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter(isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners"))));
         foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
             // line 49
             echo "                <tr>\n                    <td><code>";
             // line 50
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners"), isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener"), array(), "array"), "event"), "html", null, true);
             echo "</code></td>\n                    <td><code>";
             // line 51
             echo $context["__internal_cb6bfed9c579242d840ceafbf7b86211445ef36a61f85cff2dfd206928f47c4f"]->getdisplay_listener($this->getAttribute(isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners"), isset($context["listener"]) ? $context["listener"] : $this->getContext($context, "listener"), array(), "array"));
             echo "</code></td>\n                </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 54
         echo "        </table>\n    ";
     } else {
         // line 56
         echo "        <p>\n            <strong>No uncalled listeners</strong>.\n        </p>\n        <p>\n\n            All listeners were called for this request or an error occurred\n            when trying to collect uncalled listeners (in which case check the\n            logs to get more information).\n\n        </p>\n    ";
     }
 }
开发者ID:theflash193,项目名称:site,代码行数:52,代码来源:beeea6b8238a4ccfe9960e939edad8b8ad7347cacd3a580e4737ba2dfce6.php

示例14: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["taxonomies"] = null === (isset($context["taxonomies"]) ? $context["taxonomies"] : null) ? $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "data", array(0 => "site"), "method"), "taxonomies", array()) : (isset($context["taxonomies"]) ? $context["taxonomies"] : null);
     // line 2
     $context["parentname"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array());
     // line 3
     echo "\n";
     // line 4
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["taxonomies"]) ? $context["taxonomies"] : null);
     $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["name"]) {
         // line 5
         echo "\n    ";
         // line 6
         $context["value"] = $this->env->getExtension('GravTwigExtension')->arrayFunc($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "value", array(0 => "header.taxonomy." . $context["name"]), "method", true, true) ? _twig_default_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "value", array(0 => "header.taxonomy." . $context["name"]), "method"), array()) : array());
         // line 7
         echo "    ";
         $context["sub_taxonomies"] = twig_get_array_keys_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"], array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["grav"]) ? $context["grav"] : null, "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"]), array()) : array());
         // line 8
         echo "    ";
         $context["list"] = twig_array_merge(twig_array_merge(array(), isset($context["sub_taxonomies"]) ? $context["sub_taxonomies"] : null), isset($context["value"]) ? $context["value"] : null);
         // line 9
         echo "\n    ";
         // line 10
         $context["field"] = array("type" => "select", "classes" => "fancy create", "label" => twig_capitalize_string_filter($this->env, $context["name"]), "name" => (isset($context["parentname"]) ? $context["parentname"] : null) . "." . $context["name"], "multiple" => true, "options" => isset($context["list"]) ? $context["list"] : null, "selectize" => array("create" => true));
         // line 21
         echo "\n    ";
         // line 22
         $this->loadTemplate(array(0 => "forms/fields/select/select.html.twig"), "forms/fields/taxonomy/taxonomy.html.twig", 22)->display($context);
         ++$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['name'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
开发者ID:anabecker,项目名称:new-website,代码行数:51,代码来源:6c96f12f46acdbf3a1493578d6c0e735e8cf45441326c6202a9c879d6a8a8927.php

示例15: block_panel

 public function block_panel($context, array $blocks = array())
 {
     // line 13
     echo "    <h2>Called Listeners</h2>\n\n    <table>\n        <tr>\n            <th>Event name</th>\n            <th>Listener</th>\n        </tr>\n        ";
     // line 20
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "calledlisteners", array(), "any", false));
     foreach ($context['_seq'] as $context['_key'] => $context['listener']) {
         // line 21
         echo "            <tr>\n                <td><code>";
         // line 22
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'listener'), "event", array(), "any", false), "html");
         echo "</code></td>\n                <td><code>";
         // line 23
         echo twig_escape_filter($this->env, $this->getAttribute($context['__internal_c619c1baf77aca81b7fb6b42824e074e_1'], "display_listener", array($this->getContext($context, 'listener')), "method", false), "html");
         echo "</code></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 26
     echo "    </table>\n\n    ";
     // line 28
     if ($this->getAttribute($this->getContext($context, 'collector'), "notcalledlisteners", array(), "any", false)) {
         // line 29
         echo "        <h2>Not Called Listeners</h2>\n\n        <table>\n            <tr>\n                <th>Event name</th>\n                <th>Listener</th>\n            </tr>\n            ";
         // line 36
         $context['listeners'] = $this->getAttribute($this->getContext($context, 'collector'), "notcalledlisteners", array(), "any", false);
         // line 37
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, 'listeners'))));
         foreach ($context['_seq'] as $context['_key'] => $context['listener']) {
             // line 38
             echo "                <tr>\n                    <td><code>";
             // line 39
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'listeners'), $this->getContext($context, 'listener'), array(), "array", false), "event", array(), "any", false), "html");
             echo "</code></td>\n                    <td><code>";
             // line 40
             echo twig_escape_filter($this->env, $this->getAttribute($context['__internal_c619c1baf77aca81b7fb6b42824e074e_1'], "display_listener", array($this->getAttribute($this->getContext($context, 'listeners'), $this->getContext($context, 'listener'), array(), "array", false)), "method", false), "html");
             echo "</code></td>\n                </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 43
         echo "        </table>\n    ";
     }
 }
开发者ID:rfc1483,项目名称:symfonytable,代码行数:49,代码来源:c1baf77aca81b7fb6b42824e074e.php


注:本文中的twig_get_array_keys_filter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。