예제 #1
0
파일: Update.php 프로젝트: davewid/peyote
 /**
  * Optionally sets the table name and initializes the internal class
  * properties.
  *
  * @param string $table  The name of the table
  */
 public function __construct($table = null)
 {
     $this->where = new \Peyote\Where();
     $this->order_by = new \Peyote\Order();
     $this->limit = new \Peyote\Limit();
     parent::__construct($table);
 }
예제 #2
0
파일: Select.php 프로젝트: davewid/peyote
 /**
  * Optionally sets the table name and initializes the internal class
  * properties.
  *
  * @param string $table  The name of the table
  */
 public function __construct($table = null)
 {
     $this->join = new \Peyote\Join();
     $this->where = new \Peyote\Where();
     $this->group_by = new \Peyote\Group();
     $this->order_by = new \Peyote\Order();
     $this->limit = new \Peyote\Limit();
     $this->having = new \Peyote\Having();
     parent::__construct($table);
 }
예제 #3
0
파일: PDO.php 프로젝트: davewid/peyote
 /**
  * Run a Peyote based query.
  *
  * @param  \Peyote\Query $query  A Peyote Query
  * @return \PDOStatement
  */
 public function runQuery(\Peyote\Query $query)
 {
     return $this->run($query->compile(), $query->getParams());
 }