Class: Doctrine_Adapter_Statement
Source Location: /Doctrine/Adapter/Statement.php
Class Doctrine_Adapter_Statement
Methods
void bindValue(
$no,
$value
)
|
|
Parameters:
API Tags:
mixed fetch(
integer
$fetchStyle, integer
$cursorOrientation, integer
$cursorOffset
)
|
|
fetch
Parameters:
integer |
$fetchStyle: |
Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH |
integer |
$cursorOrientation: |
For a PDOStatement object representing a scrollable cursor, this value determines which row will be returned to the caller. This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your Doctrine_Adapter_Statement_Interface object, you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you prepare the SQL statement with Doctrine_Adapter_Interface->prepare(). |
integer |
$cursorOffset: |
For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies the absolute number of the row in the result set that shall be fetched. For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value specifies the row to fetch relative to the cursor position before Doctrine_Adapter_Statement_Interface->fetch() was called. |
API Tags:
See: | Doctrine::FETCH_* constants |
Access: | public |
void setFetchMode(
$mode
)
|
|
Parameters:
API Tags: