Template Sloth
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Sloth Class Reference

Inheritance diagram for Sloth

Public Member Functions

 __construct (Environment $twig, string $default_layout=null, array $default_layout_attrs=[])
 
 registerExtension ()
 
 setLayout (string $layout, array $attributes=null)
 
 setLayoutAttribute (string $attr, $value)
 
 slot (string $slot_name)
 
 display ()
 
 render ()
 
 response ($status=200, $headers=[])
 
 streamedResponse ($status=200, $headers=[])
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Protected Member Functions

 configureLayoutAttributes (Environment $twig, $layoutAttrs)
 

Protected Attributes

 $twig
 
 $layout = null
 
 $layout_attr = []
 
 $slots = []
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Environment  $twig,
string  $default_layout = null,
array  $default_layout_attrs = [] 
)

Member Function Documentation

◆ registerExtension()

registerExtension ( )

◆ setLayout()

setLayout ( string  $layout,
array  $attributes = null 
)

◆ setLayoutAttribute()

setLayoutAttribute ( string  $attr,
  $value 
)

◆ configureLayoutAttributes()

configureLayoutAttributes ( Environment  $twig,
  $layoutAttrs 
)
protected

◆ slot()

slot ( string  $slot_name)

◆ display()

display ( )

◆ render()

render ( )

◆ response()

response (   $status = 200,
  $headers = [] 
)

◆ streamedResponse()

streamedResponse (   $status = 200,
  $headers = [] 
)

◆ offsetExists()

offsetExists (   $offset)

◆ offsetGet()

offsetGet (   $offset)

◆ offsetSet()

offsetSet (   $offset,
  $value 
)

◆ offsetUnset()

offsetUnset (   $offset)

Member Data Documentation

◆ $twig

$twig
protected

◆ $layout

$layout = null
protected

◆ $layout_attr

$layout_attr = []
protected

◆ $slots

$slots = []
protected