Class: atkMySQLiStatement
Source Location: /db/statement/class.atkmysqlistatement.inc
Class atkMySQLiStatement
Property Summary
| MySQLi_Statement |
$m_stmt |
MySQLi statement. |
Method Summary
| int |
getInsertId() |
Returns the auto-generated id used in the last query. |
| void |
rewind() |
Moves the cursor back to the beginning of the result set. |
| void |
_bindResult() |
Bind result columns to values array so we can read the result when fetching rows. |
| void |
_close() |
Frees up all resources for this statement. The statement cannot be re-used anymore. |
| void |
_execute() |
Executes the statement using the given bind parameters. |
| array |
_fetch() |
Fetches the next row from the result set. |
| void |
_getAffectedRowCount() |
Returns the number of affected rows in case of an INSERT, UPDATE or DELETE query. Called immediatly after atkStatement::_execute(). |
| void |
_prepare() |
Prepares the statement for execution. |
| void |
_reset() |
Resets the statement so that it can be re-used again. |
Properties
MySQLi statement.
API Tags:
Row value bindings.
API Tags:
Methods
Returns the auto-generated id used in the last query.
API Tags:
| Return: | auto-generated id |
| Access: | public |
Moves the cursor back to the beginning of the result set.
NOTE: Depending on the database driver, using this method might result in the query to be executed again.
API Tags:
Redefinition of:
- atkStatement::rewind()
- Moves the cursor back to the beginning of the result set.
void _bindParams(
array
$params
)
|
|
Bind statement parameters.
Parameters:
|
array |
$params: |
parameters |
API Tags:
Bind result columns to values array so we can read the result when fetching rows.
API Tags:
Frees up all resources for this statement. The statement cannot be re-used anymore.
API Tags:
Redefinition of:
- atkStatement::_close()
- Frees up all resources for this statement. The statement cannot be re-used anymore.
void _execute(
array
$params
)
|
|
Executes the statement using the given bind parameters.
Parameters:
|
array |
$params: |
bind parameters |
API Tags:
Redefinition of:
- atkStatement::_execute()
- Executes the statement using the given bind parameters.
Fetches the next row from the result set.
API Tags:
| Return: | next row from the result set (false if no other rows exist) |
| Access: | protected |
Redefinition of:
- atkStatement::_fetch()
- Fetches the next row from the result set.
void _getAffectedRowCount(
)
|
|
Returns the number of affected rows in case of an INSERT, UPDATE or DELETE query. Called immediatly after atkStatement::_execute().
API Tags:
Redefinition of:
- atkStatement::_getAffectedRowCount()
- Returns the number of affected rows in case of an INSERT, UPDATE or DELETE query. Called immediatly after atkStatement::_execute().
Prepares the statement for execution.
API Tags:
Redefinition of:
- atkStatement::_prepare()
- Prepares the statement for execution.
Resets the statement so that it can be re-used again.
API Tags:
Redefinition of:
- atkStatement::_reset()
- Resets the statement so that it can be re-used again.
void _storeColumnNames(
)
|
|
Store the column names from this statement's metadata.
API Tags: