Pipe
class Pipe (View source)
The Pipe class handles the chain of processes to manipulate variable values.
Properties
static private | $phpFunctions | Whitelist of standard PHP functions. |
Methods
static string
process(string $value, array $functions)
Processes an array of functions applied to a given value.
static string
extension(string $function, array $parameters, string $value)
Call custom string function.
static string
math(string $operator, string $number, string $value)
Simple math operations.
static string
stringFunction(string $function, array $parameters, string $value = '')
Apply string function to $value.
Details
at line 76
static string
process(string $value, array $functions)
Processes an array of functions applied to a given value.
$functions is an array of associative arrays with function name and parameters. In case the function name is a mathematical operator, the value is just the numeric value instead of an array.
at line 98
static private string
extension(string $function, array $parameters, string $value)
Call custom string function.
at line 130
static private string
math(string $operator, string $number, string $value)
Simple math operations.
at line 166
static private string
stringFunction(string $function, array $parameters, string $value = '')
Apply string function to $value.