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


PHP array_intersect_key函数代码示例

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


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

示例1: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "\t<table class=\"table\">\n\t\t<tr>\n\t\t\t<th>Id</th>\n\t\t\t<th>Location</th>\n\t\t\t<th>Position</th>\n\t\t\t<th>Company</th>\n\t\t</tr>\n    ";
     // line 11
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["jobs"]) ? $context["jobs"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["job"]) {
         // line 12
         echo "    \t<tr>\n    \t\t<td>";
         // line 13
         echo twig_escape_filter($this->env, $this->getAttribute($context["job"], "id", array()), "html", null, true);
         echo "</td>\n    \t\t<td>";
         // line 14
         echo twig_escape_filter($this->env, $this->getAttribute($context["job"], "location", array()), "html", null, true);
         echo "</td>\n    \t\t<td>";
         // line 15
         echo twig_escape_filter($this->env, $this->getAttribute($context["job"], "position", array()), "html", null, true);
         echo "</td>\n    \t\t<td>";
         // line 16
         echo twig_escape_filter($this->env, $this->getAttribute($context["job"], "company", array()), "html", null, true);
         echo "</td>\n    \t</tr>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['job'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 19
     echo "    </table>\n";
 }
开发者ID:neagu-cristian,项目名称:Jobeet,代码行数:29,代码来源:5432500bcc2dbb11ecab946223d16fe287caae453c2f3f9fdd8c5984069a.php

示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ol class=\"traces logs\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
         // line 3
         echo "        <li";
         if ($this->getAttribute($context["log"], "priority", array()) >= 400) {
             echo " class=\"error\"";
         } elseif ($this->getAttribute($context["log"], "priority", array()) >= 300) {
             echo " class=\"warning\"";
         }
         echo ">\n            ";
         // line 4
         echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", array()), "html", null, true);
         echo " - ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "message", array()), "html", null, true);
         echo "\n        </li>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 7
     echo "</ol>\n";
 }
开发者ID:LamaDelRay,项目名称:test_symf,代码行数:28,代码来源:8811a782108950f5bfd2a427029df82e2acf535e06249c53ca5553b4b746f753.php

示例3: doDisplay

 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);
 }
开发者ID:Milkyway2605,项目名称:EasyStage_Symfony,代码行数:33,代码来源:0f3baf774c1c5d578c2c519fef938f74b38f0582f9d885a6ff32f2252b29fae7.php

示例4: fillableFromArray

 /**
  * Get the fillable attributes of a given array.
  *
  * @param  array $attributes
  *
  * @return array
  */
 protected function fillableFromArray(array $attributes)
 {
     if (count($this->getFillable()) > 0 && !static::$unguarded) {
         return array_intersect_key($attributes, array_flip($this->getFillable()));
     }
     return $attributes;
 }
开发者ID:alpineio,项目名称:atlas,代码行数:14,代码来源:AttributeStorage.php

示例5: 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($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "keys", array())));
     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                ";
         // line 13
         echo "                <td>";
         echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(isset($context["bag"]) ? $context["bag"] : $this->getContext($context, "bag"), "get", array(0 => $context["key"]), "method"), 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:jeremie38,项目名称:tpphp,代码行数:30,代码来源:294e791c5ea4d93f9eb84ce94046b071c2ef58397c3bdaa14b5a0b85a62e00d7.php

示例6: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 10
     echo "<table class=\"records_list table table-hover table-striped table-bordered table-condensed\">\n        <thead>\n            <tr>\n                <th>Id</th>\n                <th>Nombre</th>\n                <th>Actions</th>\n            </tr>\n        </thead>\n        <tbody>\n        ";
     // line 19
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities"));
     foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
         // line 20
         echo "            <tr>\n                <td><a href=\"";
         // line 21
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"), "html", null, true);
         echo "</a></td>\n                <td>";
         // line 22
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "nombre"), "html", null, true);
         echo "</td>\n                <td>\n                <ul>\n                    <li>\n                        <a href=\"";
         // line 26
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
         echo "\">show</a>\n                    </li>\n                    <li>\n                        <a href=\"";
         // line 29
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("clasificadoretapa_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
         echo "\">edit</a>\n                    </li>\n                </ul>\n                </td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 35
     echo "        </tbody>\n    </table>\n\n        <ul>\n        <li>\n            <a href=\"";
     // line 40
     echo $this->env->getExtension('routing')->getPath("clasificadoretapa_new");
     echo "\">\n                Create a new entry\n            </a>\n        </li>\n    </ul>\n    ";
 }
开发者ID:admarin1985,项目名称:tickets,代码行数:34,代码来源:c712d99219a1087b4c6b596b40594b4a5d9844a3f42e8c47dd183d0068a0.php

示例7: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_a799df460f3a7d8d63eda2c7a1cd47b222cb5c16ffcb312bb111083342f5606e = $this->env->getExtension("native_profiler");
     $__internal_a799df460f3a7d8d63eda2c7a1cd47b222cb5c16ffcb312bb111083342f5606e->enter($__internal_a799df460f3a7d8d63eda2c7a1cd47b222cb5c16ffcb312bb111083342f5606e_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_a799df460f3a7d8d63eda2c7a1cd47b222cb5c16ffcb312bb111083342f5606e->leave($__internal_a799df460f3a7d8d63eda2c7a1cd47b222cb5c16ffcb312bb111083342f5606e_prof);
 }
