template as parameter since its not possible to chain multiple templates
This commit is contained in:
parent
ef39cf938d
commit
56561aa20d
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class phpdocumentor {
|
class phpdocumentor {
|
||||||
public static function run($inpath,$outpath,$cachepath,$ignore,$title,$sourcecode,$parseprivate){
|
public static function run($inpath,$outpath,$cachepath,$ignore,$title,$sourcecode,$parseprivate,$template='responsive-twig'){
|
||||||
$sourcecode_ = $sourcecode ? '--sourcecode' : '';
|
$sourcecode_ = $sourcecode ? '--sourcecode' : '';
|
||||||
$parseprivate_ = $parseprivate ? '--parseprivate' : '';
|
$parseprivate_ = $parseprivate ? '--parseprivate' : '';
|
||||||
$ignore_ = '';
|
$ignore_ = '';
|
||||||
@ -15,7 +15,7 @@ class phpdocumentor {
|
|||||||
$result = shell_exec('php5 '.dirname(__FILE__).'/phpDocumentor.phar run'.
|
$result = shell_exec('php5 '.dirname(__FILE__).'/phpDocumentor.phar run'.
|
||||||
' -d '.$inpath->SERVERPATH().
|
' -d '.$inpath->SERVERPATH().
|
||||||
' -t '.$outpath->SERVERPATH().
|
' -t '.$outpath->SERVERPATH().
|
||||||
' --template="responsive-twig" --template="xml"'.
|
' --template="'.$template.'"'.
|
||||||
' --cache-folder '.$cachepath->SERVERPATH().
|
' --cache-folder '.$cachepath->SERVERPATH().
|
||||||
' '.$ignore_.
|
' '.$ignore_.
|
||||||
' '.$sourcecode_.
|
' '.$sourcecode_.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user