PHP Class Flow\JSONPath\JSONPath

显示文件 Open project: FlowCommunications/JSONPath Class Usage Examples

Protected Properties

Property Type Description
$data
$options
$tokenCache

Public Methods

Method Description
__construct ( $data, integer $options )
__get ( $key ) : JSONPath | mixed | null | static
current ( ) Return the current element
data ( ) : mixed
find ( $expression ) : static Evaluate an expression
first ( ) : mixed
firstKey ( ) : mixed Evaluate an expression and return the first key
jsonSerialize ( )
key ( ) Return the key of the current element
last ( ) : mixed Evaluate an expression and return the last result
lastKey ( ) : mixed Evaluate an expression and return the last key
next ( ) Move forward to next element
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
parseTokens ( $expression ) : array
rewind ( ) Rewind the Iterator to the first element
valid ( ) Checks if current position is valid

Method Details

__construct() public method

public __construct ( $data, integer $options )
$data
$options integer

__get() public method

public __get ( $key ) : JSONPath | mixed | null | static
$key
return JSONPath | mixed | null | static

current() public method

Return the current element
public current ( )

data() public method

public data ( ) : mixed
return mixed

find() public method

Evaluate an expression
public find ( $expression ) : static
$expression
return static

first() public method

public first ( ) : mixed
return mixed

firstKey() public method

Evaluate an expression and return the first key
public firstKey ( ) : mixed
return mixed

jsonSerialize() public method

public jsonSerialize ( )

key() public method

Return the key of the current element
public key ( )

last() public method

Evaluate an expression and return the last result
public last ( ) : mixed
return mixed

lastKey() public method

Evaluate an expression and return the last key
public lastKey ( ) : mixed
return mixed

next() public method

Move forward to next element
public next ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

parseTokens() public method

public parseTokens ( $expression ) : array
$expression
return array

rewind() public method

Rewind the Iterator to the first element
public rewind ( )

valid() public method

Checks if current position is valid
public valid ( )

Property Details

$data protected_oe property

protected $data

$options protected_oe property

protected $options

$tokenCache protected_oe static_oe property

protected static $tokenCache