开发者ID:shine2lay,项目名称:jack,代码行数:33,代码来源:3275fb4ce6996d27467b401851ede323555590f5d1fa8f799dab6168c4e23254.php

示例8: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "\n";
     // line 2
     if ($this->getAttribute(isset($context["wp"]) ? $context["wp"] : null, "aviators_flash_has_messages", array(), "method")) {
         // line 3
         echo "    <div class=\"span12\">\n        ";
         // line 4
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["wp"]) ? $context["wp"] : null, "aviators_flash_get_messages", array(), "method"));
         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
             // line 5
             echo "            <div class=\"alert ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["message"]) ? $context["message"] : null, "level"), "html", null, true);
             echo "\">\n                ";
             // line 6
             echo $this->getAttribute(isset($context["message"]) ? $context["message"] : null, "message");
             echo "\n            </div><!-- /.alert -->\n        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 9
         echo "    </div><!-- /.span12 -->\n";
     }
 }
开发者ID:dongchpp,项目名称:BIPHP,代码行数:27,代码来源:0cbcde3616d175d6020c550fc3cb.php

示例9: block_corps

 public function block_corps($context, array $blocks = array())
 {
     // line 3
     echo "<h1> Personnel </h1>\n<p id=\"categorie\"> Médecins : </p>\n<div class=\"col-md-6\" id=\"tableauMedecin\">\n<table class=\"table table-bordered\">\n";
     // line 7
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["lesMedecins"]) ? $context["lesMedecins"] : $this->getContext($context, "lesMedecins"));
     foreach ($context['_seq'] as $context["_key"] => $context["medecin"]) {
         // line 8
         echo "\n<tr class=\"warning\">\n\t<td> ";
         // line 10
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["medecin"]) ? $context["medecin"] : $this->getContext($context, "medecin"), "getNom", array(), "method"), "html", null, true);
         echo " </td>\n\t<td> ";
         // line 11
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["medecin"]) ? $context["medecin"] : $this->getContext($context, "medecin"), "getPrenom", array(), "method"), "html", null, true);
         echo " </td>\n\t<td> ";
         // line 12
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["medecin"]) ? $context["medecin"] : $this->getContext($context, "medecin"), "getTelephone", array(), "method"), "html", null, true);
         echo " </td>\n\t<td><a href=\"";
         // line 13
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("bundle_ppe_mission2_bootstrap_modifMedecin", array("id" => $this->getAttribute(isset($context["medecin"]) ? $context["medecin"] : $this->getContext($context, "medecin"), "getId", array(), "method"))), "html", null, true);
         echo "\"> Modifier </a> </td>\n</tr>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['medecin'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "</table>\n</div>\n\n\n<p id=\"petit\"><u> Vous souhaitez postuler ? Par ici </u></p>\n<div id=\"btnPostuler\">\n<input type=\"button\" class=\"btn btn-success\" value=\"Postuler\"/>\n</div>\n";
 }
开发者ID:CalyphoZz,项目名称:HopitalAQP2,代码行数:29,代码来源:ecc24883dfada3b02c890fddfe42.php

示例10: block_body

 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "<h1>Noticias</h1>\n\n    \n        <tbody>\n        ";
     // line 8
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["tabla"]) ? $context["tabla"] : $this->getContext($context, "tabla"));
     foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
         // line 9
         echo "           \n                <a href=\"";
         // line 10
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("noticias_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id"))), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "tituloNoticias"), "html", null, true);
         echo "</a><br>\n                \n                 <img src=\"";
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/uniseries/imagenes/" . $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fotoNoticias") . ""), "html", null, true);
         echo "\" width=20% height=20%/>\n                 <br>\n                 ";
         // line 14
         if ($this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fechaNoticias")) {
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "fechaNoticias"), "Y-m-d "), "html", null, true);
         }
         echo "<br><br>\n                 <p>By: ";
         // line 15
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "autorNoticias"), "html", null, true);
         echo "</p><br><br>\n               \n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 18
     echo "        </tbody>\n    </table>\n\n    ";
 }
开发者ID:iker24,项目名称:series,代码行数:33,代码来源:37dc842119262294bb6ef1d2ce058e3bbb874768edd25075c3c520649f93.php

示例11: preprocessElement

 /**
  * {@inheritdoc}
  */
 public function preprocessElement(Element $element, Variables $variables)
 {
     $variables->addClass(['image-widget', 'js-form-managed-file', 'form-managed-file', 'clearfix']);
     $data =& $variables->offsetGet('data', []);
     foreach ($element->children() as $key => $child) {
         // Modify the label to be a placeholder instead.
         if ($key === 'alt') {
             $child->setProperty('form_group', FALSE);
             $placeholder = (string) $child->getAttribute('placeholder');
             if (!$placeholder) {
                 $label = ['#theme' => 'form_element_label'];
                 $label += array_intersect_key($child->getArray(), array_flip(['#id', '#required', '#title', '#title_display']));
                 $child->setProperty('title_display', 'invisible');
                 $placeholder = trim(strip_tags(Element::create($label)->render()));
                 if ($child->getProperty('required')) {
                     $child->setProperty('description', t('@description (Required)', ['@description' => $child->getProperty('description')]));
                 }
             }
             if ($placeholder) {
                 $child->setAttribute('placeholder', $placeholder);
             }
         }
         $data[$key] = $child->getArray();
     }
 }
