PHP Class Youshido\GraphQL\Relay\Connection\ArrayConnection

Afficher le fichier Open project: youshido/graphql Class Usage Examples

Méthodes publiques

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

Method Details

connectionFromArray() public static méthode

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

connectionFromArraySlice() public static méthode

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

cursorForObjectInConnection() public static méthode

public static cursorForObjectInConnection ( $data, $object )

cursorToOffset() public static méthode

public static cursorToOffset ( $cursor ) : integer | null
$cursor string
Résultat integer | null

cursorToOffsetWithDefault() public static méthode

public static cursorToOffsetWithDefault ( $cursor, $default )

edgeForObjectWithIndex() public static méthode

public static edgeForObjectWithIndex ( $object, $index )

offsetToCursor() public static méthode

public static offsetToCursor ( $offset ) : string
$offset int
Résultat string