diff --git a/config/deprecatedFiles.lst b/config/deprecatedFiles.lst index 9b2584e75..17af863d0 100644 --- a/config/deprecatedFiles.lst +++ b/config/deprecatedFiles.lst @@ -82,6 +82,11 @@ workflow/engine/methods/setup/webServices.php workflow/engine/methods/setup/webServicesAjax.php workflow/engine/methods/setup/webServicesList.php workflow/engine/methods/users/data_usersList.php +workflow/engine/plugins/charts.php +workflow/engine/plugins/charts/class.charts.php +workflow/engine/plugins/charts/config/setup.conf +workflow/engine/plugins/charts/genericCharts.php +workflow/engine/plugins/charts/setupPage.xml workflow/engine/plugins/openFlash.php workflow/engine/plugins/openFlash/chart-data.php workflow/engine/plugins/openFlash/chart.php diff --git a/workflow/engine/plugins/charts.php b/workflow/engine/plugins/charts.php deleted file mode 100644 index 4d790e270..000000000 --- a/workflow/engine/plugins/charts.php +++ /dev/null @@ -1,29 +0,0 @@ -sFriendlyName = 'Charts Plugin'; - $this->sDescription = 'This plugin shows generic charts for ProcessMaker'; - $this->sPluginFolder = 'charts'; - $this->sSetupPage = 'setupPage'; - $this->aWorkspaces = array( ); - $this->iVersion = 0.45; - $this->bPrivate = true; - return $res; - } - - public function setup() - { - $this->registerTrigger(10000, 'createCaseFolder'); - } - - public function install() - { - } - } - - $oPluginRegistry = PMPluginRegistry::getSingleton(); - $oPluginRegistry->registerPlugin('charts', __FILE__); diff --git a/workflow/engine/plugins/charts/class.charts.php b/workflow/engine/plugins/charts/class.charts.php deleted file mode 100644 index 295871341..000000000 --- a/workflow/engine/plugins/charts/class.charts.php +++ /dev/null @@ -1,106 +0,0 @@ -sPluginFolder . PATH_SEP . 'config' . PATH_SEP . 'setup.conf'; - if ( !file_exists( dirname($fileConf) ) ) - throw ( new Exception ("The directory " . dirname($fileConf) . " doesn't exist." ) ); - - if ( file_exists ( $fileConf ) && !is_writable( $fileConf ) ) - throw ( new Exception ("The file $fileConf doesn't exist or this file is not writable." ) ); - - if ( file_exists ( $fileConf ) ) { - $content = file_get_contents ( $fileConf); - $fields = unserialize ($content); - } - else - $fields = array(); - return $fields; - } - - function updateFieldsForPageSetup ( $oData) { - $content = serialize ($oData['form']); - $fileConf = PATH_PLUGINS . $this->sPluginFolder . PATH_SEP . 'config' . PATH_SEP . 'setup.conf'; - if ( !is_writable( dirname($fileConf) ) ) - throw ( new Exception ("The directory " . dirname($fileConf) . " doesn't exist or this directory is not writable." ) ); - - if ( file_exists ( $fileConf ) && !is_writable( $fileConf ) ) - throw ( new Exception ("The file $fileConf doesn't exist or this file is not writable." ) ); - - file_put_contents ( $fileConf, $content); - return true; - } - - function setup() { - } - - function getDatasetCasesByStatus ( ) { - $dataSet = new XYDataSet(); - - $c = new Criteria('workflow'); - $c->clearSelectColumns(); - $c->addSelectColumn ( ApplicationPeer::APP_STATUS ); - $c->addSelectColumn ( 'COUNT(*) AS CANT') ; - $c->addGroupByColumn(ApplicationPeer::APP_STATUS); - $rs = ApplicationPeer::doSelectRS( $c ); - $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC); - $rs->next(); - $row = $rs->getRow(); - while ( is_array ( $row ) ) { - $label = $row['APP_STATUS']; - $value = $row['CANT']; - $dataSet->addPoint(new Point($label , (int)$value ) ); - $rs->next(); - $row = $rs->getRow(); - } - return $dataSet; - } - - //we are trying to obtain the process title thru the long way, using the process object. - //there is a short way, if you use a more complex query joining Content Table. - function getDatasetCasesByProcess ( ) { - $dataSet = new XYDataSet(); - $processObj = new Process; - - $c = new Criteria('workflow'); - $c->clearSelectColumns(); - $c->addSelectColumn ( ApplicationPeer::PRO_UID ); - $c->addSelectColumn ( 'COUNT(*) AS CANT') ; - //$c->addJoin( ProcessPeer::PRO_UID, ProcessPeer::PRO_UID, Criteria::LEFT_JOIN); - $c->addGroupByColumn(ApplicationPeer::PRO_UID); - $rs = ApplicationPeer::doSelectRS( $c ); - $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC); - $rs->next(); - $row = $rs->getRow(); - while ( is_array ( $row ) ) { - $processObj->load ( $row['PRO_UID'] ); - $label = $processObj->getProTitle(); - $value = $row['CANT']; - $dataSet->addPoint(new Point($label , (int)$value) ); - $rs->next(); - $row = $rs->getRow(); - } - return $dataSet; - } - - } diff --git a/workflow/engine/plugins/charts/config/setup.conf b/workflow/engine/plugins/charts/config/setup.conf deleted file mode 100644 index 70cf5bfbf..000000000 --- a/workflow/engine/plugins/charts/config/setup.conf +++ /dev/null @@ -1 +0,0 @@ -a:1:{s:6:"ACCEPT";s:4:"Save";} \ No newline at end of file diff --git a/workflow/engine/plugins/charts/genericCharts.php b/workflow/engine/plugins/charts/genericCharts.php deleted file mode 100644 index 837b46f3a..000000000 --- a/workflow/engine/plugins/charts/genericCharts.php +++ /dev/null @@ -1,60 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - //if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response; - - require_once ( "class.charts.php" ); - - - - - header("Content-type: image/png"); - //type of chart, pie, vertical bar, horizontal, etc. - $type = isset ( $_GET['type']) ? $_GET['type'] : '1' ; - $chartType = isset ( $_GET['chart']) ? $_GET['chart'] : '1' ; - $user = isset ( $_GET['user']) ? $_GET['user'] : $_SESSION['USER_LOGGED'] ; - $chartsObj = new chartsClass(); - - //$chart = new PieChart(450,300); - switch ( $type ) { - case '1' : - $chart = new VerticalBarChart(430, 280); break; - case '2' : - $chart = new HorizontalBarChart(430, 200); break; - case '3' : - $chart = new LineChart(430, 280); break; - case '4' : - $chart = new PieChart(430, 200 ); break; - } - - switch ( $chartType ) { - case '1' : - $dataSet = $chartsObj->getDatasetCasesByStatus(); break; - default : - $dataSet = $chartsObj->getDatasetCasesByProcess(); break; - } - $chart->setDataSet($dataSet); - $chart->setTitle( "Cases list" ); - $chart->render(); - diff --git a/workflow/engine/plugins/charts/setupPage.xml b/workflow/engine/plugins/charts/setupPage.xml deleted file mode 100644 index 9e6c83779..000000000 --- a/workflow/engine/plugins/charts/setupPage.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - <en>About charts Plugin</en> - - - - This is the Charts Plugin, with this plugin you can see many differents charts - - - - - Save - - \ No newline at end of file