本文整理汇总了PHP中processMap::triggersList方法的典型用法代码示例。如果您正苦于以下问题:PHP processMap::triggersList方法的具体用法?PHP processMap::triggersList怎么用?PHP processMap::triggersList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类processMap
的用法示例。
在下文中一共展示了processMap::triggersList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Triggers
print $flag;
//print'krlos';return ;
} else {
try {
$oTrigger = new Triggers();
G::LoadClass('processMap');
$oProcessMap = new processMap(new DBConnection());
if (isset($_POST['form'])) {
$value = $_POST['form'];
} else {
$value = $_POST;
}
if ($value['TRI_UID'] != '') {
$oTrigger->load($value['TRI_UID']);
} else {
$oTrigger->create($value);
$value['TRI_UID'] = $oTrigger->getTriUid();
}
//print_r($_POST['form']);die;
$oTrigger->update($value);
if (!isset($_POST['mode'])) {
$oProcessMap->triggersList($value['PRO_UID']);
}
$result->success = true;
$result->msg = G::LoadTranslation('ID_TRIGGERS_SAVED');
} catch (Exception $e) {
$result->success = false;
$result->msg = $e->getMessage();
}
print G::json_encode($result);
}
示例2: trim
break;
default:
$option = is_numeric($aDataTriggers[$sOptionTrigger]) || is_bool($aDataTriggers[$sOptionTrigger]) ? trim($aDataTriggers[$sOptionTrigger]) : strstr($aDataTriggers[$sOptionTrigger], "array") ? trim($aDataTriggers[$sOptionTrigger]) : '"' . trim($aDataTriggers[$sOptionTrigger]) . '"';
break;
}
}
} else {
$option = "' '";
}
$methodParamsFinal[] = $option;
}
$i++;
}
$sPMfunction .= isset($aDataTriggers['TRI_ANSWER']) && $aDataTriggers['TRI_ANSWER'] != '' ? $aDataTriggers['TRI_ANSWER'] . " = " : "";
$sPMfunction .= $aDataTriggers['PMFUNTION_NAME'] . " (" . implode(",", $methodParamsFinal) . ");";
//Create Trigger
$aDataTriggers['TRI_WEBBOT'] = $sPMfunction;
$aDataTriggersParams = array();
$aDataTriggersParams['hash'] = G::encryptOld($sPMfunction);
$aDataTriggersParams['params'] = $aDataTriggers;
$aDataTriggers['TRI_PARAM'] = serialize($aDataTriggersParams);
//$oTrigger->create ( $aDataTriggers );
$aDataTriggerLoaded = $oTrigger->load($triUid);
//var_dump($aDataTriggerLoaded);
//die;
//Update Info
$aDataTriggers['TRI_UID'] = $oTrigger->getTriUid();
$oTrigger->update($aDataTriggers);
//Update Trigger Array
$oProcessMap->triggersList($aDataTriggers['PRO_UID']);
示例3:
$sOutput = $oProcessMap->saveTextPosition($oData->uid, $oData->position->x, $oData->position->y);
break;
case 'deleteText':
$sOutput = $oProcessMap->deleteText($oData->uid);
break;
case 'dynaforms':
$oProcessMap->dynaformsList($oData->pro_uid);
break;
case 'inputs':
$oProcessMap->inputdocsList($oData->pro_uid);
break;
case 'outputs':
$oProcessMap->outputdocsList($oData->pro_uid);
break;
case 'triggers':
$oProcessMap->triggersList($oData->pro_uid);
break;
case 'case_scheduler':
if (isset($_REQUEST['PRO_UID'])) {
$oProcessMap->caseSchedulerList($_REQUEST['PRO_UID']);
}
break;
case 'log_case_scheduler':
if (isset($_REQUEST['PRO_UID'])) {
$oProcessMap->logCaseSchedulerList($_REQUEST['PRO_UID']);
}
break;
case 'messages':
$oProcessMap->messagesList($oData->pro_uid);
break;
case 'reportTables':
示例4: triggersListTest
function triggersListTest($aTestData, $aFields)
{
$oProcessMap = new processMap();
try {
return $oProcessMap->triggersList($aFields['PRO_UID']);
} catch (Exception $oError) {
return $oError;
}
}