\TriTan\InterfacesUtilsInterface

Summary

Methods
Constants
unslash()
absint()
trim()
escape()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

unslash()

unslash(  $value) : string|array

This should be used to remove slashes from data passed to core API that expects data to be unslashed.

Parameters

$value

Returns

string|array —

Unslashed value.

absint()

absint(mixed  $maybeint) : integer

Convert a value to non-negative integer.

Parameters

mixed $maybeint

Data you wish to have converted to a non-negative integer.

Returns

integer —

A non-negative integer.

trim()

trim(string  $str) : mixed

Removes all whitespace.

Parameters

string $str

Returns

mixed

escape()

escape(string  $str) : mixed

Renders any unwarranted special characters to HTML entities.

Parameters

string $str

Returns

mixed