__construct() публичный Метод

Builds a new object, creating the SQL statement from the class SCHEMA and initializing the tokens.
public __construct ( )
Пример #1
0
 /**
  * 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
 /**
  * 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
 /**
  * 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
 /**
  * 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
 /**
  * Builds a new statement setting the $property to manipulate.
  *
  * @param <type> $property
  */
 public function __construct($property)
 {
     parent::__construct();
     $this->setProperty($property);
 }
Пример #6
0
 /**
  * Creates a new object, setting the $rid to lookup.
  *
  * @param string $rid
  */
 public function __construct($rid)
 {
     parent::__construct();
     $this->setRid($rid);
 }
Пример #7
0
 /**
  * Builds a new statement, setting the $class.
  *
  * @param string $class
  */
 public function __construct($class)
 {
     parent::__construct();
     $this->setToken('Class', $class);
 }
Пример #8
0
 /**
  * Creates a new statement, setting the $permission.
  *
  * @param string $permission
  */
 public function __construct($permission)
 {
     parent::__construct();
     $this->permission($permission);
 }
Пример #9
0
 public function __construct($name)
 {
     parent::__construct();
     $this->setToken('Name', $name);
 }
Пример #10
0
 /**
  * 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
 public function __construct($rid)
 {
     parent::__construct();
     $this->setToken('Rid', $rid);
 }