コード例 #1
0
 public function install()
 {
     $strReturn = "";
     $objManager = new class_orm_schemamanager();
     //workflows workflow ---------------------------------------------------------------------
     $strReturn .= "Installing table workflows...\n";
     $objManager->createTable("class_module_workflows_workflow");
     $strReturn .= "Installing table workflows_handler...\n";
     $objManager->createTable("class_module_workflows_handler");
     //register the module
     $this->registerModule("workflows", _workflows_module_id_, "class_module_workflows_portal.php", "class_module_workflows_admin.php", $this->objMetadata->getStrVersion(), true);
     $strReturn .= "synchronizing list...\n";
     class_module_workflows_handler::synchronizeHandlerList();
     $strReturn .= "Generating and adding trigger-authkey...\n";
     $this->registerConstant("_workflows_trigger_authkey_", generateSystemid(), class_module_system_setting::$int_TYPE_STRING, _workflows_module_id_);
     return $strReturn;
 }
コード例 #2
0
 /**
  * Lists all handlers available to the system
  *
  * @return string
  * @autoTestable
  * @permissions right1
  */
 protected function actionListHandlers()
 {
     class_module_workflows_handler::synchronizeHandlerList();
     $strReturn = $this->objToolkit->formHeadline($this->getLang("action_list_handlers"));
     $objIterator = new class_array_section_iterator(class_module_workflows_handler::getObjectCount());
     $objIterator->setPageNumber($this->getParam("pv"));
     $objIterator->setArraySection(class_module_workflows_handler::getObjectList("", $objIterator->calculateStartPos(), $objIterator->calculateEndPos()));
     $strReturn .= $this->renderList($objIterator, false, self::STR_LIST_HANDLER);
     return $strReturn;
 }