Classes

Twig_Autoloader Autoloads Twig classes.
Twig_Compiler Compiles a node to PHP code.
Twig_CompilerInterface Interface implemented by compiler classes.
Twig_Environment Stores the Twig configuration.
Twig_Error Twig base exception.
Twig_Error_Loader Exception thrown when an error occurs during template loading.
Twig_Error_Runtime Exception thrown when an error occurs at runtime.
Twig_Error_Syntax Exception thrown when a syntax error occurs during lexing or parsing of a template.
Twig_ExistsLoaderInterface Adds an exists() method for loaders.
Twig_ExpressionParser Parses expressions.
Twig_Extension
Twig_ExtensionInterface Interface implemented by extension classes.
Twig_Extension_Core
Twig_Extension_Debug
Twig_Extension_Escaper
Twig_Extension_Optimizer
Twig_Extension_Sandbox
Twig_Extension_Staging Internal class.
Twig_Extension_StringLoader
Twig_Filter Represents a template filter.
Twig_FilterCallableInterface Represents a callable template filter.
Twig_FilterInterface Represents a template filter.
Twig_Filter_Function Represents a function template filter.
Twig_Filter_Method Represents a method template filter.
Twig_Filter_Node Represents a template filter as a node.
Twig_Function Represents a template function.
Twig_FunctionCallableInterface Represents a callable template function.
Twig_FunctionInterface Represents a template function.
Twig_Function_Function Represents a function template function.
Twig_Function_Method Represents a method template function.
Twig_Function_Node Represents a template function as a node.
Twig_Lexer Lexes a template string.
Twig_LexerInterface Interface implemented by lexer classes.
Twig_LoaderInterface Interface all loaders must implement.
Twig_Loader_Array Loads a template from an array.
Twig_Loader_Chain Loads templates from other loaders.
Twig_Loader_Filesystem Loads template from the filesystem.
Twig_Loader_String Loads a template from a string.
Twig_Markup Marks a content as safe.
Twig_Node Represents a node in the AST.
Twig_NodeInterface Represents a node in the AST.
Twig_NodeOutputInterface Represents a displayable node in the AST.
Twig_NodeTraverser Twig_NodeTraverser is a node traverser.
Twig_NodeVisitorInterface Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
Twig_NodeVisitor_Escaper TwigNodeVisitorEscaper implements output escaping.
Twig_NodeVisitor_Optimizer TwigNodeVisitorOptimizer tries to optimizes the AST.
Twig_NodeVisitor_SafeAnalysis
Twig_NodeVisitor_Sandbox TwigNodeVisitorSandbox implements sandboxing.
Twig_Node_AutoEscape Represents an autoescape node.
Twig_Node_Block Represents a block node.
Twig_Node_BlockReference Represents a block call node.
Twig_Node_Body Represents a body node.
Twig_Node_Do Represents a do node.
Twig_Node_Embed Represents an embed node.
Twig_Node_Expression Abstract class for all nodes that represents an expression.
Twig_Node_Expression_Array
Twig_Node_Expression_AssignName
Twig_Node_Expression_Binary
Twig_Node_Expression_Binary_Add
Twig_Node_Expression_Binary_And
Twig_Node_Expression_Binary_BitwiseAnd
Twig_Node_Expression_Binary_BitwiseOr
Twig_Node_Expression_Binary_BitwiseXor
Twig_Node_Expression_Binary_Concat
Twig_Node_Expression_Binary_Div
Twig_Node_Expression_Binary_EndsWith
Twig_Node_Expression_Binary_Equal
Twig_Node_Expression_Binary_FloorDiv
Twig_Node_Expression_Binary_Greater
Twig_Node_Expression_Binary_GreaterEqual
Twig_Node_Expression_Binary_In
Twig_Node_Expression_Binary_Less
Twig_Node_Expression_Binary_LessEqual
Twig_Node_Expression_Binary_Matches
Twig_Node_Expression_Binary_Mod
Twig_Node_Expression_Binary_Mul
Twig_Node_Expression_Binary_NotEqual
Twig_Node_Expression_Binary_NotIn
Twig_Node_Expression_Binary_Or
Twig_Node_Expression_Binary_Power
Twig_Node_Expression_Binary_Range
Twig_Node_Expression_Binary_StartsWith
Twig_Node_Expression_Binary_Sub
Twig_Node_Expression_BlockReference Represents a block call node.
Twig_Node_Expression_Call
Twig_Node_Expression_Conditional
Twig_Node_Expression_Constant
Twig_Node_Expression_ExtensionReference Represents an extension call node.
Twig_Node_Expression_Filter
Twig_Node_Expression_Filter_Default Returns the value or the default value when it is undefined or empty.
Twig_Node_Expression_Function
Twig_Node_Expression_GetAttr
Twig_Node_Expression_MethodCall
Twig_Node_Expression_Name
Twig_Node_Expression_Parent Represents a parent node.
Twig_Node_Expression_TempName
Twig_Node_Expression_Test
Twig_Node_Expression_Test_Constant Checks if a variable is the exact same value as a constant.
Twig_Node_Expression_Test_Defined Checks if a variable is defined in the current context.
Twig_Node_Expression_Test_Divisibleby Checks if a variable is divisible by a number.
Twig_Node_Expression_Test_Even Checks if a number is even.
Twig_Node_Expression_Test_Null Checks that a variable is null.
Twig_Node_Expression_Test_Odd Checks if a number is odd.
Twig_Node_Expression_Test_Sameas Checks if a variable is the same as another one (=== in PHP).
Twig_Node_Expression_Unary
Twig_Node_Expression_Unary_Neg
Twig_Node_Expression_Unary_Not
Twig_Node_Expression_Unary_Pos
Twig_Node_Flush Represents a flush node.
Twig_Node_For Represents a for node.
Twig_Node_ForLoop Internal node used by the for node.
Twig_Node_If Represents an if node.
Twig_Node_Import Represents an import node.
Twig_Node_Include Represents an include node.
Twig_Node_Macro Represents a macro node.
Twig_Node_Module Represents a module node.
Twig_Node_Print Represents a node that outputs an expression.
Twig_Node_Sandbox Represents a sandbox node.
Twig_Node_SandboxedModule Represents a module node.
Twig_Node_SandboxedPrint TwigNodeSandboxedPrint adds a check for the __toString() method when the variable is an object and the sandbox is activated.
Twig_Node_Set Represents a set node.
Twig_Node_SetTemp
Twig_Node_Spaceless Represents a spaceless node.
Twig_Node_Text Represents a text node.
Twig_Parser Default parser implementation.
Twig_ParserInterface Interface implemented by parser classes.
Twig_Sandbox_SecurityError Exception thrown when a security error occurs at runtime.
Twig_Sandbox_SecurityPolicy Represents a security policy which need to be enforced when sandbox mode is enabled.
Twig_Sandbox_SecurityPolicyInterface Interfaces that all security policy classes must implements.
Twig_SimpleFilter Represents a template filter.
Twig_SimpleFunction Represents a template function.
Twig_SimpleTest Represents a template test.
Twig_Template Default base class for compiled templates.
Twig_TemplateInterface Interface implemented by all compiled templates.
Twig_Test Represents a template test.
Twig_TestCallableInterface Represents a callable template test.
Twig_TestInterface Represents a template test.
Twig_Test_Function Represents a function template test.
Twig_Test_IntegrationTestCase Integration test helper
Twig_Test_Method Represents a method template test.
Twig_Test_Node Represents a template test as a Node.
Twig_Test_NodeTestCase
Twig_Token Represents a Token.
Twig_TokenParser Base class for all token parsers.
Twig_TokenParserBroker Default implementation of a token parser broker.
Twig_TokenParserBrokerInterface Interface implemented by token parser brokers.
Twig_TokenParserInterface Interface implemented by token parsers.
Twig_TokenParser_AutoEscape Marks a section of a template to be escaped or not.
Twig_TokenParser_Block Marks a section of a template as being reusable.
Twig_TokenParser_Do Evaluates an expression, discarding the returned value.
Twig_TokenParser_Embed Embeds a template.
Twig_TokenParser_Extends Extends a template by another one.
Twig_TokenParser_Filter Filters a section of a template by applying filters.
Twig_TokenParser_Flush Flushes the output to the client.
Twig_TokenParser_For Loops over each item of a sequence.
Twig_TokenParser_From Imports macros.
Twig_TokenParser_If Tests a condition.
Twig_TokenParser_Import Imports macros.
Twig_TokenParser_Include Includes a template.
Twig_TokenParser_Macro Defines a macro.
Twig_TokenParser_Sandbox Marks a section of a template as untrusted code that must be evaluated in the sandbox mode.
Twig_TokenParser_Set Defines a variable.
Twig_TokenParser_Spaceless Remove whitespaces between HTML tags.
Twig_TokenParser_Use Imports blocks defined in another template into the current template.
Twig_TokenStream Represents a token stream.