Krai_Db_Query __construct(
mixed
$query,
$stats
)
|
|
Constructor. Saves the passed query to the instance
Parameters:
Returns the number of affected rows
This function returns the value of the Krai_Db_Query::$_Stats "affected" key.
API Tags:
Close the query
This function closes the query.
API Tags:
mixed Error(
[string
$ret = "text"]
)
|
|
Returns query error information
This function returns the value of the Krai_Db_Query::$_Stats "error" key, formatted either as a string, as an error code, or an array of (string, error code).
Parameters:
|
string |
$ret: |
How to return the information ("text","number", or "array") |
API Tags:
Information Tags:
| Throws: | Krai_Db_Exception |
Get a reference to the query object
This function returns a reference to the query object wrapped in the instance
API Tags:
| Return: | The Query object |
| Access: | public |
Returns the last inserted id
This function returns the value of the Krai_Db_Query::$_Stats "insertid" key.
API Tags:
Is the query closed?
This function reports whether or not the query is closed.
API Tags:
Returns whether or not the query was successful
This function returns the value of the Krai_Db_Query::$_Stats "successful" key.
API Tags:
Returns the number of rows in the resultset
This function returns the value of the Krai_Db_Query::$_Stats "numrows" key.
API Tags:
mixed __call(
mixed
$m, mixed
$p
)
|
|
PHP Magic Function
This function passes method calls on an instance of this class onto the query handle wrapped in the instance.
Parameters:
API Tags:
PHP Magic Function
This function passes property requests on an instance of this class onto the query handle wrapped in the instance.
Parameters:
API Tags: