PHP 클래스 Flow\JSONPath\JSONPath

파일 보기 프로젝트 열기: FlowCommunications/JSONPath 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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