PHP Class GraphAware\Neo4j\Client\Client

Inheritance: implements GraphAware\Neo4j\Client\ClientInterface
Afficher le fichier Open project: graphaware/neo4j-php-client Class Usage Examples

Protected Properties

Свойство Type Description
$connectionManager GraphAware\Neo4j\Client\Connection\ConnectionManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

Méthodes publiques

Méthode Description
__construct ( ConnectionManager $connectionManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
getConnectionManager ( ) : ConnectionManager
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
getLabels ( string | null $conn = null ) : Label[]
run ( $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result | null Run a Cypher statement against the default database or the database specified.
runStack ( GraphAware\Neo4j\Client\StackInterface $stack ) : ResultCollection | null
runWrite ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
sendCypherQuery ( string $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result
sendWriteQuery ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
stack ( string | null $tag = null, string | null $connectionAlias = null ) : GraphAware\Neo4j\Client\StackInterface
transaction ( null | string $connectionAlias = null ) : Transaction

Private Methods

Méthode Description
pipeline ( null | string $query = null, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Driver\PipelineInterface

Method Details

__construct() public méthode

public __construct ( ConnectionManager $connectionManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$connectionManager GraphAware\Neo4j\Client\Connection\ConnectionManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

getConnectionManager() public méthode

public getConnectionManager ( ) : ConnectionManager
Résultat GraphAware\Neo4j\Client\Connection\ConnectionManager

getEventDispatcher() public méthode

public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
Résultat Symfony\Component\EventDispatcher\EventDispatcherInterface

getLabels() public méthode

public getLabels ( string | null $conn = null ) : Label[]
$conn string | null
Résultat GraphAware\Neo4j\Client\Schema\Label[]

run() public méthode

Run a Cypher statement against the default database or the database specified.
public run ( $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result | null
$query
$parameters null | array
$tag null | string
$connectionAlias null | string
Résultat GraphAware\Common\Result\Result | null

runStack() public méthode

public runStack ( GraphAware\Neo4j\Client\StackInterface $stack ) : ResultCollection | null
$stack GraphAware\Neo4j\Client\StackInterface
Résultat GraphAware\Neo4j\Client\Result\ResultCollection | null

runWrite() public méthode

public runWrite ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
Résultat GraphAware\Common\Result\Result

sendCypherQuery() public méthode

Deprecation: since 4.0 - will be removed in 5.0 - use $client->run() instead
public sendCypherQuery ( string $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
$connectionAlias null | string
Résultat GraphAware\Common\Result\Result

sendWriteQuery() public méthode

Deprecation: since 4.0 - will be removed in 5.0 - use $client->runWrite() instead
public sendWriteQuery ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
Résultat GraphAware\Common\Result\Result

stack() public méthode

public stack ( string | null $tag = null, string | null $connectionAlias = null ) : GraphAware\Neo4j\Client\StackInterface
$tag string | null
$connectionAlias string | null
Résultat GraphAware\Neo4j\Client\StackInterface

transaction() public méthode

public transaction ( null | string $connectionAlias = null ) : Transaction
$connectionAlias null | string
Résultat GraphAware\Neo4j\Client\Transaction\Transaction

Property Details

$connectionManager protected_oe property

protected ConnectionManager,GraphAware\Neo4j\Client\Connection $connectionManager
Résultat GraphAware\Neo4j\Client\Connection\ConnectionManager

$eventDispatcher protected_oe property

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
Résultat Symfony\Component\EventDispatcher\EventDispatcherInterface