]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11432 rs->EOF wrapper function
authorskodak <skodak>
Wed, 10 Oct 2007 09:21:13 +0000 (09:21 +0000)
committerskodak <skodak>
Wed, 10 Oct 2007 09:21:13 +0000 (09:21 +0000)
lib/dmllib.php

index 0cbb24f1156ec4dfe39b750ec2917d9058bd0a46..29051daafe4416d2af3fbd70ff6879d4eb3f19c9 100644 (file)
@@ -813,6 +813,15 @@ function rs_fetch_next_record(&$rs) {
     return $rec;
 }
 
+/**
+ * Returns true if no more records found
+ * @param ADORecordSet the recordset
+ * @return bool
+ */
+function rs_EOF($rs) {
+    return $rs->EOF;
+}
+
 /**
  * This function closes the recordset, freeing all the memory and associated resources.
  * Note that, once closed, the recordset must not be used anymore along the request.