#2 more options for phpdoc generation wrapper class
This commit is contained in:
parent
3e9cbe234e
commit
fe1c390942
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user