From: skodak Date: Sun, 1 Jun 2008 16:16:08 +0000 (+0000) Subject: MDL-14679 removed all instances of get_fieldset_select() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f36817104d87dd6f04724aa2144d2de64adad1d7;p=moodle.git MDL-14679 removed all instances of get_fieldset_select() --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 8223084bd8..aa9ed08eba 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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'); +} + diff --git a/lib/dmllib_todo.php b/lib/dmllib_todo.php index df03d15291..bc3d34ff20 100644 --- a/lib/dmllib_todo.php +++ b/lib/dmllib_todo.php @@ -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