. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ try { $triggerLibrary = TriggerLibrary::getSingleton(); $triggerLibraryO = $triggerLibrary->getRegisteredClasses(); $oTree = new PmTree(); $oTree->nodeType = "blank"; $oTree->name = "Triggers"; $oTree->showSign = false; $div1Style = (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE") !== false) ? " style=\"margin-top: 0.65em;\"" : null; $oNode = $oTree->addChild("TRI_CUSTOM", "\"\"  " . G::LoadTranslation("ID_CUSTOM_TRIGGER") . "
" . G::LoadTranslation("ID_CUSTOM_TRIGGER_DESCRIPTION") . "", array("nodeType" => "parent")); $oNode = $oTree->addChild("TRI_COPY", "
\"\"  " . G::LoadTranslation("ID_TRIGGER_COPY_OPTION") . "
" . G::LoadTranslation("ID_TRIGGER_COPY_OPTION_DESCRIPTION") . "
", array("nodeType" => "parent")); $triggerLibraryOCount = count($triggerLibraryO); foreach ($triggerLibraryO as $keyLibrary => $libraryObj) { $libraryName = $libraryObj->info["name"]; $libraryIcon = (isset($libraryObj->info["icon"]) && ($libraryObj->info["icon"] != "")) ? $libraryObj->info["icon"] : "/images/browse.gif"; $libraryDescription = ""; if (isset($libraryObj->info["description"])) { $libraryDescription = trim(str_replace("*", "", implode(" ", $libraryObj->info["description"]))); } $triggerCount = count($libraryObj->methods); if ($triggerCount > 0) { //Sort alpha ksort($libraryObj->methods, SORT_STRING); //Now the Triggers //Library Father (Name + Description) $oNode = $oTree->addChild($keyLibrary, "  
\"\"  " . $libraryName . " ($triggerCount)
$libraryDescription
", array("nodeType" => "parent")); $oNode->contracted = ($triggerLibraryOCount == 1) ? false : true; //Library Childs (available methods) foreach ($libraryObj->methods as $methodName => $methodObject) { $methodName = $methodObject->info["name"]; $methodLabel = $methodObject->info["label"]; $methodDescription = ""; if (isset($libraryObj->info["description"])) { $methodDescription = trim(str_replace("*", "", implode(" ", $methodObject->info["description"]))); } $oAux1 = $oNode->addChild($keyLibrary . "-" . $methodName, "
" . $methodLabel . " (" . $methodName . ")
" . $methodDescription . "
", array("nodeType" => "child")); } } } echo $oTree->render(); } catch (Exception $e) { $token = strtotime("now"); PMException::registerErrorLog($e, $token); G::outRes(G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token))); die; } unset($_SESSION["PROCESS"]);