Example #1
0
 public function on_generate_presentation()
 {
     parent::on_generate_presentation();
     $response_str = new cc_assesment_response_strtype();
     $response_fib = new cc_assesment_render_fibtype();
     $row_value = (int) $this->questions->nodeValue('plugin_qtype_essay_question//responsefieldlines', $this->question_node);
     $response_fib->set_rows($row_value);
     $response_str->set_render_fib($response_fib);
     $this->qpresentation->set_response_str($response_str);
 }
Example #2
0
 public function on_generate_presentation()
 {
     parent::on_generate_presentation();
     $response_str = new cc_assesment_response_strtype();
     $response_fib = new cc_assesment_render_fibtype();
     // The standard requires that only rows attribute must be set,
     // the rest may or may not be configured. For the sake of brevity we leave it empty.
     $response_fib->set_rows(1);
     $response_str->set_render_fib($response_fib);
     $this->qpresentation->set_response_str($response_str);
 }
Example #3
0
 public function generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)
 {
     $node = $doc->append_new_element_ns($item, $namespace, cc_qti_tags::presentation);
     $this->generate_attributes($doc, $node, $namespace);
     if (!empty($this->flow)) {
         $this->flow->generate($doc, $node, $namespace);
     }
     if (!empty($this->material) && empty($this->flow)) {
         $this->material->generate($doc, $node, $namespace);
     }
     if (!empty($this->response_lid) && empty($this->flow)) {
         $this->response_lid->generate($doc, $node, $namespace);
     }
     if (!empty($this->response_str) && empty($this->flow)) {
         $this->response_str->generate($doc, $node, $namespace);
     }
 }