Constructor
Save query to member attribute and initialize _binds var.
Parameters:
|
string |
$handle: |
query (query to execute) |
API Tags:
void addBind(
string
$name, string
$value
)
|
|
Add param to bind
Method used to provide a value to a parameter within the query.
Parameters:
|
string |
$name: |
name (name of bind param) |
|
string |
$value: |
value (value of bind param) |
API Tags:
Execute query
Method accepts any number of arguments. Arguments used as parameter values to bind in query. First argument sent will be bound to param :1 second to param :2 and so on. Method first binds parameters sent to function, then binds parameters within the member variable _bind. Once the query is complete it is executed.
API Tags:
Information Tags:
void removeBind(
string
$name
)
|
|
Remove param from bind
Method used to remove a value from query parameters.
Parameters:
|
string |
$name: |
name (name of bind param) |
API Tags:
string _bindParamToQuery(
)
|
|
Place values into query
Method used by execute() to replace query variables with their values.
API Tags:
| Return: | (complete query) |
| Access: | protected |
Information Tags:
void _mergeBind(
mixed
$exe_args, array
$args
)
|
|
Combine all bind parameters
Method combines the parameters sent to Mysql_Statement::execute with the $_binds array.
Parameters:
API Tags: