original_string: public function get_fieldset_select($table, $return, $select, array $params=null) {
          if ($select) {
              $select = "WHERE $select";
          }
          return $this->get_fieldset_sql("SELECT $return FROM {" . $table . "} $select", $params);
      }
code: public function get_fieldset_select($table, $return, $select, array $params=null) {
          if ($select) {
              $select = "WHERE $select";
          }
          return $this->get_fieldset_sql("SELECT $return FROM {" . $table . "} $select", $params);
      }
code_tokens: public function get_fieldset_select ( $ table , $ return , $ select , array $ params = null ) { if ( $ select ) { $ select = "WHERE $select" ; } return $ this -> get_fieldset_sql ( "SELECT $return FROM {" . $ table . "} $select" , $ params ) ; }
docstring: Selects records and return values of chosen field as an array which match a particular WHERE clause.
  
  @param string $table the table to query.
  @param string $return the field we are intered in
  @param string $select A fragment of SQL to be used in a where clause in the SQL call.
  @param array $params array of sql parameters
  @return array of values
  @throws dml_exception A DML specific exception is thrown for any errors.
docstring_tokens: Selects records and return values of chosen field as an array which match a particular WHERE clause .