Ejemplo n.º 1
0
 /**
  * Convert the rST file to confluence markup
  *
  * @return string Confluence markup
  */
 public function convertRst()
 {
     $doc = file_get_contents($this->file);
     $doc = $this->runFilter('preFilter', $doc);
     list($rcDoc, $retval) = Exec::runPipe($this->cmd['rst2c'] . ' --excerpt', $doc);
     if ($retval !== 0) {
         throw new Exception('Error converting rst to confluence format', 20);
     }
     return $this->runFilter('postFilter', $rcDoc);
 }