Skip to content

Commit c1e8c45

Browse files
committed
src: added debug flag for dumping xml before execution
1 parent bbba7e8 commit c1e8c45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

quickbase.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class QuickBase {
5050
'responseAsObject' => false
5151
);
5252

53+
public $debug = false;
5354
public $mch;
5455
public $chs;
5556

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

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

107+
if($this->debug){
108+
var_dump('Executing QB Query', $query->getPayload());
109+
}
110+
106111
$queries[] = $query;
107112
}
108113

@@ -315,6 +320,10 @@ final public function finalize(){
315320
return $this;
316321
}
317322

323+
final public function getPayload(){
324+
return $this->payload;
325+
}
326+
318327
final public function prepareCH(&$ch){
319328
if(isset($this->ch) && !$ch){
320329
$ch = $this->ch;

0 commit comments

Comments
 (0)