mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-26 15:20:16 +00:00
Apply more workingness to this.
This commit is contained in:
parent
1f5961e1b1
commit
179376543b
@ -235,12 +235,14 @@ class AwlQuery
|
||||
else $this->connection = null;
|
||||
|
||||
$argc = func_num_args();
|
||||
$args = func_get_args();
|
||||
|
||||
$this->querystring = func_get_arg(0);
|
||||
$this->querystring = array_shift($args);
|
||||
if ( 1 < $argc ) {
|
||||
$args = func_get_args();
|
||||
array_shift($args);
|
||||
$this->Bind($args);
|
||||
if ( is_array($args[0]) )
|
||||
$this->Bind($args[0]);
|
||||
else
|
||||
$this->Bind($args);
|
||||
}
|
||||
|
||||
return $this;
|
||||
@ -332,6 +334,22 @@ class AwlQuery
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the query string we are planning to execute
|
||||
*/
|
||||
function QueryString() {
|
||||
return $this->querystring;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the parameters we are planning to substitute into the query string
|
||||
*/
|
||||
function Parameters() {
|
||||
return $this->bound_parameters;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Execute the query, logging any debugging.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user