PHP Класс Flow\JSONPath\JSONPath

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$data
$options
$tokenCache

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

__get() публичный Метод

public __get ( $key ) : JSONPath | mixed | null | static
$key
Результат JSONPath | mixed | null | static

current() публичный Метод

Return the current element
public current ( )

data() публичный Метод

public data ( ) : mixed
Результат mixed

find() публичный Метод

Evaluate an expression
public find ( $expression ) : static
$expression
Результат static

first() публичный Метод

public first ( ) : mixed
Результат mixed

firstKey() публичный Метод

Evaluate an expression and return the first key
public firstKey ( ) : mixed
Результат mixed

jsonSerialize() публичный Метод

public jsonSerialize ( )

key() публичный Метод

Return the key of the current element
public key ( )

last() публичный Метод

Evaluate an expression and return the last result
public last ( ) : mixed
Результат mixed

lastKey() публичный Метод

Evaluate an expression and return the last key
public lastKey ( ) : mixed
Результат mixed

next() публичный Метод

Move forward to next element
public next ( )

offsetExists() публичный Метод

public offsetExists ( $offset )

offsetGet() публичный Метод

public offsetGet ( $offset )

offsetSet() публичный Метод

public offsetSet ( $offset, $value )

offsetUnset() публичный Метод

public offsetUnset ( $offset )

parseTokens() публичный Метод

public parseTokens ( $expression ) : array
$expression
Результат array

rewind() публичный Метод

Rewind the Iterator to the first element
public rewind ( )

valid() публичный Метод

Checks if current position is valid
public valid ( )

Описание свойств

$data защищенное свойство

protected $data

$options защищенное свойство

protected $options

$tokenCache защищенное статическое свойство

protected static $tokenCache