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