Documentation

TemplateEngine
in package

Template engine class

Tags
psalm-suppress

MixedReturnStatement, MixedInferredReturnType

Table of Contents

$parser  : string
Parser to be used
compileSwitch()  : string
Method processes 'switch' macro
printRecord()  : string
Method replaces all {var-name} placeholders in $string with fields from $record
unwrapBlocks()  : string
Method unwraps data

Properties

$parser

Parser to be used

public static string $parser = MezonTemplateEngineParser::class

Methods

compileSwitch()

Method processes 'switch' macro

public static compileSwitch(string $string) : string
Parameters
$string : string

processing string

Return values
string

Processed string

printRecord()

Method replaces all {var-name} placeholders in $string with fields from $record

public static printRecord(string $string, mixed $record) : string
Parameters
$string : string

processing string

$record : mixed

printing record

Return values
string

unwrapBlocks()

Method unwraps data

public static unwrapBlocks(string $string, mixed $record) : string
Parameters
$string : string

processing string

$record : mixed

printing record

Return values
string

Search results

    Яндекс.Метрика