File size: 782 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
  
 class chartsPlugin extends PMPlugin 
 {
    function chartsPlugin($sNamespace, $sFilename = null) 
    {
        $res = parent::PMPlugin($sNamespace, $sFilename);
        $this->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;
    }

    function setup()
    {
      $this->registerTrigger( 10000, 'createCaseFolder' );
    }

    function install()
    {
      
    }
  }

 $oPluginRegistry =& PMPluginRegistry::getSingleton();
 $oPluginRegistry->registerPlugin('charts', __FILE__);