public function process_question(array $data, array $raw) {
        // Data added on the upgrade step 2011031000.
        $this->write_xml('essay', array(
            'id'                     => $this->converter->get_nextid(),
            'responseformat'         => 'editor',
            'responserequired'       => 1,
            'responsefieldlines'     => 15,
            'attachments'            => 0,
            'attachmentsrequired'    => 0,
            'graderinfo'             => '',
            'graderinfoformat'       => FORMAT_HTML,
            'responsetemplate'       => '',
            'responsetemplateformat' => FORMAT_HTML
        ), array('/essay/id'));
    }
public function process_question(array $data, array $raw) {
        // Data added on the upgrade step 2011031000.
        $this->write_xml('essay', array(
            'id'                     => $this->converter->get_nextid(),
            'responseformat'         => 'editor',
            'responserequired'       => 1,
            'responsefieldlines'     => 15,
            'attachments'            => 0,
            'attachmentsrequired'    => 0,
            'graderinfo'             => '',
            'graderinfoformat'       => FORMAT_HTML,
            'responsetemplate'       => '',
            'responsetemplateformat' => FORMAT_HTML
        ), array('/essay/id'));
    }
public function process_question ( array $ data , array $ raw ) { // Data added on the upgrade step 2011031000. $ this -> write_xml ( 'essay' , array ( 'id' => $ this -> converter -> get_nextid ( ) , 'responseformat' => 'editor' , 'responserequired' => 1 , 'responsefieldlines' => 15 , 'attachments' => 0 , 'attachmentsrequired' => 0 , 'graderinfo' => '' , 'graderinfoformat' => FORMAT_HTML , 'responsetemplate' => '' , 'responsetemplateformat' => FORMAT_HTML ) , array ( '/essay/id' ) ) ; }
Appends the essay specific information to the question
Appends the essay specific information to the question