original_string: public function get_references_by_storedfile(stored_file $storedfile) {
          global $DB;
  
          $params = array();
          $params['contextid'] = $storedfile->get_contextid();
          $params['component'] = $storedfile->get_component();
          $params['filearea']  = $storedfile->get_filearea();
          $params['itemid']    = $storedfile->get_itemid();
          $params['filename']  = $storedfile->get_filename();
          $params['filepath']  = $storedfile->get_filepath();
  
          return $this->search_references(self::pack_reference($params));
      }
code: public function get_references_by_storedfile(stored_file $storedfile) {
          global $DB;
  
          $params = array();
          $params['contextid'] = $storedfile->get_contextid();
          $params['component'] = $storedfile->get_component();
          $params['filearea']  = $storedfile->get_filearea();
          $params['itemid']    = $storedfile->get_itemid();
          $params['filename']  = $storedfile->get_filename();
          $params['filepath']  = $storedfile->get_filepath();
  
          return $this->search_references(self::pack_reference($params));
      }
code_tokens: public function get_references_by_storedfile ( stored_file $ storedfile ) { global $ DB ; $ params = array ( ) ; $ params [ 'contextid' ] = $ storedfile -> get_contextid ( ) ; $ params [ 'component' ] = $ storedfile -> get_component ( ) ; $ params [ 'filearea' ] = $ storedfile -> get_filearea ( ) ; $ params [ 'itemid' ] = $ storedfile -> get_itemid ( ) ; $ params [ 'filename' ] = $ storedfile -> get_filename ( ) ; $ params [ 'filepath' ] = $ storedfile -> get_filepath ( ) ; return $ this -> search_references ( self :: pack_reference ( $ params ) ) ; }
docstring: Returns all aliases that link to the given stored_file
  
  Aliases in user draft areas are excluded from the returned list.
  
  @param stored_file $storedfile
  @return array of stored_file
docstring_tokens: Returns all aliases that link to the given stored_file