IPreparedStatement¶
-
interface
OCP\DB\
IPreparedStatement
¶ Implemented by: OC\DB\PreparedStatement
Source: lib/public/DB/IPreparedStatement.php#35
Methods¶
-
public
OCP\DB\IPreparedStatement::
closeCursor
()¶ Source: lib/public/DB/IPreparedStatement.php#43 Returns: bool Since: 21.0.0 Deprecated: 21.0.0 use \OCP\DB\IResult::closeCursor on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare
-
public
OCP\DB\IPreparedStatement::
fetch
($fetchMode=\PDO::FETCH_ASSOC)¶ Source: Parameters: - $fetchMode (int)
Returns: mixed
Since: 21.0.0
Deprecated: 21.0.0 use \OCP\DB\IResult::fetch on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare
-
public
OCP\DB\IPreparedStatement::
fetchAll
($fetchMode=\PDO::FETCH_ASSOC)¶ Source: Parameters: - $fetchMode (int)
Returns: array
Since: 21.0.0
Deprecated: 21.0.0 use \OCP\DB\IResult::fetchAll on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare
-
public
OCP\DB\IPreparedStatement::
fetchColumn
()¶ Source: lib/public/DB/IPreparedStatement.php#71 Returns: mixed Since: 21.0.0 Deprecated: 21.0.0 use \OCP\DB\IResult::fetchColumn on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare
-
public
OCP\DB\IPreparedStatement::
fetchOne
()¶ Source: lib/public/DB/IPreparedStatement.php#79 Returns: mixed Since: 21.0.0 Deprecated: 21.0.0 use \OCP\DB\IResult::fetchOne on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare
-
public
OCP\DB\IPreparedStatement::
bindValue
($param, $value, $type=\Doctrine\DBAL\ParameterType::STRING)¶ Source: Parameters: - $param (int | string)
- $value (mixed)
- $type (int)
Returns: bool
Throws: \Doctrine\DBAL\Exception
Since: 21.0.0
-
public
OCP\DB\IPreparedStatement::
bindParam
($param, &$variable, $type=\Doctrine\DBAL\ParameterType::STRING, $length=null)¶ Source: Parameters: - $param (int | string)
- $variable (mixed)
- $type (int)
- $length (int | null)
Returns: bool
Throws: \Doctrine\DBAL\Exception
Since: 21.0.0
-
public
OCP\DB\IPreparedStatement::
execute
($params=null)¶ Source: Parameters: - $params (array | null)
Returns: Since: 21.0.0
Throws: \Doctrine\DBAL\Exception
-
public
OCP\DB\IPreparedStatement::
rowCount
()¶ Source: lib/public/DB/IPreparedStatement.php#126 Returns: int Since: 21.0.0 Throws: \Doctrine\DBAL\Exception
Deprecated: 21.0.0 use \OCP\DB\IResult::rowCount on the \OCP\DB\IResult returned by \OCP\IDBConnection::prepare