Smarty_Internal_Runtime_Capture
Runtime Extension Capture
- Full name:
\Smarty_Internal_Runtime_Capture
Properties
isPrivateExtension
Flag that this instance will not be cached
captureStack
Stack of capture parameter
captureCount
Current open capture sections
countStack
Count stack
namedBuffer
Named buffer
isRegistered
Flag if callbacks are registered
Methods
open
Open capture section
public open(\Smarty_Internal_Template $_template, string $buffer, string $assign, string $append): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | |
$buffer |
string | capture name |
$assign |
string | variable name |
$append |
string | variable name |
register
Register callbacks in template class
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
startRender
Start render callback
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
close
Close capture section
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
Throws:
error
Error exception on not matching {capture}{/capture}
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
Throws:
getBuffer
Return content of named capture buffer by key or as array
public getBuffer(\Smarty_Internal_Template $_template, string|null $name = null): string|string[]|null
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | |
$name |
string|null |
endRender
End render callback
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
Throws:
Automatically generated on 2025-03-18