__construct() public method

Builds a new object, creating the SQL statement from the class SCHEMA and initializing the tokens.
public __construct ( )
コード例 #1
0
ファイル: Edge.php プロジェクト: doctrine/orientdb-odm
 /**
  * Builds a new statement, setting the $class.
  *
  * @param string $class
  * @param string $from
  * @param string $to
  */
 public function __construct($class, $from, $to)
 {
     parent::__construct();
     $this->setToken('Class', $class);
     $this->setToken('From', $from);
     $this->setToken('To', $to);
 }
コード例 #2
0
ファイル: Select.php プロジェクト: doctrine/orientdb-odm
 /**
  * Builds a Select object injecting the $target into the FROM clause.
  *
  * @param array $target
  */
 public function __construct(array $target = null)
 {
     parent::__construct();
     if ($target) {
         $this->setTokenValues('Target', $target);
     }
 }
コード例 #3
0
ファイル: Link.php プロジェクト: doctrine/orientdb-odm
 /**
  * Sets the source of the link, its $alias and if the link must be $reverse.
  *
  * @param string  $class
  * @param string  $property
  * @param string  $alias
  * @param boolean $inverse
  */
 public function __construct($class, $property, $alias, $inverse = false)
 {
     parent::__construct();
     $this->setToken('SourceClass', $class);
     $this->setToken('SourceProperty', $property);
     $this->setToken('Name', $alias);
     if ($inverse) {
         $this->setToken('Inverse', 'INVERSE');
     }
 }
コード例 #4
0
ファイル: Delete.php プロジェクト: doctrine/orientdb-odm
 /**
  * Builds a new statement, setting the class in which the records are gonna
  * be deleted.
  *
  * @param string $from
  */
 public function __construct($from)
 {
     parent::__construct();
     $this->setClass($from);
 }
コード例 #5
0
ファイル: Property.php プロジェクト: doctrine/orientdb-odm
 /**
  * Builds a new statement setting the $property to manipulate.
  *
  * @param <type> $property
  */
 public function __construct($property)
 {
     parent::__construct();
     $this->setProperty($property);
 }
コード例 #6
0
ファイル: Find.php プロジェクト: doctrine/orientdb-odm
 /**
  * Creates a new object, setting the $rid to lookup.
  *
  * @param string $rid
  */
 public function __construct($rid)
 {
     parent::__construct();
     $this->setRid($rid);
 }
コード例 #7
0
ファイル: Update.php プロジェクト: doctrine/orientdb-odm
 /**
  * Builds a new statement, setting the $class.
  *
  * @param string $class
  */
 public function __construct($class)
 {
     parent::__construct();
     $this->setToken('Class', $class);
 }
コード例 #8
0
ファイル: Credential.php プロジェクト: doctrine/orientdb-odm
 /**
  * Creates a new statement, setting the $permission.
  *
  * @param string $permission
  */
 public function __construct($permission)
 {
     parent::__construct();
     $this->permission($permission);
 }
コード例 #9
0
ファイル: Truncate.php プロジェクト: doctrine/orientdb-odm
 public function __construct($name)
 {
     parent::__construct();
     $this->setToken('Name', $name);
 }
コード例 #10
0
ファイル: Vertex.php プロジェクト: spartaksun/orientdb-query
 /**
  * Builds a new statement, setting the $class.
  *
  * @param string $class
  * @param string $cluster
  */
 public function __construct($class, $cluster = '')
 {
     parent::__construct();
     $this->setToken('Class', $class);
     $this->setToken('Cluster', $cluster);
 }
コード例 #11
0
ファイル: Record.php プロジェクト: doctrine/orientdb-odm
 public function __construct($rid)
 {
     parent::__construct();
     $this->setToken('Rid', $rid);
 }