Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c10e80

Browse files
Updated client to point to REST servce db/data/
1 parent 9b58aee commit 0c10e80

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

‎demo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Note: this does not actually perform any network access,
1010
* the server is only accessed when you use the database
1111
*/
12-
$graphDb = new GraphDatabaseService('http://localhost:7474/db/data/');
12+
$graphDb = new GraphDatabaseService('http://localhost:7474/');
1313

1414
/**
1515
* Lets create some nodes

‎php-neo-rest.php

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GraphDatabaseService
88

99
public function __construct($base_uri)
1010
{
11-
$this->base_uri = $base_uri;
11+
$this->base_uri = $base_uri.'db/data/';
1212
}
1313

1414
public function getNodeById($node_id)
@@ -315,6 +315,50 @@ class NotFoundException extends Exception
315315
{
316316
}
317317

318+
class Traversal
319+
{
320+
/*const RETURN_TYPE_NODE = 'node';
321+
const RETURN_TYPE_RELATIONSHIP = 'relationship';
322+
const RETURN_TYPE_POSITION = 'position';
323+
const RETURN_TYPE_PATH = 'path';*/
324+
325+
const RETURN_FILTER_ALL = 'all';
326+
const RETURN_FILTER_ALL_BUT_START_NODE = 'all but start node';
327+
328+
const ORDER_DEPTH_FIRST = 'depth first';
329+
const ORDER_BREADTH_FIRST = 'breadth first';
330+
331+
public function setOrder($order)
332+
{
333+
$this->order = $order;
334+
return $this;
335+
}
336+
337+
public function setMaxDepth($max_depth)
338+
{
339+
$this->max_depth = $max_depth;
340+
return $this;
341+
}
342+
343+
public function setReturnFilter()
344+
{
345+
}
346+
347+
public function setPruneEvaluator()
348+
{
349+
}
350+
351+
public function setReturnType($return_type)
352+
{
353+
}
354+
355+
public function getNodes()
356+
{
357+
358+
}
359+
}
360+
361+
318362

319363
/**
320364
* Very messy HTTP utility library

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /