FetchMode
Class defining the fetch mode for prepared statements
The values of the constants in this class match the PDO::FETCH_*
constants.
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Private constructor to prevent instantiation of this class
__construct() : mixed
since |
2.0.0 |
---|
Response
mixed
Constants
ASSOCIATIVE
Specifies that the fetch method shall return each row as an array indexed by column name as returned in the corresponding result set.
If the result set contains multiple columns with the same name, the statement returns only a single value per column name.
Value | 2 |
---|---|
since |
2.0.0 |
see | PDO::FETCH_ASSOC |
Type(s)
int
NUMERIC
Specifies that the fetch method shall return each row as an array indexed by column number as returned in the corresponding result set, starting at column 0.
Value | 3 |
---|---|
since |
2.0.0 |
see | PDO::FETCH_NUM |
Type(s)
int
MIXED
Specifies that the fetch method shall return each row as an array indexed by both column name and number as returned in the corresponding result set, starting at column 0.
Value | 4 |
---|---|
since |
2.0.0 |
see | PDO::FETCH_BOTH |
Type(s)
int
STANDARD_OBJECT
Specifies that the fetch method shall return each row as an object with property names that correspond to the column names returned in the result set.
Value | 5 |
---|---|
since |
2.0.0 |
see | PDO::FETCH_OBJ |
Type(s)
int
COLUMN
Specifies that the fetch method shall return only a single requested column from the next row in the result set.
Value | 7 |
---|---|
since |
2.0.0 |
see | PDO::FETCH_COLUMN |
Type(s)
int
CUSTOM_OBJECT
Specifies that the fetch method shall return a new instance of the requested class, mapping the columns to named properties in the class.
Value | 8 |
---|---|
since |
2.0.0 |
see | PDO::FETCH_CLASS |
Type(s)
int