Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function convert($outdir, $item) |
||
15 | { |
||
16 | $rt = new CcForum(); |
||
17 | $title = $item['title']; |
||
18 | $rt->setTitle($title); |
||
19 | $text = $item['comment']; |
||
20 | $deps = null; |
||
21 | if (!empty($text)) { |
||
22 | $contextid = $item['source_id']; |
||
23 | $result = CcHelpers::processLinkedFiles($text, |
||
24 | $this->manifest, |
||
25 | $this->rootpath, |
||
26 | $contextid, |
||
27 | $outdir); |
||
28 | $textformat = 'text/html'; |
||
29 | $rt->setText($result[0], $textformat); |
||
30 | $deps = $result[1]; |
||
31 | } |
||
32 | $this->store($rt, $outdir, $title, $deps); |
||
33 | |||
34 | return true; |
||
35 | } |
||
37 |