|
static | cleanCompileDir () |
| Delete all previously compiled JMESPath files from the JP_COMPILE_DIR directory or sys_get_temp_dir().
|
|
static | createRuntime () |
| Creates a JMESPath runtime based on environment variables and extensions available on a system.
|
|
static | search ($expression, $data) |
| Returns data from the input array that matches a JMESPath expression.
|
|
|
const | COMPILE_DIR = 'JP_PHP_COMPILE' |
|
◆ cleanCompileDir()
static JmesPath\Env::cleanCompileDir |
( |
| ) |
|
|
static |
Delete all previously compiled JMESPath files from the JP_COMPILE_DIR directory or sys_get_temp_dir().
- Return values
-
int | Returns the number of deleted files. |
◆ createRuntime()
static JmesPath\Env::createRuntime |
( |
| ) |
|
|
static |
Creates a JMESPath runtime based on environment variables and extensions available on a system.
- Return values
-
◆ search()
static JmesPath\Env::search |
( |
| $expression, |
|
|
| $data ) |
|
static |
Returns data from the input array that matches a JMESPath expression.
- Parameters
-
string | $expression | JMESPath expression to evaluate |
mixed | $data | JSON-like data to search |
- Return values
-
mixed | Returns the matching data or null |
The documentation for this class was generated from the following file: