Method |
Description |
|
addDollarIfNeeded ( string $call ) : string |
Prepend "$" to the given input if it's a varname. |
|
convertVarPath ( string $arg, string $regexp = '/^%s|,%s/' ) : string |
Replace var paths in a string. |
|
convertVarPathCallback ( array $match ) : string |
Return PHP code to translate dot to object/array getter. |
|
decodeAttributes ( array $attributes ) : array |
Decode each attribute in the given list. |
|
decodeValue ( string $value ) : mixed |
Decode a value (parse it except if it's null). |
|
escapeIfNeeded ( boolean $escaped, mixed $value ) : callable |
Return PHP code wich wrap the given value and escape it if $escaped is true. |
|
escapeValue ( string $val ) : string |
Escape value depanding on the current quote. |
|
getFilter ( string $name ) : callable |
Get filter by name. |
|
initArgToNull ( &string &$arg ) |
Concat " = null" to initializations to simulate the JS "var foo;". |
|
joinAny ( array $value ) : string | mixed |
Join with space if the value is an array, else return the input value
with no changes. |
|
parseValue ( string $value ) : mixed |
Parse a value from its quoted string (or JSON) representation. |
|