BUG 0000 adding a missing folder workflow/engine/bin/plugins

This commit is contained in:
Erik Amaru Ortiz
2011-05-26 15:39:08 -04:00
parent 9f5b3fe65e
commit 4aec62825b
3 changed files with 23 additions and 18 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
.gitignore
nbproject
workflow/engine/config/paths_installed.php
gulliver/thirdparty/html2ps_pdf/cache

View File

@@ -243,24 +243,29 @@ function executePlugins(){
global $sFilter;
if($sFilter!='' && strpos($sFilter, 'plugins') === false) return false;
$pathCronPlugins = PATH_CORE.'bin'.PATH_SEP.'plugins'.PATH_SEP;
if ($handle = opendir( $pathCronPlugins )) {
while ( false !== ($file = readdir($handle))) {
if ( strpos($file, '.php',1) && is_file($pathCronPlugins . $file) ) {
$pathCronPlugins = PATH_CORE.'bin'.PATH_SEP.'plugins'.PATH_SEP;
$filename = str_replace('.php' , '', $file) ;
$className = $filename . 'ClassCron';
//erik: verify if the plugin dir exists
if (!is_dir($pathCronPlugins)) {
return false;
}
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
$oPlugin = new $className();
if (method_exists($oPlugin, 'executeCron')) {
$oPlugin->executeCron();
setExecutionMessage("Executing Pentaho Reports Plugin");
setExecutionResultMessage('DONE');
}
}
}
}
if ($handle = opendir( $pathCronPlugins )) {
while ( false !== ($file = readdir($handle))) {
if ( strpos($file, '.php',1) && is_file($pathCronPlugins . $file) ) {
$filename = str_replace('.php' , '', $file) ;
$className = $filename . 'ClassCron';
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
$oPlugin = new $className();
if (method_exists($oPlugin, 'executeCron')) {
$oPlugin->executeCron();
setExecutionMessage("Executing Pentaho Reports Plugin");
setExecutionResultMessage('DONE');
}
}
}
}
}
function calculateDuration() {
global $sFilter;

View File

@@ -0,0 +1 @@
#some files to ignore