3 require_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();
__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)