public function sendCypherQuery($query, array $parameters = array(), $conn = null, $queryMode = null)
    {
        $command = $this->invoke('neo.send_cypher_query', $conn);
        if (!is_string($query)) {
            throw new CypherException('You need to send a Cypher query as a string. Usage: "$neoclient->sendCypherQuery(string $query, array $params);"');
        }

        $httpResponse = $command->setArguments($query, $parameters, $this->resultDataContent, $queryMode)
          ->execute();

        return $this->handleHttpResponse($httpResponse);
    }
public function sendCypherQuery($query, array $parameters = array(), $conn = null, $queryMode = null)
    {
        $command = $this->invoke('neo.send_cypher_query', $conn);
        if (!is_string($query)) {
            throw new CypherException('You need to send a Cypher query as a string. Usage: "$neoclient->sendCypherQuery(string $query, array $params);"');
        }

        $httpResponse = $command->setArguments($query, $parameters, $this->resultDataContent, $queryMode)
          ->execute();

        return $this->handleHttpResponse($httpResponse);
    }
public function sendCypherQuery ( $ query , array $ parameters = array ( ) , $ conn = null , $ queryMode = null ) { $ command = $ this -> invoke ( 'neo.send_cypher_query' , $ conn ) ; if ( ! is_string ( $ query ) ) { throw new CypherException ( 'You need to send a Cypher query as a string. Usage: "$neoclient->sendCypherQuery(string $query, array $params);"' ) ; } $ httpResponse = $ command -> setArguments ( $ query , $ parameters , $ this -> resultDataContent , $ queryMode ) -> execute ( ) ; return $ this -> handleHttpResponse ( $ httpResponse ) ; }
Convenience method that invoke the sendCypherQueryCommand
and passes given query and parameters arguments.

@param string      $query      The query to send
@param array       $parameters Map of query parameters
@param string|null $conn       The alias of the connection to use
@param string|null $queryMode  The mode of the query, could be WRITE or READ

@return mixed
Convenience method that invoke the sendCypherQueryCommand and passes given query and parameters arguments .