php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
PDOStatement Class Reference
Inheritance diagram for PDOStatement:
IteratorAggregate Traversable

Public Member Functions

 bindColumn (string|int $column, mixed &$var, int $type=PDO::PARAM_STR, int $maxLength=0, mixed $driverOptions=null)
 
 bindParam (string|int $param, mixed &$var, int $type=PDO::PARAM_STR, int $maxLength=0, mixed $driverOptions=null)
 
 bindValue (string|int $param, mixed $value, int $type=PDO::PARAM_STR)
 
 closeCursor ()
 
 columnCount ()
 
 debugDumpParams ()
 
 errorCode ()
 
 errorInfo ()
 
 execute (?array $params=null)
 
 fetch (int $mode=PDO::FETCH_DEFAULT, int $cursorOrientation=PDO::FETCH_ORI_NEXT, int $cursorOffset=0)
 
 fetchAll (int $mode=PDO::FETCH_DEFAULT, mixed ... $args)
 
 fetchColumn (int $column=0)
 
 fetchObject (?string $class="stdClass", array $constructorArgs=[])
 
 getAttribute (int $name)
 
 getColumnMeta (int $column)
 
 nextRowset ()
 
 rowCount ()
 
 setAttribute (int $attribute, mixed $value)
 
 setFetchMode (int $mode, mixed ... $args)
 
 getIterator ()
 

Data Fields

string $queryString
 

Detailed Description

@generate-class-entries @not-serializable

Definition at line 6 of file pdo_stmt.stub.php.

Member Function Documentation

◆ bindColumn()

PDOStatement::bindColumn ( string|int $column,
mixed & $var,
int $type = PDO::PARAM_STR,
int $maxLength = 0,
mixed $driverOptions = null )

@tentative-return-type

Definition at line 11 of file pdo_stmt.stub.php.

◆ bindParam()

PDOStatement::bindParam ( string|int $param,
mixed & $var,
int $type = PDO::PARAM_STR,
int $maxLength = 0,
mixed $driverOptions = null )

@tentative-return-type

Definition at line 14 of file pdo_stmt.stub.php.

◆ bindValue()

PDOStatement::bindValue ( string|int $param,
mixed $value,
int $type = PDO::PARAM_STR )

@tentative-return-type

Definition at line 17 of file pdo_stmt.stub.php.

◆ closeCursor()

PDOStatement::closeCursor ( )

@tentative-return-type

Definition at line 20 of file pdo_stmt.stub.php.

◆ columnCount()

PDOStatement::columnCount ( )

@tentative-return-type

Definition at line 23 of file pdo_stmt.stub.php.

◆ debugDumpParams()

PDOStatement::debugDumpParams ( )

@tentative-return-type

Definition at line 26 of file pdo_stmt.stub.php.

◆ errorCode()

PDOStatement::errorCode ( )

@tentative-return-type

Definition at line 29 of file pdo_stmt.stub.php.

◆ errorInfo()

PDOStatement::errorInfo ( )

@tentative-return-type

Definition at line 32 of file pdo_stmt.stub.php.

◆ execute()

PDOStatement::execute ( ?array $params = null)

@tentative-return-type

Definition at line 35 of file pdo_stmt.stub.php.

◆ fetch()

PDOStatement::fetch ( int $mode = PDO::FETCH_DEFAULT,
int $cursorOrientation = PDO::FETCH_ORI_NEXT,
int $cursorOffset = 0 )

@tentative-return-type

Definition at line 38 of file pdo_stmt.stub.php.

◆ fetchAll()

PDOStatement::fetchAll ( int $mode = PDO::FETCH_DEFAULT,
mixed ... $args )

@tentative-return-type

Definition at line 41 of file pdo_stmt.stub.php.

◆ fetchColumn()

PDOStatement::fetchColumn ( int $column = 0)

@tentative-return-type

Definition at line 44 of file pdo_stmt.stub.php.

◆ fetchObject()

PDOStatement::fetchObject ( ?string $class = "stdClass",
array $constructorArgs = [] )

@tentative-return-type

Definition at line 47 of file pdo_stmt.stub.php.

◆ getAttribute()

PDOStatement::getAttribute ( int $name)

@tentative-return-type

Definition at line 50 of file pdo_stmt.stub.php.

◆ getColumnMeta()

PDOStatement::getColumnMeta ( int $column)

@tentative-return-type

Definition at line 53 of file pdo_stmt.stub.php.

◆ getIterator()

PDOStatement::getIterator ( )

@tentative-return-type

Implements IteratorAggregate.

Definition at line 67 of file pdo_stmt.stub.php.

◆ nextRowset()

PDOStatement::nextRowset ( )

@tentative-return-type

Definition at line 56 of file pdo_stmt.stub.php.

◆ rowCount()

PDOStatement::rowCount ( )

@tentative-return-type

Definition at line 59 of file pdo_stmt.stub.php.

◆ setAttribute()

PDOStatement::setAttribute ( int $attribute,
mixed $value )

@tentative-return-type

Definition at line 62 of file pdo_stmt.stub.php.

◆ setFetchMode()

PDOStatement::setFetchMode ( int $mode,
mixed ... $args )

@tentative-return-type

Definition at line 65 of file pdo_stmt.stub.php.

Field Documentation

◆ $queryString

string PDOStatement::$queryString

Definition at line 8 of file pdo_stmt.stub.php.


The documentation for this class was generated from the following file: