Ejemplo n.º 1
0
 function pmosCommunityPlugin($sNamespace, $sFilename = null)
 {
     $res = parent::PMPlugin($sNamespace, $sFilename);
     $this->sFriendlyName = 'PMOS Community Plugin';
     $this->sDescription = 'Community Charts Plugin, with this plugin you can see many differents charts related to ProcessMaker Open Source Community';
     $this->sPluginFolder = 'pmosCommunity';
     $this->sSetupPage = 'setupPage';
     $this->iVersion = 0.45;
     $this->aWorkspaces = array('os');
     return $res;
 }
Ejemplo n.º 2
0
 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;
     return $res;
 }
Ejemplo n.º 3
0
 function openFlashPlugin($sNamespace, $sFilename = null)
 {
     $res = parent::PMPlugin($sNamespace, $sFilename);
     $this->sFriendlyName = 'openFlash Plugin';
     $this->sDescription = 'Charts Plugin, with this plugin you can see many differents charts using interactive flash charts for ProcessMaker';
     $this->sPluginFolder = 'openFlash';
     $this->sSetupPage = 'setupPage';
     $this->aWorkspaces = array();
     $this->aWorkspaces = array('dev');
     $this->iVersion = 0.45;
     return $res;
 }
Ejemplo n.º 4
0
Archivo: pm2qb.php Proyecto: rme/pm2qb
 public function pm2qbPlugin($sNamespace, $sFilename = null)
 {
     $res = parent::PMPlugin($sNamespace, $sFilename);
     $this->sFriendlyName = "pm2qb Plugin";
     $this->sDescription = "Autogenerated plugin for class pm2qb";
     $this->sPluginFolder = "pm2qb";
     $this->sSetupPage = "setup";
     $this->iVersion = 0.05;
     //$this->iPMVersion    = 2425;
     $this->aWorkspaces = array("workflow", "HSU");
     return $res;
 }
Ejemplo n.º 5
0
 function processTemplatePlugin($sNamespace, $sFilename = null)
 {
     $res = parent::PMPlugin($sNamespace, $sFilename);
     $this->sFriendlyName = 'Process Map Templates';
     $this->sDescription = 'This plugin includes various templates for quick and easy Process Map creation. Users can customize Process Maps based on pre-defined templates of common process designs (including Parallel, Dual Start Task, and Selection).';
     $this->sPluginFolder = 'processTemplate';
     $this->sSetupPage = null;
     $this->iVersion = 0.78;
     $this->bPrivate = true;
     $this->aWorkspaces = array('__');
     return $res;
 }
Ejemplo n.º 6
0
Archivo: er2.php Proyecto: rme/er2
  public function er2Plugin($sNamespace, $sFilename = null)
  {
    $res = parent::PMPlugin($sNamespace, $sFilename);
    $this->sFriendlyName = "er2 Plugin";
    $this->sDescription  = "Autogenerated plugin for class er2";
    $this->sPluginFolder = "er2";
    $this->sSetupPage    = "setup";
    $this->iVersion      = 0.17;
    //$this->iPMVersion    = 2425;
    $this->aWorkspaces   = array('workflow', 'HSU', 'HSUx');
    //$this->aWorkspaces = array("os");

    return $res;
  }
Ejemplo n.º 7
0
 function cas2Plugin($sNamespace, $sFilename = null)
 {
     $res = parent::PMPlugin($sNamespace, $sFilename);
     $this->sFriendlyName = 'CAS Plugin';
     $this->sDescription = 'CAS Plugin';
     $this->sPluginFolder = 'cas2';
     $this->sSetupPage = 'cas2';
     $this->iVersion = 0.06;
     //$this->iPMVersion    = 2425;
     $this->aWorkspaces = null;
     //$this->aWorkspaces = array('os');
     //SSO CAS
     define("PM_SINGLE_SIGN_ON", "cas2");
     $this->registerTrigger(PM_SINGLE_SIGN_ON, "metodillo");
     return $res;
 }
Ejemplo n.º 8
0
 public function enterprisePlugin($sNamespace, $sFilename = null)
 {
     $pathPluginTrunk = PATH_CORE . "enterprise";
     $VERSION = System::getVersion();
     $res = parent::PMPlugin($sNamespace, $sFilename);
     $this->sFriendlyName = "ProcessMaker Enterprise Core Edition";
     $this->sDescription = "ProcessMaker Enterprise Core Edition {$VERSION}";
     $this->sPluginFolder = "enterprise";
     $this->sSetupPage = "../enterprise/addonsStore.php";
     $this->iVersion = $VERSION;
     $this->iPMVersion = "2.0.31";
     $this->aDependences = null;
     $this->aWorkspaces = null;
     $this->database = "workflow";
     $this->table = array("ADDONS_STORE", "ADDONS_MANAGER", "LICENSE_MANAGER");
     if (!isset($_SESSION["__EE_INSTALLATION__"])) {
         $_SESSION["__EE_INSTALLATION__"] = 0;
     }
     if (!isset($_SESSION["__EE_SW_PMLICENSEMANAGER__"])) {
         $_SESSION["__EE_SW_PMLICENSEMANAGER__"] = 1;
     }
     $sw = 1;
     $msgf = null;
     $msgd = null;
     if (file_exists(PATH_CORE . "plugins" . PATH_SEP . "pmLicenseManager.php")) {
         $_SESSION["__EE_INSTALLATION__"] = 1;
         $_SESSION["__EE_SW_PMLICENSEMANAGER__"] = 0;
         $plugin = "pmLicenseManager";
         $this->pluginUninstall($plugin);
         if (file_exists(PATH_CORE . "plugins" . PATH_SEP . $plugin . ".php") || file_exists(PATH_CORE . "plugins" . PATH_SEP . $plugin)) {
             $msgf = $msgf . ($msgf != null ? ", " : null) . $plugin . ".php";
             $msgd = $msgd . ($msgd != null ? ", " : null) . $plugin;
             $sw = 0;
         }
         $plugin = "enterprise";
         $this->pluginUninstall($plugin);
         if (file_exists(PATH_CORE . "plugins" . PATH_SEP . $plugin . ".php") || file_exists(PATH_CORE . "plugins" . PATH_SEP . $plugin)) {
             $msgf = $msgf . ($msgf != null ? ", " : null) . $plugin . ".php";
             $msgd = $msgd . ($msgd != null ? ", " : null) . $plugin;
             $sw = 0;
         }
         $this->uninstall();
     } else {
         $_SESSION["__EE_INSTALLATION__"] = $_SESSION["__EE_INSTALLATION__"] + 1;
     }
     if ($sw == 0) {
         unset($_SESSION["__EE_INSTALLATION__"]);
         unset($_SESSION["__EE_SW_PMLICENSEMANAGER__"]);
         ///////
         $js = "window.open(\"/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/setup/main?s=PLUGINS\", \"_top\", \"\");";
         if (substr(SYS_SKIN, 0, 2) == "ux" && SYS_SKIN != "uxs") {
             //$js = "parent.window.location.href = \"/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/setup/main_init?s=PLUGINS\";";
             //$js = "window.location.href = \"/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/setup/pluginsImport\";";
             $js = "window.open(\"/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/main\", \"_top\", \"\");";
         }
         ///////
         G::SendMessageText("ProcessMaker Enterprise plug-in can't delete the files \"{$msgf}\" and directories \"{$msgd}\" of \"" . (PATH_CORE . "plugins") . "\". Before proceeding with the installation of the plug-in must remove them.", "INFO");
         echo "<script type=\"text/javascript\">" . $js . "</script>";
         exit(0);
     }
     if ($_SESSION["__EE_SW_PMLICENSEMANAGER__"] == 0 && $_SESSION["__EE_INSTALLATION__"] == 2) {
         unset($_SESSION["__EE_INSTALLATION__"]);
         unset($_SESSION["__EE_SW_PMLICENSEMANAGER__"]);
         $this->install();
     }
     ///////
     return $res;
 }