Filters
in package
Template filer functions
Table of Contents
Methods
- attr() : string
- Convert value to html attribute(s)
- convertToString() : string
- Convert value to string
- dump() : mixed
- Dump var
- emptyLabel() : mixed
- Return label if value is empty
- is() : mixed|null
- Check if $value = $var2
- sliceLabel() : string
- Slice text and add label
Methods
attr()
Convert value to html attribute(s)
public
static attr(mixed|array<string|int, mixed> $value[, string|null $name = null ][, mixed $default = '' ]) : string
Parameters
- $value : mixed|array<string|int, mixed>
- $name : string|null = null
- $default : mixed = ''
Return values
stringconvertToString()
Convert value to string
public
static convertToString(mixed $value[, string|null $separator = ' ' ]) : string
Parameters
- $value : mixed
- $separator : string|null = ' '
Return values
stringdump()
Dump var
public
static dump(mixed $value) : mixed
Parameters
- $value : mixed
emptyLabel()
Return label if value is empty
public
static emptyLabel(mixed $value[, string|null $label = '' ]) : mixed
Parameters
- $value : mixed
- $label : string|null = ''
is()
Check if $value = $var2
public
static is(mixed $value, mixed $var2, mixed $returnValue) : mixed|null
Parameters
- $value : mixed
- $var2 : mixed
- $returnValue : mixed
Return values
mixed|nullsliceLabel()
Slice text and add label
public
static sliceLabel(string $text[, int $size = 30 ][, string|null $label = '...' ]) : string
Parameters
- $text : string
- $size : int = 30
- $label : string|null = '...'