class Filters

Template filer functions

Methods

static mixed|null
is(mixed $value, mixed $var2, mixed $returnValue)

Check if $value = $var2

static mixed
dump(mixed $value)

Dump var

static mxied
emptyLabel(mixed $value, string|null $label = '')

Return label if value is empty

static string
sliceLabel(string|null $text, int $size = 30, string|null $label = '...')

Slice text and add label

static string
convertToString(mixed $value, string|null $separator = ' ')

Convert value to string

static string
attr(mixed|array $value, string|null $name = null, mixed $default = '')

Convert value to html attribute(s)

Details

at line 28
static mixed|null is(mixed $value, mixed $var2, mixed $returnValue)

Check if $value = $var2

Parameters

mixed $value
mixed $var2
mixed $returnValue

Return Value

mixed|null

at line 47
static mixed dump(mixed $value)

Dump var

Parameters

mixed $value

Return Value

mixed

at line 59
static mxied emptyLabel(mixed $value, string|null $label = '')

Return label if value is empty

Parameters

mixed $value
string|null $label

Return Value

mxied

at line 72
static string sliceLabel(string|null $text, int $size = 30, string|null $label = '...')

Slice text and add label

Parameters

string|null $text
int $size
string|null $label

Return Value

string

at line 86
static string convertToString(mixed $value, string|null $separator = ' ')

Convert value to string

Parameters

mixed $value
string|null $separator

Return Value

string

at line 103
static string attr(mixed|array $value, string|null $name = null, mixed $default = '')

Convert value to html attribute(s)

Parameters

mixed|array $value
string|null $name
mixed $default

Return Value

string