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));
    }
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));
    }
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 ) ) ; }
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
Returns all aliases that link to the given stored_file