original_string: public static function get_bulk($ids, $returnfields = 'id, name, rawname, tagcollid') {
          global $DB;
          $result = array();
          if (empty($ids)) {
              return $result;
          }
          list($sql, $params) = $DB->get_in_or_equal($ids);
          $records = $DB->get_records_select('tag', 'id '.$sql, $params, '', $returnfields);
          foreach ($records as $record) {
              $result[$record->id] = new static($record);
          }
          return $result;
      }
code: public static function get_bulk($ids, $returnfields = 'id, name, rawname, tagcollid') {
          global $DB;
          $result = array();
          if (empty($ids)) {
              return $result;
          }
          list($sql, $params) = $DB->get_in_or_equal($ids);
          $records = $DB->get_records_select('tag', 'id '.$sql, $params, '', $returnfields);
          foreach ($records as $record) {
              $result[$record->id] = new static($record);
          }
          return $result;
      }
code_tokens: public static function get_bulk ( $ ids , $ returnfields = 'id, name, rawname, tagcollid' ) { global $ DB ; $ result = array ( ) ; if ( empty ( $ ids ) ) { return $ result ; } list ( $ sql , $ params ) = $ DB -> get_in_or_equal ( $ ids ) ; $ records = $ DB -> get_records_select ( 'tag' , 'id ' . $ sql , $ params , '' , $ returnfields ) ; foreach ( $ records as $ record ) { $ result [ $ record -> id ] = new static ( $ record ) ; } return $ result ; }
docstring: Simple function to just return an array of tag objects by their ids
  
  @param    int[]  $ids
  @param    string $returnfields which fields do we want returned from table {tag}.
  Default value is 'id,name,rawname,tagcollid',
  specify '*' to include all fields.
  @return   core_tag_tag[] array of retrieved tags
docstring_tokens: Simple function to just return an array of tag objects by their ids