Home
last modified time | relevance | path

Searched refs:getAttribute (Results 26 – 50 of 90) sorted by last modified time

1234

/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DAutoEscapeTokenParser.php36 $value = $expr->getAttribute('value');
H A DEmbedTokenParser.php34 …$parentToken = new Token(/* Token::STRING_TYPE */ 7, $parent->getAttribute('value'), $token->getLi…
36 …$parentToken = new Token(/* Token::NAME_TYPE */ 5, $parent->getAttribute('name'), $token->getLine(…
58 …return new EmbedNode($module->getTemplateName(), $module->getAttribute('index'), $variables, $only…
H A DForTokenParser.php63 …$keyTarget = new AssignNameExpression($keyTarget->getAttribute('name'), $keyTarget->getTemplateLin…
65 …$valueTarget = new AssignNameExpression($valueTarget->getAttribute('name'), $valueTarget->getTempl…
69 …$valueTarget = new AssignNameExpression($valueTarget->getAttribute('name'), $valueTarget->getTempl…
93 …Node('node') instanceof NameExpression && 'loop' == $node->getNode('node')->getAttribute('name')) {
110 …Node('node') instanceof NameExpression && 'loop' == $node->getNode('node')->getAttribute('name')) {
112 …if ($attribute instanceof ConstantExpression && \in_array($attribute->getAttribute('value'), ['len…
113 … variable is not defined when looping with a condition.', $attribute->getAttribute('value')), $nod…
/template/twigstarter/vendor/twig/twig/src/Node/
H A DForLoopNode.php30 if ($this->getAttribute('else')) {
34 if ($this->getAttribute('with_loop')) {
41 if (!$this->getAttribute('ifexpr')) {
H A DForNode.php58 if ($this->getAttribute('with_loop')) {
68 if (!$this->getAttribute('ifexpr')) {
84 $this->loop->setAttribute('with_loop', $this->getAttribute('with_loop'));
85 $this->loop->setAttribute('ifexpr', $this->getAttribute('ifexpr'));
112 …\''.$this->getNode('key_target')->getAttribute('name').'\'], $context[\''.$this->getNode('value_ta…
H A DBlockNode.php33 …("public function block_%s(\$context, array \$blocks = [])\n", $this->getAttribute('name')), "{\n")
H A DBlockReferenceNode.php33 …->write(sprintf("\$this->displayBlock('%s', \$context, \$blocks);\n", $this->getAttribute('name')))
H A DEmbedNode.php38 ->string($this->getAttribute('name'))
44 ->string($this->getAttribute('index'))
H A DImportNode.php35 ->repr($this->getNode('var')->getAttribute('name'))
39 if ($this->getAttribute('global')) {
42 ->repr($this->getNode('var')->getAttribute('name'))
47 …de('expr') instanceof NameExpression && '_self' === $this->getNode('expr')->getAttribute('name')) {
H A DIncludeNode.php39 if ($this->getAttribute('ignore_missing')) {
93 $compiler->raw(false === $this->getAttribute('only') ? '$context' : '[]');
94 } elseif (false === $this->getAttribute('only')) {
H A DMacroNode.php41 ->write(sprintf('public function macro_%s(', $this->getAttribute('name')))
H A DModuleNode.php73 foreach ($this->getAttribute('embedded_templates') as $template) {
80 if (!$this->getAttribute('index')) {
147 if (!$this->getAttribute('index')) {
165 …nvironment()->getTemplateClass($this->getSourceContext()->getName(), $this->getAttribute('index')))
400 if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
H A DNode.php108 public function getAttribute($name) function in Twig\\Node\\Node
H A DTextNode.php34 ->string($this->getAttribute('data'))
H A DWithNode.php54 if ($this->getAttribute('only')) {
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DConstantExpression.php26 $compiler->repr($this->getAttribute('value'));
H A DFilterExpression.php27 $name = $this->getNode('filter')->getAttribute('value');
H A DFunctionExpression.php26 $name = $this->getAttribute('name');
35 if ('constant' === $name && $this->getAttribute('is_defined_test')) {
H A DGetAttrExpression.php37 $this->getAttribute('optimizable')
38 && (!$env->isStrictVariables() || $this->getAttribute('ignore_strict_check'))
39 && !$this->getAttribute('is_defined_test')
40 && Template::ARRAY_CALL === $this->getAttribute('type')
62 if ($this->getAttribute('ignore_strict_check')) {
79 ->repr($this->getAttribute('type'))
80 ->raw(', ')->repr($this->getAttribute('is_defined_test'))
81 ->raw(', ')->repr($this->getAttribute('ignore_strict_check'))
H A DMethodCallExpression.php29 if ($this->getAttribute('is_defined_test')) {
32 ->repr($this->getNode('node')->getAttribute('name'))
34 ->repr($this->getAttribute('method'))
43 ->repr($this->getNode('node')->getAttribute('name'))
45 ->repr($this->getAttribute('method'))
H A DNameExpression.php32 $name = $this->getAttribute('name');
36 if ($this->getAttribute('is_defined_test')) {
56 } elseif ($this->getAttribute('always_defined')) {
63 …if ($this->getAttribute('ignore_strict_check') || !$compiler->getEnvironment()->isStrictVariables(…
90 return isset($this->specialVars[$this->getAttribute('name')]);
95 return !$this->isSpecial() && !$this->getAttribute('is_defined_test');
H A DTempNameExpression.php27 ->raw($this->getAttribute('name'))
H A DTestExpression.php31 $name = $this->getAttribute('name');
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
H A DSafeAnalysisNodeVisitor.php96 $name = $node->getNode('filter')->getAttribute('value');
109 $name = $node->getAttribute('name');
118 if ($node->getAttribute('safe')) {
124 $name = $node->getNode('node')->getAttribute('name');
H A DSandboxNodeVisitor.php57 …ceof FilterExpression && !isset($this->filters[$node->getNode('filter')->getAttribute('value')])) {
58 $this->filters[$node->getNode('filter')->getAttribute('value')] = $node;
62 …if ($node instanceof FunctionExpression && !isset($this->functions[$node->getAttribute('name')])) {
63 $this->functions[$node->getAttribute('name')] = $node;
76 if ($node instanceof SetNode && !$node->getAttribute('capture')) {

1234