コード例 #1
0
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param Index $index
  * @param PropertyContainer $entity
  * @param string $key
  * @param string $value
  * @param integer $opId
  */
 public function __construct(Client $client, Index $index, PropertyContainer $entity, $key, $value, $opId)
 {
     parent::__construct($client, new SingleRemoveFromIndex($client, $index, $entity, $key, $value), $opId);
 }
コード例 #2
0
ファイル: CreateRelationship.php プロジェクト: jadz/neo4j-php
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param Relationship $rel
  * @param integer $opId
  * @param Batch $batch
  */
 public function __construct(Client $client, Relationship $rel, $opId, Batch $batch)
 {
     parent::__construct($client, new SingleCreateRelationship($client, $rel), $opId);
     $this->batch = $batch;
     $this->rel = $rel;
 }
コード例 #3
0
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param Relationship $rel
  * @param integer $opId
  */
 public function __construct(Client $client, Relationship $rel, $opId)
 {
     parent::__construct($client, new SingleUpdateRelationship($client, $rel), $opId);
 }
コード例 #4
0
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param Node $node
  * @param integer $opId
  */
 public function __construct(Client $client, Node $node, $opId)
 {
     parent::__construct($client, new SingleUpdateNode($client, $node), $opId);
 }
コード例 #5
0
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param Index $index
  * @param PropertyContainer $entity
  * @param string $key
  * @param string $value
  * @param integer $opId
  * @param Batch $batch
  */
 public function __construct(Client $client, Index $index, PropertyContainer $entity, $key, $value, $opId, Batch $batch)
 {
     parent::__construct($client, new SingleAddToIndex($client, $index, $entity, $key, $value), $opId);
     $this->batch = $batch;
     $this->entity = $entity;
 }
コード例 #6
0
ファイル: Commit.php プロジェクト: MobilityMaster/neo4jphp
 /**
  * Set the batch to drive the command
  *
  * @param Client $client
  * @param Batch $batch
  */
 public function __construct(Client $client, Batch $batch)
 {
     parent::__construct($client, $this, null);
     $this->batch = $batch;
 }