[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/ -> Compiler.php (summary)

(no description)

File Size: 288 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Compiler:: (16 methods):
  __construct()
  getFilename()
  getEnvironment()
  getSource()
  compile()
  subcompile()
  raw()
  write()
  addIndentation()
  string()
  repr()
  addDebugInfo()
  getDebugInfo()
  indent()
  outdent()
  getVarName()


Class: Compiler  - X-Ref

Compiles a node to PHP code.

__construct(Environment $env)   X-Ref
No description

getFilename()   X-Ref


getEnvironment()   X-Ref
Returns the environment instance related to this compiler.

return: Environment

getSource()   X-Ref
Gets the current PHP code after compilation.

return: string The PHP code

compile(\Twig_NodeInterface $node, $indentation = 0)   X-Ref
Compiles a node.

param: int $indentation The current indentation
return: $this

subcompile(\Twig_NodeInterface $node, $raw = true)   X-Ref
No description

raw($string)   X-Ref
Adds a raw string to the compiled code.

param: string $string The string
return: $this

write()   X-Ref
Writes a string to the compiled code by adding indentation.

return: $this

addIndentation()   X-Ref
Appends an indentation to the current PHP code after compilation.

return: $this

string($value)   X-Ref
Adds a quoted string to the compiled code.

param: string $value The string
return: $this

repr($value)   X-Ref
Returns a PHP representation of a given value.

param: mixed $value The value to convert
return: $this

addDebugInfo(\Twig_NodeInterface $node)   X-Ref
Adds debugging information.

return: $this

getDebugInfo()   X-Ref
No description

indent($step = 1)   X-Ref
Indents the generated code.

param: int $step The number of indentation to add
return: $this

outdent($step = 1)   X-Ref
Outdents the generated code.

param: int $step The number of indentation to remove
return: $this

getVarName()   X-Ref
No description



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1