| extends | Smarty_Internal_Compile_Private_ForeachSection | 
|---|
Smarty Internal Plugin Compile Foreach Class
| Methods | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
					
	public
					
					
				 | compile(array $args, Smarty_Internal_TemplateCompilerBase $compiler): string
		Compiles code for the {foreach} tag
	 Compiles code for the {foreach} tag Parameters
 Returnscompiled code Throws
 | # | ||||||||
| 
					
	public
					
					
				 | compileRestore(int $levels): string
		Compiles code for to restore saved template variables
	 Compiles code for to restore saved template variables Parameters
 Returnscompiled code | # | ||||||||
| Methods inherited from Smarty_Internal_CompileBase | 
|---|
| getAttributes(), openTag(), closeTag() | 
| Properties | |||
|---|---|---|---|
| 
	public
					
					
				 | array | $required_attributes = ['from', 'item'] | # | 
| 
	public
					
					
				 | array | $optional_attributes = ['name', 'key', 'properties'] | # | 
| 
	public
					
					
				 | array | $shorttag_order = ['from', 'item', 'key', 'name'] | # | 
| 
	public
					
					
				 | int | $counter = 0 | # | 
| 
	public
					
					
				 | string | $tagName = 'foreach' | # | 
| 
	public
					
					
				 | array | $nameProperties = ['first', 'last', 'index', 'iteration', 'show', 'total'] | # | 
| 
	public
					
					
				 | array | $itemProperties = ['first', 'last', 'index', 'iteration', 'show', 'total', 'key'] | # | 
| 
	public
					
					
				 | bool | $isNamed = false | # | 
| Properties inherited from Smarty_Internal_Compile_Private_ForeachSection | 
|---|
| $matchResults | 
| Properties inherited from Smarty_Internal_CompileBase | 
|---|
| $option_flags, $optionMap, $mapCache |