#2 more options for phpdoc generation wrapper class
This commit is contained in:
parent
3e9cbe234e
commit
fe1c390942
@ -1,6 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
class phpdocumentor {
|
class phpdocumentor {
|
||||||
public static function run($inpath,$outpath){
|
public static function run($inpath,$outpath,$cachepath,$title,$sourcecode,$parseprivate){
|
||||||
shell_exec(dirname(__FILE__).'/phpDocumentor.phar run -d '.$inpath.' -t '.$outpath);
|
$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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user