#2 ignore paths, more infos

This commit is contained in:
Ulf Gebhardt 2016-03-04 19:19:27 +01:00
parent fe1c390942
commit 33be5be1b0

View File

@ -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'));