#2 more options for phpdoc generation wrapper class

This commit is contained in:
Ulf Gebhardt 2016-03-04 17:44:15 +01:00
parent 3e9cbe234e
commit fe1c390942

View File

@ -1,6 +1,15 @@
<?php
class phpdocumentor {
public static function run($inpath,$outpath){
shell_exec(dirname(__FILE__).'/phpDocumentor.phar run -d '.$inpath.' -t '.$outpath);
public static function run($inpath,$outpath,$cachepath,$title,$sourcecode,$parseprivate){
$sourcecode_ = $sourcecode ? '--sourcecode ' : '';
$parseprivate_ = $parseprivate ? '--parseprivate ' : '';
new INFO(shell_exec(dirname(__FILE__).'/phpDocumentor.phar run'.
' -d '.$inpath.
' -t '.$outpath.
' --cache-folder '.$cachepath.
' '.$sourcecode_.
' '.$parseprivate_.
' --title "'.$title.'" 2>&1'));
return \SYSTEM\LOG\JsonResult::ok();
}
}