Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • Template
  • TemplateContext
  • TemplateEvent
  • TemplatingEngine
  • TwigEnvironment
  • TwigTemplate
  • TwigTemplatingProvider
  • Overview
  • Namespace
  • Class

Class TemplateContext

Class representation of template context - the variables that are available inside a template.

Namespace: Autarky\TwigTemplating
Located at TemplateContext.php
Methods summary
public
# __construct( array $context = null )

Parameters

$context
public
# replace( array $data )

Add data to the context, replacing existing data.

Add data to the context, replacing existing data.

Parameters

$data
public
# add( array $data )

Add data to the context without replacing existing data.

Add data to the context without replacing existing data.

Parameters

$data
public &
# __get( $key )
public
# __isset( $key )
public
# __set( $key, $value )
public
# __unset( $key )
public &
# offsetGet( $key )
public
# offsetExists( $key )
public
# offsetSet( $key, $value )
public
# offsetUnset( $key )
public
# toArray( )
Properties summary
protected array $data
# []
Autarky Framework API documentation generated by ApiGen