Exemplo n.º 1
0
 /**
  * Constructor
  * 
  * @param   Compiler        $compiler
  * @param   array|string    $table
  * @param   WhereClause     $clause     (optional)
  */
 public function __construct(Compiler $compiler, $table, WhereClause $clause = null)
 {
     if (!is_array($table)) {
         $table = array($table);
     }
     $this->tables = $table;
     parent::__construct($compiler, $clause);
 }
Exemplo n.º 2
0
 /**
  * Constructor
  * 
  * @param   Compiler        $compiler
  * @param   string|array    $tables
  * @param   WhereClause     $clause     (optional)
  */
 public function __construct(Compiler $compiler, $tables, WhereClause $clause = null)
 {
     parent::__construct($compiler, $clause);
     if (!is_array($tables)) {
         $tables = array($tables);
     }
     $this->tables = $tables;
     $this->have = new HavingCondition($this->compiler);
 }
Exemplo n.º 3
0
 public function __construct(Connection $connection, $tables)
 {
     parent::__construct($connection->compiler());
     $this->tables = $tables;
     $this->connection = $connection;
 }