3require_once
'Services/Database/interfaces/interface.ilDBStatement.php';
34 return $this->pdo_statement->fetch(PDO::FETCH_ASSOC);
36 return $this->pdo_statement->fetch(PDO::FETCH_OBJ);
38 throw new ilDatabaseException(
"No valid fetch mode given, choose ilDBConstants::FETCHMODE_ASSOC or ilDBConstants::FETCHMODE_OBJECT");
56 $this->pdo_statement->closeCursor();
64 return $this->pdo_statement->rowCount();
88 return $this->pdo_statement->rowCount();
96 $this->pdo_statement->execute($a_data);
105 return $this->pdo_statement->errorCode();
112 return $this->pdo_statement->errorInfo();
An exception for terminatinating execution or to throw for unit testing.
Class ilDatabaseException.
Class ilPDOStatement is a Wrapper Class for PDOStatement.
fetchRow($fetch_mode=ilDBConstants::FETCHMODE_ASSOC)
__construct(PDOStatement $pdo_statement)
fetch($fetch_mode=ilDBConstants::FETCHMODE_ASSOC)
execute($a_data=null)
\ilPDOStatement|\MDB2_Result_Common
closeCursor()
Pdo allows for a manual closing of the cursor.