Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param PDO $PdoConnection optional PDO database connection
  *
  * @return SQL\UpdateQueryBuilder
  */
 public function __construct(\PDO $PdoConnection = null)
 {
     parent::__construct($PdoConnection);
     $this->queryType = self::TYPE_UPDATE;
     $this->sqlParts['table'] = null;
     $this->sqlParts['set'] = array();
     $this->boundParams['set'] = array();
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param  PDO                    $PdoConnection optional PDO database connection
  * @return SQL\SelectQueryBuilder
  */
 public function __construct(\PDO $PdoConnection = null)
 {
     parent::__construct($PdoConnection);
     $this->queryType = self::TYPE_SELECT;
     $this->sqlParts['select'] = array();
     $this->sqlParts['from'] = array('table' => null, 'alias' => null);
     $this->sqlParts['join'] = array();
     $this->sqlParts['groupBy'] = array();
     $this->sqlParts['having'] = array();
     $this->sqlParts['orderBy'] = array();
     $this->sqlParts['limit'] = array('limit' => 0, 'offset' => 0, 'page' => 0);
     $this->boundParams['from'] = array();
     $this->boundParams['having'] = array();
 }
Ejemplo n.º 3
0
 /**
  * Constructor.
  *
  * @param PDO $PdoConnection optional PDO database connection
  *
  * @return SQL\DeleteQueryBuilder
  */
 public function __construct(\PDO $PdoConnection = null)
 {
     parent::__construct($PdoConnection);
     $this->queryType = self::TYPE_DELETE;
     $this->sqlParts['from'] = null;
 }