]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 removed all instances of get_fieldset_select()
authorskodak <skodak>
Sun, 1 Jun 2008 16:16:08 +0000 (16:16 +0000)
committerskodak <skodak>
Sun, 1 Jun 2008 16:16:08 +0000 (16:16 +0000)
lib/dmllib.php
lib/dmllib_todo.php

index 8223084bd83ae56ac7ee9d7a92afc88d888625dd..aa9ed08ebaabd1c5bffe8ddc466a6dc7bc93992f 100644 (file)
@@ -456,3 +456,7 @@ function set_field_select($table, $newfield, $newvalue, $select, $localcall = fa
     error('set_field_select() removed');
 }
 
+function get_fieldset_select($table, $return, $select) {
+    error('get_fieldset_select() removed');
+}
+
index df03d15291415300c4633ed32e13aa17e4af513a..bc3d34ff2085b404041d9d4ce22c843f16747a6a 100644 (file)
@@ -662,23 +662,6 @@ function get_field_sql($sql) {
     }
 }
 
-/**
- * Get a single value from a table row where a particular select clause is true.
- *
- * @uses $CFG
- * @param string $table the table to query.
- * @param string $return the field to return the value of.
- * @param string $select A fragment of SQL to be used in a where clause in the SQL call.
- * @return mixed|false Returns the value return from the SQL statment or false if an error occured.
- */
-function get_fieldset_select($table, $return, $select) {
-    global $CFG;
-    if ($select) {
-        $select = ' WHERE '. $select;
-    }
-    return get_fieldset_sql('SELECT ' . $return . ' FROM ' . $CFG->prefix . $table . $select);
-}
-
 /**
  * Get an array of data from one or more fields from a database
  * use to get a column, or a series of distinct values