class Helpers

Latte helpers.

Properties

static array $emptyElements

Methods

static callable
checkCallback($callable)

Checks callback.

static string|null
getSuggestion(array $items, $value)

Finds the best suggestion.

static bool
removeFilter(string $modifier, string $filter)

No description

static bool
startsWith(string $haystack, string $needle)

Starts the $haystack string with the prefix $needle?

Details

at line 29
static callable checkCallback($callable)

Checks callback.

Parameters

$callable

Return Value

callable

at line 41
static string|null getSuggestion(array $items, $value)

Finds the best suggestion.

Parameters

array $items
$value

Return Value

string|null

at line 56
static bool removeFilter(string $modifier, string $filter)

Parameters

string $modifier
string $filter

Return Value

bool

at line 66
static bool startsWith(string $haystack, string $needle)

Starts the $haystack string with the prefix $needle?

Parameters

string $haystack
string $needle

Return Value

bool