Example #1
0
 public function option_docbook($k, $v)
 {
     if (is_array($v)) {
         trigger_error("Can only parse one file at a time", E_USER_ERROR);
     }
     if (!file_exists($v) || is_dir($v) || !is_readable($v)) {
         trigger_error(sprintf("'%s' is not a readable docbook file", $v), E_USER_ERROR);
     }
     Config::set_xml_root(dirname($v));
     Config::set_xml_file($v);
     Config::set_sample_code_root(dirname($v) . "/../sample-code/");
 }