public function process_question(array $data, array $raw) {

        // Convert and write the answers first.
        if (isset($data['answers'])) {
            $this->write_answers($data['answers'], $this->pluginname);
        }

        // Convert and write the shortanswer extra fields.
        foreach ($data['shortanswer'] as $shortanswer) {
            $shortanswer['id'] = $this->converter->get_nextid();
            $this->write_xml('shortanswer', $shortanswer, array('/shortanswer/id'));
        }
    }
public function process_question(array $data, array $raw) {

        // Convert and write the answers first.
        if (isset($data['answers'])) {
            $this->write_answers($data['answers'], $this->pluginname);
        }

        // Convert and write the shortanswer extra fields.
        foreach ($data['shortanswer'] as $shortanswer) {
            $shortanswer['id'] = $this->converter->get_nextid();
            $this->write_xml('shortanswer', $shortanswer, array('/shortanswer/id'));
        }
    }
public function process_question ( array $ data , array $ raw ) { // Convert and write the answers first. if ( isset ( $ data [ 'answers' ] ) ) { $ this -> write_answers ( $ data [ 'answers' ] , $ this -> pluginname ) ; } // Convert and write the shortanswer extra fields. foreach ( $ data [ 'shortanswer' ] as $ shortanswer ) { $ shortanswer [ 'id' ] = $ this -> converter -> get_nextid ( ) ; $ this -> write_xml ( 'shortanswer' , $ shortanswer , array ( '/shortanswer/id' ) ) ; } }
Appends the shortanswer specific information to the question
Appends the shortanswer specific information to the question