Esempio n. 1
0
 public function convert($outdir)
 {
     $rt = new basicltil1_resurce_file();
     $title = $this->doc->nodeValue('/activity/basiclti/name');
     $rt->set_title($title);
     $rt->set_launch_url($this->doc->nodeValue('/activity/basiclti/toolurl'));
     $rt->set_launch_icon('');
     $rt->set_vendor_code($this->doc->nodeValue('/activity/basiclti/organizationid'));
     $rt->set_vendor_description($this->doc->nodeValue('/activity/basiclti/organizationdescr'));
     $rt->set_vendor_url($this->doc->nodeValue('/activity/basiclti/organizationurl'));
     $this->store($rt, $outdir, $title);
     return true;
 }
Esempio n. 2
0
 public function convert($outdir)
 {
     $rt = new basicltil1_resurce_file();
     $contextid = $this->doc->nodeValue('/activity/@contextid');
     $title = $this->doc->nodeValue('/activity/lti/name');
     $text = $this->doc->nodeValue('/activity/lti/intro');
     $rt->set_title($title);
     $result = cc_helpers::process_linked_files($text, $this->manifest, $this->rootpath, $contextid, $outdir);
     $rt->set_description($result[0]);
     $rt->set_launch_url($this->doc->nodeValue('/activity/lti/toolurl'));
     $rt->set_launch_icon('');
     $this->store($rt, $outdir, $title, $result[1]);
     return true;
 }