开发者ID:r-daneelolivaw,项目名称:chalk,代码行数:28,代码来源:ImageWidget.php

示例12: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_94c3e27321f6b1679573f3b1b439f01a774b63ad3a9847923a40039bd86b68ae = $this->env->getExtension("native_profiler");
     $__internal_94c3e27321f6b1679573f3b1b439f01a774b63ad3a9847923a40039bd86b68ae->enter($__internal_94c3e27321f6b1679573f3b1b439f01a774b63ad3a9847923a40039bd86b68ae_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("@Twig/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_94c3e27321f6b1679573f3b1b439f01a774b63ad3a9847923a40039bd86b68ae->leave($__internal_94c3e27321f6b1679573f3b1b439f01a774b63ad3a9847923a40039bd86b68ae_prof);
 }
开发者ID:kibimimi,项目名称:monprojettest,代码行数:33,代码来源:99fae67fcbab6e46a54884873d98cecc6d90aeaba91a7f8ecc19f5102915c876.php

示例13: getMargins

 public function getMargins($list = null)
 {
     if (!$list) {
         return $this->margins;
     }
     return array_intersect_key($this->margins, array_combine($list, $list));
 }
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:7,代码来源:WKPDF.php

示例14: block_block

 public function block_block($context, array $blocks = array())
 {
     // line 14
     echo "    <h3 class=\"sonata-feed-title\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings"), "title"), "html", null, true);
     echo "</h3>\n\n    <div class=\"sonata-feeds-container\">\n        ";
     // line 17
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["feeds"]) ? $context["feeds"] : $this->getContext($context, "feeds"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["_key"] => $context["feed"]) {
         // line 18
         echo "            <div>\n                <strong><a href=\"";
         // line 19
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed"), "link"), "html", null, true);
         echo "\" rel=\"nofollow\" title=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed"), "title"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed"), "title"), "html", null, true);
         echo "</a></strong>\n                <div>";
         // line 20
         echo $this->getAttribute(isset($context["feed"]) ? $context["feed"] : $this->getContext($context, "feed"), "description");
         echo "</div>\n            </div>\n        ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 23
         echo "                No feeds available.\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['feed'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 25
     echo "    </div>\n";
 }
开发者ID:serialken,项目名称:BugTracker,代码行数:35,代码来源:a37d1794468a2d6fb3ad477afea6dd52b65a7c2ecf719dc6fa18f338bce6.php

示例15: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div  class=\"form-group\">\n    <form>  \n        <input id=\"id_user\"   type=\"hidden\" value=\"\" placeholder=\"id\">\n        <input id=\"id_login\"   type=\"text\" value=\"\" placeholder=\"Login\">\n        <input id=\"id_passe\"  type=\"text\" value=\"\" placeholder=\"Mote de passe\">        \n        <input type=\"button\" onclick=\"UsrValider()\"  value=\"Valider\" id=\"btnValUser\">\n        <input type=\"button\" onclick=\"userModifier()\"  value=\"Modifier\" id=\"btnModUser\" style=\"display: none\">        \n    </form>\n</div>\n\n\n<div class=\"panel-body\">\n    <div class=\"table-responsive\">\n        <table class=\"table table-bordered table-hover table-striped\">\n            <thead>\n                <tr>\n                    <th>Id</th>\n                    <th>Logim</th>\n                    <th>Mot de Passe</th>\n                    <th>&nbsp;</th>\n                    <th>&nbsp;</th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 25
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["users"]) ? $context["users"] : $this->getContext($context, "users"));
     foreach ($context['_seq'] as $context["_key"] => $context["u"]) {
         // line 26
         echo "                    <tr>\n                        <td>";
         // line 27
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "id"), "html", null, true);
         echo "</td>\n                        <td>\n                            <a href='#' onclick=\"UsrAfficher(";
         // line 29
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "id"), "html", null, true);
         echo ")\">\n                            ";
         // line 30
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "login"), "html", null, true);
         echo "\n                            </a>\n                        </td>\n                        <td>";
         // line 33
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "password"), "html", null, true);
         echo "</td>\n                        <td></td>\n                        <td> <a  href=\"#\" onclick=\"supprimer(";
         // line 35
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["u"]) ? $context["u"] : $this->getContext($context, "u"), "id"), "html", null, true);
         echo ")\"  > Supprimer</a></td>\n                    </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['u'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 38
     echo "            </tbody>\n        </table>\n    </div>                                 \n</div>\n</div>\n</div>\n";
 }
开发者ID:jaouadtelmoudy,项目名称:gestion_recouvrement,代码行数:32,代码来源:37b3216d0e3c32cf487a7656128a.php


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