3 require_once
'Services/Database/interfaces/interface.ilDBStatement.php';
37 return $this->pdo_statement->fetch(PDO::FETCH_ASSOC);
39 return $this->pdo_statement->fetch(PDO::FETCH_OBJ);
41 throw new ilDatabaseException(
"No valid fetch mode given, choose ilDBConstants::FETCHMODE_ASSOC or ilDBConstants::FETCHMODE_OBJECT");
61 $this->pdo_statement->closeCursor();
70 return $this->pdo_statement->rowCount();
97 return $this->pdo_statement->rowCount();
106 $this->pdo_statement->execute($a_data);
116 return $this->pdo_statement->errorCode();
124 return $this->pdo_statement->errorInfo();
__construct(PDOStatement $pdo_statement)
Class ilPDOStatement is a Wrapper Class for PDOStatement.
fetch($fetch_mode=ilDBConstants::FETCHMODE_ASSOC)
Class ilDatabaseException.
closeCursor()
Pdo allows for a manual closing of the cursor.
fetchRow($fetch_mode=ilDBConstants::FETCHMODE_ASSOC)