. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ try { G::LoadClass ( 'tree' ); G::LoadClass ( 'triggerLibrary' ); $triggerLibrary = triggerLibrary::getSingleton (); $triggerLibraryO = $triggerLibrary->getRegisteredClasses (); $oTree = new Tree ( ); $oTree->nodeType = 'blank'; $oTree->name = 'Triggers'; $oTree->showSign = false; $oNode = & $oTree->addChild ( 'TRI_CUSTOM', '  
' . "  " .G::LoadTranslation('ID_CUSTOM_TRIGGER') . " 
".G::LoadTranslation('ID_CUSTOM_TRIGGER_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 = 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 = trim ( str_replace ( "*", "", implode ( " ", $methodObject->info ['description'] ) ) ); $oAux1 = & $oNode->addChild ( $keyLibrary . "-" . $methodName, '
' . " " . $methodLabel . ' (' . $methodName . ')' . '
' . $methodDescription . '
', array ('nodeType' => 'child' ) ); //$oAux1->plus = ""; //$oAux2 =& $oAux1->addChild($keyLibrary."-".$methodName."-desc", "$methodParameters", array('nodeType'=>'parent')); } } } echo $oTree->render (); } catch ( Exception $oException ) { die ( $oException->getMessage () ); } unset ( $_SESSION ['PROCESS'] ); ?>