[ Index ] |
PHP Cross Reference of phpBB-3.3.12-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 4 * This file is part of the phpBB Forum Software package. 5 * 6 * @copyright (c) phpBB Limited <https://www.phpbb.com> 7 * @copyright Portions (c) 2009 Fabien Potencier, Armin Ronacher 8 * @license GNU General Public License, version 2 (GPL-2.0) 9 * 10 * For full copyright and license information, please see 11 * the docs/CREDITS.txt file. 12 * 13 */ 14 15 namespace phpbb\template\twig\tokenparser; 16 17 class includeparser extends \Twig\TokenParser\IncludeTokenParser 18 { 19 /** 20 * Parses a token and returns a node. 21 * 22 * @param \Twig\Token $token A Twig\Token instance 23 * 24 * @return \Twig\Node\Node A Twig\Node instance 25 */ 26 public function parse(\Twig\Token $token) 27 { 28 $expr = $this->parser->getExpressionParser()->parseExpression(); 29 30 list($variables, $only, $ignoreMissing) = $this->parseArguments(); 31 32 return new \phpbb\template\twig\node\includenode($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag()); 33 } 34 35 /** 36 * Gets the tag name associated with this token parser. 37 * 38 * @return string The tag name 39 */ 40 public function getTag() 41 { 42 return 'INCLUDE'; 43 } 44 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Jun 23 12:25:44 2024 | Cross-referenced by PHPXref 0.7.1 |