#2 ignore paths, more infos
This commit is contained in:
parent
fe1c390942
commit
33be5be1b0
@ -1,12 +1,26 @@
|
||||
<?php
|
||||
class phpdocumentor {
|
||||
public static function run($inpath,$outpath,$cachepath,$title,$sourcecode,$parseprivate){
|
||||
public static function run($inpath,$outpath,$cachepath,$ignore,$title,$sourcecode,$parseprivate){
|
||||
$sourcecode_ = $sourcecode ? '--sourcecode ' : '';
|
||||
$parseprivate_ = $parseprivate ? '--parseprivate ' : '';
|
||||
$ignore_ = '';
|
||||
foreach($ignore as $path){
|
||||
$ignore_ .= $path.',';}
|
||||
if($ignore_ != ''){
|
||||
$ignore_ = '--ignore '.rtrim($ignore_, ',');}
|
||||
new INFO(dirname(__FILE__).'/phpDocumentor.phar run'.
|
||||
' -d '.$inpath->SERVERPATH().
|
||||
' -t '.$outpath->SERVERPATH().
|
||||
' --cache-folder '.$cachepath->SERVERPATH().
|
||||
' '.$ignore_.
|
||||
' '.$sourcecode_.
|
||||
' '.$parseprivate_.
|
||||
' --title "'.$title.'" 2>&1');
|
||||
new INFO(shell_exec(dirname(__FILE__).'/phpDocumentor.phar run'.
|
||||
' -d '.$inpath.
|
||||
' -t '.$outpath.
|
||||
' --cache-folder '.$cachepath.
|
||||
' -d '.$inpath->SERVERPATH().
|
||||
' -t '.$outpath->SERVERPATH().
|
||||
' --cache-folder '.$cachepath->SERVERPATH().
|
||||
' '.$ignore_.
|
||||
' '.$sourcecode_.
|
||||
' '.$parseprivate_.
|
||||
' --title "'.$title.'" 2>&1'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user