protected function migrate_files($text, $component, $filearea, $itemid) {
        $context = $this->qbankhandler->get_current_category_context();
        $fileman = $this->qbankhandler->get_file_manager();
        $fileman->contextid = $context['contextid'];
        $fileman->component = $component;
        $fileman->filearea  = $filearea;
        $fileman->itemid    = $itemid;
        $text = moodle1_converter::migrate_referenced_files($text, $fileman);
        return $text;
    }
protected function migrate_files($text, $component, $filearea, $itemid) {
        $context = $this->qbankhandler->get_current_category_context();
        $fileman = $this->qbankhandler->get_file_manager();
        $fileman->contextid = $context['contextid'];
        $fileman->component = $component;
        $fileman->filearea  = $filearea;
        $fileman->itemid    = $itemid;
        $text = moodle1_converter::migrate_referenced_files($text, $fileman);
        return $text;
    }
protected function migrate_files ( $ text , $ component , $ filearea , $ itemid ) { $ context = $ this -> qbankhandler -> get_current_category_context ( ) ; $ fileman = $ this -> qbankhandler -> get_file_manager ( ) ; $ fileman -> contextid = $ context [ 'contextid' ] ; $ fileman -> component = $ component ; $ fileman -> filearea = $ filearea ; $ fileman -> itemid = $ itemid ; $ text = moodle1_converter :: migrate_referenced_files ( $ text , $ fileman ) ; return $ text ; }
Migrate files belonging to one qtype plugin text field.

@param array $text the html fragment containing references to files
@param string $component the component for restored files
@param string $filearea the file area for restored files
@param int $itemid the itemid for restored files

@return string the text for this field, after files references have been processed
Migrate files belonging to one qtype plugin text field .