PHP Class Flow\JSONPath\JSONPath

Afficher le fichier Open project: FlowCommunications/JSONPath Class Usage Examples

Protected Properties

Свойство Type Description
$data
$options
$tokenCache

Méthodes publiques

Méthode 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 méthode

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

__get() public méthode

public __get ( $key ) : JSONPath | mixed | null | static
$key
Résultat JSONPath | mixed | null | static

current() public méthode

Return the current element
public current ( )

data() public méthode

public data ( ) : mixed
Résultat mixed

find() public méthode

Evaluate an expression
public find ( $expression ) : static
$expression
Résultat static

first() public méthode

public first ( ) : mixed
Résultat mixed

firstKey() public méthode

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

jsonSerialize() public méthode

public jsonSerialize ( )

key() public méthode

Return the key of the current element
public key ( )

last() public méthode

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

lastKey() public méthode

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

next() public méthode

Move forward to next element
public next ( )

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

parseTokens() public méthode

public parseTokens ( $expression ) : array
$expression
Résultat array

rewind() public méthode

Rewind the Iterator to the first element
public rewind ( )

valid() public méthode

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