Plib_XH

View
in package

Rendering of HTML and plain text output

Generally, View encapsulates $plugin_tx of the plugin. In simple cases, it can be used to compose a message (XH_message()). In more complex cases, it it used to render a view template, to which arbitrary values can be passed.

Tags
final

Table of Contents

Methods

__construct()  : mixed
esc()  : string
json()  : string
message()  : string
plain()  : string
plural()  : string
pmessage()  : string
raw()  : string
render()  : string
text()  : string

Methods

__construct()

public __construct(string $templateFolder, array<string, string> $text) : mixed
Parameters
$templateFolder : string
$text : array<string, string>

esc()

public esc(string $string) : string
Parameters
$string : string
Return values
string

json()

public json(mixed $value) : string
Parameters
$value : mixed
Tags
since
1.1
Return values
string

message()

public message(string $type, string $key, scalar ...$args) : string
Parameters
$type : string
$key : string
$args : scalar
Return values
string

plain()

public plain(string $key, scalar ...$args) : string
Parameters
$key : string
$args : scalar
Return values
string

plural()

public plural(string $key, int $count, scalar ...$args) : string
Parameters
$key : string
$count : int
$args : scalar
Tags
since
1.1
Return values
string

pmessage()

public pmessage(string $type, string $key, int $count, scalar ...$args) : string
Parameters
$type : string
$key : string
$count : int
$args : scalar
Tags
since
1.1
Return values
string

raw()

public raw(string $string) : string
Parameters
$string : string
Return values
string

render()

public render(string $_template, array<string, mixed> $_data) : string
Parameters
$_template : string
$_data : array<string, mixed>
Return values
string

text()

public text(string $key, scalar ...$args) : string
Parameters
$key : string
$args : scalar
Return values
string

        
On this page

Search results