35 return $this->pdo_statement->fetch(PDO::FETCH_ASSOC);
37 return $this->pdo_statement->fetch(PDO::FETCH_OBJ);
39 throw new ilDatabaseException(
"No valid fetch mode given, choose ilDBConstants::FETCHMODE_ASSOC or ilDBConstants::FETCHMODE_OBJECT");
59 $this->pdo_statement->closeCursor();
68 return $this->pdo_statement->rowCount();
95 return $this->pdo_statement->rowCount();
104 $this->pdo_statement->execute($a_data);
114 return $this->pdo_statement->errorCode();
122 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
closeCursor()
Pdo allows for a manual closing of the cursor.