Skip to content

Smarty_Internal_Runtime_Capture

Runtime Extension Capture

  • Full name: \Smarty_Internal_Runtime_Capture

Properties

isPrivateExtension

Flag that this instance will not be cached

public bool $isPrivateExtension

captureStack

Stack of capture parameter

private array $captureStack

captureCount

Current open capture sections

private int $captureCount

countStack

Count stack

private int[] $countStack

namedBuffer

Named buffer

private string[] $namedBuffer

isRegistered

Flag if callbacks are registered

private bool $isRegistered

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

private register(\Smarty_Internal_Template $_template): mixed

Parameters:

Parameter Type Description
$_template \Smarty_Internal_Template

startRender

Start render callback

public startRender(\Smarty_Internal_Template $_template): mixed

Parameters:

Parameter Type Description
$_template \Smarty_Internal_Template

close

Close capture section

public close(\Smarty_Internal_Template $_template): mixed

Parameters:

Parameter Type Description
$_template \Smarty_Internal_Template

Throws:


error

Error exception on not matching {capture}{/capture}

public error(\Smarty_Internal_Template $_template): mixed

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

public endRender(\Smarty_Internal_Template $_template): mixed

Parameters:

Parameter Type Description
$_template \Smarty_Internal_Template

Throws:



Automatically generated on 2025-03-18