__construct() public method

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