original_string: public static function get_instance_fields_data(array $fields, int $instanceid, bool $adddefaults = true) : array {
          return self::get_instances_fields_data($fields, [$instanceid], $adddefaults)[$instanceid];
      }
code: public static function get_instance_fields_data(array $fields, int $instanceid, bool $adddefaults = true) : array {
          return self::get_instances_fields_data($fields, [$instanceid], $adddefaults)[$instanceid];
      }
code_tokens: public static function get_instance_fields_data ( array $ fields , int $ instanceid , bool $ adddefaults = true ) : array { return self :: get_instances_fields_data ( $ fields , [ $ instanceid ] , $ adddefaults ) [ $ instanceid ] ; }
docstring: For the given instance and list of fields fields retrieves data associated with them
  
  @param field_controller[] $fields list of fields indexed by field id
  @param int $instanceid
  @param bool $adddefaults
  @return data_controller[] array of data_controller objects indexed by fieldid. All fields are present,
  some data_controller objects may have 'id', some not
  If ($adddefaults): All fieldids are present, some data_controller objects may have 'id', some not.
  If (!$adddefaults): Only fieldids with data are present, all data_controller objects have 'id'.
docstring_tokens: For the given instance and list of fields fields retrieves data associated with them