PHP 클래스 Neoxygen\NeoClient\Formatter\Result

파일 보기 프로젝트 열기: neoxygen/neo4j-neoclient 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$errors
$identifiers array
$nodes Neoxygen\NeoClient\Formatter\Node[]
$relationships Neoxygen\NeoClient\Formatter\Relationship[]
$tableFormat array

공개 메소드들

메소드 설명
__construct ( )
addIdentifierValue ( $k, $v )
addNode ( Neoxygen\NeoClient\Formatter\Node $node )
addNodeToIdentifier ( $nodeId, $identifier )
addRelationship ( Neoxygen\NeoClient\Formatter\Relationship $relationship )
addRelationshipToIdentifier ( $relationshipId, $identifier )
addRowToIdentifier ( $value, $identifier )
get ( string $identifier, mixed $default = null, boolean $singleAsArray = false ) : mixed Returns the item or items bound to the given identifier, or $default if no items are bound.
getAllByIdentifier ( ) : array
getIdentifiers ( ) : string[]
getNodeById ( integer $id ) : Neoxygen\NeoClient\Formatter\Node | null Returns a single node by its Neo4j node ID number, or null if the node is not present in the result.
getNodes ( string | string[] | null $label = null, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[] Returns all nodes if called without arguments. Returns all nodes with the given labels if called with an array of labels. Otherwise, acts identically as {@link Result::getNodesByLabels()}.
getNodesByLabel ( string $name, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[] Returns all nodes with the given label.
getNodesByLabels ( array $labels = [], boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[] Returns all nodes with the given labels.
getNodesCount ( ) : integer
getRelationship ( integer $id ) : Neoxygen\NeoClient\Formatter\Relationship | null Returns the relationship by its Neo4j ID.
getRelationships ( ) : Neoxygen\NeoClient\Formatter\Relationship[]
getRelationshipsCount ( ) : integer
getSingle ( string $identifier, mixed $default = null ) : mixed Returns a single item bound to the given identifier, or the default if the identifier is not bound.
getSingleNode ( string | null $label = null ) : Neoxygen\NeoClient\Formatter\Node | null Returns a single node from the nodes collection Use when you do cypher queries returning only one node.
getSingleNodeByLabel ( string $label ) : Neoxygen\NeoClient\Formatter\Node | null Returns a single node for a given label.
getTableFormat ( ) : array
hasIdentifier ( string $i ) : boolean
setTableFormat ( array $table )

메소드 상세

__construct() 공개 메소드

public __construct ( )

addIdentifierValue() 공개 메소드

public addIdentifierValue ( $k, $v )

addNode() 공개 메소드

public addNode ( Neoxygen\NeoClient\Formatter\Node $node )
$node Neoxygen\NeoClient\Formatter\Node

addNodeToIdentifier() 공개 메소드

public addNodeToIdentifier ( $nodeId, $identifier )

addRelationship() 공개 메소드

public addRelationship ( Neoxygen\NeoClient\Formatter\Relationship $relationship )
$relationship Neoxygen\NeoClient\Formatter\Relationship

addRelationshipToIdentifier() 공개 메소드

public addRelationshipToIdentifier ( $relationshipId, $identifier )

addRowToIdentifier() 공개 메소드

public addRowToIdentifier ( $value, $identifier )

get() 공개 메소드

Returns the item or items bound to the given identifier, or $default if no items are bound.
public get ( string $identifier, mixed $default = null, boolean $singleAsArray = false ) : mixed
$identifier string
$default mixed A value to return if the identifier is not bound.
$singleAsArray boolean When true, always returns a single value as an array.
리턴 mixed

getAllByIdentifier() 공개 메소드

public getAllByIdentifier ( ) : array
리턴 array

getIdentifiers() 공개 메소드

public getIdentifiers ( ) : string[]
리턴 string[]

getNodeById() 공개 메소드

Returns a single node by its Neo4j node ID number, or null if the node is not present in the result.
public getNodeById ( integer $id ) : Neoxygen\NeoClient\Formatter\Node | null
$id integer Neo4j node ID.
리턴 Neoxygen\NeoClient\Formatter\Node | null

getNodes() 공개 메소드

Returns all nodes if called without arguments. Returns all nodes with the given labels if called with an array of labels. Otherwise, acts identically as {@link Result::getNodesByLabels()}.
public getNodes ( string | string[] | null $label = null, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[]
$label string | string[] | null
$labelizedKeys boolean
리턴 Neoxygen\NeoClient\Formatter\Node[]

getNodesByLabel() 공개 메소드

Returns all nodes with the given label.
public getNodesByLabel ( string $name, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[]
$name string
$labelizedKeys boolean When true, the results are indexed by node label. Assumes only one node per label.
리턴 Neoxygen\NeoClient\Formatter\Node[]

getNodesByLabels() 공개 메소드

Returns all nodes with the given labels.
public getNodesByLabels ( array $labels = [], boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[]
$labels array
$labelizedKeys boolean When true, the results are indexed by node label. Assumes one node per label.
리턴 Neoxygen\NeoClient\Formatter\Node[]

getNodesCount() 공개 메소드

public getNodesCount ( ) : integer
리턴 integer Number of nodes in the result.

getRelationship() 공개 메소드

Returns the relationship by its Neo4j ID.
public getRelationship ( integer $id ) : Neoxygen\NeoClient\Formatter\Relationship | null
$id integer The id of the relationship.
리턴 Neoxygen\NeoClient\Formatter\Relationship | null

getRelationships() 공개 메소드

public getRelationships ( ) : Neoxygen\NeoClient\Formatter\Relationship[]
리턴 Neoxygen\NeoClient\Formatter\Relationship[]

getRelationshipsCount() 공개 메소드

public getRelationshipsCount ( ) : integer
리턴 integer Number of relationships in the result.

getSingle() 공개 메소드

Returns a single item bound to the given identifier, or the default if the identifier is not bound.
public getSingle ( string $identifier, mixed $default = null ) : mixed
$identifier string
$default mixed A value to return if the identifier is not bound.
리턴 mixed

getSingleNode() 공개 메소드

Returns a single node from the nodes collection Use when you do cypher queries returning only one node.
public getSingleNode ( string | null $label = null ) : Neoxygen\NeoClient\Formatter\Node | null
$label string | null Return a node for this label only.
리턴 Neoxygen\NeoClient\Formatter\Node | null

getSingleNodeByLabel() 공개 메소드

Returns a single node for a given label.
public getSingleNodeByLabel ( string $label ) : Neoxygen\NeoClient\Formatter\Node | null
$label string The label to match for
리턴 Neoxygen\NeoClient\Formatter\Node | null The Node or null if not node found matching the label

getTableFormat() 공개 메소드

public getTableFormat ( ) : array
리턴 array

hasIdentifier() 공개 메소드

public hasIdentifier ( string $i ) : boolean
$i string Query identifier to check.
리턴 boolean

setTableFormat() 공개 메소드

public setTableFormat ( array $table )
$table array

프로퍼티 상세

$errors 보호되어 있는 프로퍼티

protected $errors

$identifiers 보호되어 있는 프로퍼티

protected array $identifiers
리턴 array

$nodes 보호되어 있는 프로퍼티

protected Node[],Neoxygen\NeoClient\Formatter $nodes
리턴 Neoxygen\NeoClient\Formatter\Node[]

$relationships 보호되어 있는 프로퍼티

protected Relationship[],Neoxygen\NeoClient\Formatter $relationships
리턴 Neoxygen\NeoClient\Formatter\Relationship[]

$tableFormat 보호되어 있는 프로퍼티

protected array $tableFormat
리턴 array