/** * When bindValue() is called, we store its params */ public function BindValue($Parameter, $Value, $PDOType = null) { # Flush Bound Values if statement has previously been executed if ($this->Executed) { $this->BoundValues = array() and $this->Executed = false; } $this->BoundValues[] = array('Parameter' => $Parameter, 'Value' => $Value, 'PDOType' => $PDOType); parent::BindValue($Parameter, $Value, $PDOType); return $this; }