コード例 #1
0
 /**
  * Set the relationship to drive the command
  *
  * @param Client $client
  * @param Relationship $rel
  */
 public function __construct(Client $client, Relationship $rel)
 {
     parent::__construct($client, $this, null);
     $this->rel = $rel;
 }
コード例 #2
0
ファイル: Commit.php プロジェクト: pin-cnx/orientdb-php
 /**
  * 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;
 }
コード例 #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 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);
 }
コード例 #5
0
 /**
  * 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;
 }
コード例 #6
0
ファイル: InsertNode.php プロジェクト: pin-cnx/orientdb-php
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param Node $node
  * @param integer $opId
  */
 public function __construct(Client $client, Classes $node, $opId)
 {
     parent::__construct($client, new SingleCreateNode($client, $node), $opId);
 }
コード例 #7
0
ファイル: UpdateNode.php プロジェクト: pin-cnx/orientdb-php
 /**
  * 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);
 }
コード例 #8
0
ファイル: AddToIndex.php プロジェクト: pin-cnx/orientdb-php
 /**
  * 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;
 }