Skip to content

Commit

Permalink
src: added debug flag for dumping xml before execution
Browse files Browse the repository at this point in the history
  • Loading branch information
tflanagan committed Aug 9, 2016
1 parent bbba7e8 commit c1e8c45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions quickbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class QuickBase {
'responseAsObject' => false
);

public $debug = false;
public $mch;
public $chs;

Expand Down Expand Up @@ -103,6 +104,10 @@ final public function api($action, $options = array()){

curl_multi_add_handle($this->mch, $this->chs[$i]);

if($this->debug){
var_dump('Executing QB Query', $query->getPayload());
}

$queries[] = $query;
}

Expand Down Expand Up @@ -315,6 +320,10 @@ final public function finalize(){
return $this;
}

final public function getPayload(){
return $this->payload;
}

final public function prepareCH(&$ch){
if(isset($this->ch) && !$ch){
$ch = $this->ch;
Expand Down

0 comments on commit c1e8c45

Please sign in to comment.