PHP 클래스 Youshido\GraphQL\Relay\Connection\ArrayConnection

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

공개 메소드들

메소드 설명
connectionFromArray ( array $data, array $args = [] )
connectionFromArraySlice ( array $data, array $args, $sliceStart, $arrayLength )
cursorForObjectInConnection ( $data, $object )
cursorToOffset ( $cursor ) : integer | null
cursorToOffsetWithDefault ( $cursor, $default )
edgeForObjectWithIndex ( $object, $index )
offsetToCursor ( $offset ) : string

메소드 상세

connectionFromArray() 공개 정적인 메소드

public static connectionFromArray ( array $data, array $args = [] )
$data array
$args array

connectionFromArraySlice() 공개 정적인 메소드

public static connectionFromArraySlice ( array $data, array $args, $sliceStart, $arrayLength )
$data array
$args array

cursorForObjectInConnection() 공개 정적인 메소드

public static cursorForObjectInConnection ( $data, $object )

cursorToOffset() 공개 정적인 메소드

public static cursorToOffset ( $cursor ) : integer | null
$cursor string
리턴 integer | null

cursorToOffsetWithDefault() 공개 정적인 메소드

public static cursorToOffsetWithDefault ( $cursor, $default )

edgeForObjectWithIndex() 공개 정적인 메소드

public static edgeForObjectWithIndex ( $object, $index )

offsetToCursor() 공개 정적인 메소드

public static offsetToCursor ( $offset ) : string
$offset int
리턴 string