Home
last modified time | relevance | path

Searched refs:getAttribute (Results 1 – 25 of 90) sorted by relevance

1234

/template/twigstarter/vendor/twig/twig/src/Node/Expression/
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 DCallExpression.php25 $callable = $this->getAttribute('callable');
53 …->env->get%s(\'%s\')->getCallable(), ', ucfirst($this->getAttribute('type')), $this->getAttribute(…
75 if ($this->hasAttribute('needs_context') && $this->getAttribute('needs_context')) {
84 foreach ($this->getAttribute('arguments') as $argument) {
102 $callable = $this->getAttribute('callable');
118 $callType = $this->getAttribute('type');
119 $callName = $this->getAttribute('name');
134 $isVariadic = $this->hasAttribute('is_variadic') && $this->getAttribute('is_variadic');
260 if ($this->hasAttribute('needs_context') && $this->getAttribute('needs_context')) {
263 if ($this->hasAttribute('arguments') && null !== $this->getAttribute('arguments')) {
[all …]
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 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 DParentExpression.php31 if ($this->getAttribute('output')) {
35 ->string($this->getAttribute('name'))
41 ->string($this->getAttribute('name'))
H A DArrowFunctionExpression.php42 ->raw($name->getAttribute('name'))
52 ->raw($name->getAttribute('name'))
54 ->raw($name->getAttribute('name'))
H A DArrayExpression.php26 …tExpression && ctype_digit((string) $pair['key']->getAttribute('value')) && $pair['key']->getAttri…
27 $this->index = $pair['key']->getAttribute('value');
H A DFunctionExpression.php26 $name = $this->getAttribute('name');
35 if ('constant' === $name && $this->getAttribute('is_defined_test')) {
H A DBlockReferenceExpression.php37 if ($this->getAttribute('is_defined_test')) {
40 if ($this->getAttribute('output')) {
/template/twigstarter/vendor/twig/twig/src/NodeVisitor/
H A DOptimizerNodeVisitor.php118 …if ($node instanceof FilterExpression && 'raw' == $node->getNode('filter')->getAttribute('value'))…
134 … array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
135 array_unshift($this->loopsTargets, $node->getNode('key_target')->getAttribute('name'));
144 elseif ($node instanceof NameExpression && 'loop' === $node->getAttribute('name')) {
150 …elseif ($node instanceof NameExpression && \in_array($node->getAttribute('name'), $this->loopsTarg…
160 elseif ($node instanceof IncludeNode && !$node->getAttribute('only')) {
166 && 'include' === $node->getAttribute('name')
168 … || false !== $node->getNode('arguments')->getNode('with_context')->getAttribute('value')
177 || 'parent' === $node->getNode('attribute')->getAttribute('value')
179 && (true === $this->loops[0]->getAttribute('with_loop')
[all …]
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')) {
H A DEscaperNodeVisitor.php56 $this->statusStack[] = $node->getAttribute('value');
58 …is->statusStack[] = isset($this->blocks[$node->getAttribute('name')]) ? $this->blocks[$node->getAt…
60 $this->safeVars[] = $node->getNode('var')->getAttribute('name');
86 $this->blocks[$node->getAttribute('name')] = $this->needEscaping($env);
149 $name = $filter->getNode('filter')->getAttribute('value');
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');
/template/twigstarter/vendor/twig/twig/src/Profiler/Node/
H A DEnterProfileNode.php32 ->write(sprintf('$%s = $this->extensions[', $this->getAttribute('var_name')))
33 ->repr($this->getAttribute('extension_name'))
35 …\Profiler\Profile($this->getTemplateName(), ', $this->getAttribute('var_name'), $this->getAttribut…
36 ->repr($this->getAttribute('type'))
38 ->repr($this->getAttribute('name'))
H A DLeaveProfileNode.php33 …->write(sprintf("\$%s->leave(\$%s);\n\n", $this->getAttribute('var_name'), $this->getAttribute('va…
/template/twigstarter/vendor/twig/twig/src/Node/
H A DSetNode.php33 if ($this->getAttribute('capture')) {
38 …$this->setNode('values', new ConstantExpression($values->getAttribute('data'), $values->getTemplat…
59 if ($this->getAttribute('capture')) {
72 if ($this->getAttribute('capture')) {
77 if (!$this->getAttribute('capture')) {
91 if ($this->getAttribute('safe')) {
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 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 DForLoopNode.php30 if ($this->getAttribute('else')) {
34 if ($this->getAttribute('with_loop')) {
41 if (!$this->getAttribute('ifexpr')) {
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 DEmbedNode.php38 ->string($this->getAttribute('name'))
44 ->string($this->getAttribute('index'))
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'))) {
/template/twigstarter/vendor/twig/twig/src/TokenParser/
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…
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…
/template/bulma/
H A Dtpl_functions.php75 $name = $ele->getAttribute('name');
81 $type = $ele->getAttribute('type');
85 $label->setAttribute('class', $label->getAttribute('class') . ' checkbox');
89 $label->setAttribute('class', $label->getAttribute('class') . ' radio');
92 $ele->setAttribute('class', $ele->getAttribute('class') . ' input is-small');
96 // $ele->setAttribute('class', $ele->getAttribute('class') . ' input is-small');
99 // $label->setAttribute('class', $label->getAttribute('class') . ' checkbox');
111 switch (substr($i->getAttribute('class'), 5, 1)) {
137 $classes = $div->getAttribute('class');
149 $ele->setAttribute('class', $ele->getAttribute('clas
[all...]

1234