コード例 #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);
 }