本文整理汇总了PHP中G::auditlog方法的典型用法代码示例。如果您正苦于以下问题:PHP G::auditlog方法的具体用法?PHP G::auditlog怎么用?PHP G::auditlog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类G
的用法示例。
在下文中一共展示了G::auditlog方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: template
break;
case 'deleteFile':
$oProcessMap->deleteFile($oData->pro_uid, $oData->main_directory, $oData->directory, $oData->file);
G::auditLog('ProcessFileManager','Delete template ('.$oData->main_directory.': '.$oData->file.') in process "'.$resultProcess['PRO_TITLE'].'"');
break;
case 'deleteDirectory':
$oProcessMap->deleteDirectory($oData->pro_uid, $oData->main_directory, $oData->directory, $oData->dir_to_delete);
break;
case 'downloadFile':
$oProcessMap->downloadFile($oData->pro_uid, $oData->main_directory, $oData->directory, $oData->file);
break;
case 'deleteSubProcess':
$oTaskNewPattern = new Task();
$taskInfo=$oTaskNewPattern->load($oData->tas_uid);
$titleTask=$taskInfo['TAS_TITLE'];
G::auditlog("DeleteSubProcess",'Delete Sub-Process -> '.$titleTask.' : '.$oData->tas_uid);
$sOutput = $oProcessMap->deleteSubProcess($oData->pro_uid, $oData->tas_uid);
break;
case 'subProcess_Properties':
$oProcessMap->subProcess_Properties($oData->pro_uid, $oData->tas_uid, $oData->index);
break;
case 'showDetailsPMDWL':
G::LoadClass('processes');
$oProcesses = new Processes();
$oProcesses->ws_open_public();
$aFields = get_object_vars($oProcesses->ws_processGetData($oData->pro_uid));
$aFields['description'] = nl2br($aFields['description']);
$aFields['installSteps'] = nl2br($aFields['installSteps']);
switch ($aFields['privacy']) {
case 'FREE':
示例2: switch
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
try {
global $RBAC;
switch ($RBAC->userCanAccess('PM_FACTORY')) {
case -2:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
case -1:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
}
require_once 'classes/model/Step.php';
$oStep = new Step();
$oStep->down($_POST['STEP_UID'], $_POST['TASK'], $_POST['STEP_POSITION']);
G::auditlog("StepDown", "Down the Step One Level -> " . $_POST['STEP_UID'] . ' In Task -> ' . $_POST['TASK'] . ' Step Position -> ' . $_POST['STEP_POSITION']);
G::LoadClass('processMap');
$oProcessMap = new ProcessMap();
$oProcessMap->getStepsCriteria($_POST['TASK']);
} catch (Exception $oException) {
die($oException->getMessage());
}
示例3: switch
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
try {
global $RBAC;
switch ($RBAC->userCanAccess('PM_FACTORY')) {
case -2:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
case -1:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
}
require_once 'classes/model/Step.php';
$oStep = new Step();
$oStep->reOrder($_POST['STEP_UID'], $_POST['STEP_POSITION']);
$oStep->remove($_POST['STEP_UID']);
G::auditlog("StepDelete", "Step Deleted -> " . $_POST['STEP_UID'] . ' In Task -> ' . $_POST['TASK'] . ' Step Position -> ' . $_POST['STEP_POSITION']);
G::LoadClass('processMap');
$oProcessMap = new ProcessMap();
$oProcessMap->getStepsCriteria($_POST['TASK']);
} catch (Exception $oException) {
die($oException->getMessage());
}
示例4: Tasks
echo $oTasks->assignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
G::auditlog("AssignGroupTask", "Assign a Group to a Task -> " . $_POST['TAS_UID'] . ' User UID -> ' . $_POST['USR_UID']);
break;
}
break;
case 'ofToAssign':
G::LoadClass('tasks');
$oTasks = new Tasks();
switch ((int) $_POST['TU_RELATION']) {
case 1:
echo $oTasks->ofToAssignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
G::auditlog("DeleteUserTask", " Delete a User from a Task -> " . $_POST['TAS_UID'] . ' User UID -> ' . $_POST['USR_UID']);
break;
case 2:
echo $oTasks->ofToAssignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
G::auditlog("DeleteGroupTask", "Delete a Group from a Task -> " . $_POST['TAS_UID'] . ' User UID -> ' . $_POST['USR_UID']);
break;
}
break;
case 'changeView':
$_SESSION['iType'] = $_POST['TU_TYPE'];
break;
case 'deleteGroup':
G::LoadClass('groups');
$oGroup = new Groups();
$oGroup->removeUserOfGroup($_POST['GRP_UID'], $_POST['USR_UID']);
$_GET['sUserUID'] = $_POST['USR_UID'];
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('view', 'users/users_Tree');
G::RenderPage('publish', 'raw');
break;
示例5: StepTrigger
$oStepTrigger->update(array('STEP_UID' => $aData['STEP_UID'], 'TAS_UID' => $_SESSION['TASK'], 'TRI_UID' => $aData['TRI_UID'], 'ST_TYPE' => $aData['ST_TYPE'], 'ST_CONDITION' => $aData['ST_CONDITION']));
break;
case 'upTrigger':
$aData['iPosition'] = (int) $aData['iPosition'];
G::auditlog("UpTrigger", "Up the Trigger One Level -> " . $aData['sStep'] . ' In Task -> ' . $_SESSION['TASK'] . ' Trigger Type -> ' . $aData['sType'] . ' Trigger Position -> ' . $aData['iPosition'] . ' Trigger UID -> ' . $aData['sTrigger']);
$oStepTrigger = new StepTrigger();
$oStepTrigger->up($aData['sStep'], $_SESSION['TASK'], $aData['sTrigger'], $aData['sType'], $aData['iPosition']);
break;
case 'downTrigger':
$aData['iPosition'] = (int) $aData['iPosition'];
G::auditlog("DownTrigger", "Down the Trigger One Level -> " . $aData['sStep'] . ' In Task -> ' . $_SESSION['TASK'] . ' Trigger Type -> ' . $aData['sType'] . ' Trigger Position -> ' . $aData['iPosition'] . ' Trigger UID -> ' . $aData['sTrigger']);
$oStepTrigger = new StepTrigger();
$oStepTrigger->down($aData['sStep'], $_SESSION['TASK'], $aData['sTrigger'], $aData['sType'], $aData['iPosition']);
break;
case 'ofToAssignTrigger':
G::auditlog("DeleteTrigger", "Delete Trigger from a Step -> " . $aData['sStep'] . ' In Task -> ' . $_SESSION['TASK'] . ' Trigger Type -> ' . $aData['sType'] . ' Trigger Position -> ' . $aData['iPosition'] . ' Trigger UID -> ' . $aData['sTrigger']);
$oStepTrigger = new StepTrigger();
$oStepTrigger->reOrder($aData['sStep'], $_SESSION['TASK'], $aData['sType'], $aData['iPosition']);
$oStepTrigger->remove($aData['sStep'], $_SESSION['TASK'], $aData['sTrigger'], $aData['sType']);
break;
case 'counterTriggers':
G::LoadClass("processMap");
$processMap = new ProcessMap();
$criteria1 = $processMap->getStepTriggersCriteria($aData["sStep"], $_SESSION["TASK"], $aData["sType"]);
$cantity = StepTriggerPeer::doCount($criteria1);
if ($aData["sStep"][0] != "-") {
if ($aData["sType"] == "BEFORE") {
$criteria2 = $processMap->getStepTriggersCriteria($aData["sStep"], $_SESSION["TASK"], "AFTER");
} else {
$criteria2 = $processMap->getStepTriggersCriteria($aData["sStep"], $_SESSION["TASK"], "BEFORE");
}
示例6: switch
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
try {
global $RBAC;
switch ($RBAC->userCanAccess('PM_FACTORY')) {
case -2:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
case -1:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
}
require_once 'classes/model/Step.php';
$oStep = new Step();
if (isset($_POST['form'])) {
$value = $_POST['form'];
} else {
$value = $_POST;
}
$oStep->update(array('STEP_UID' => $value['STEP_UID'], 'STEP_CONDITION' => $value['STEP_CONDITION']));
G::auditlog("NewConditionFromStep", "Save Condition From Step -> " . $value['STEP_UID'] . ' In Task -> ' . $value['TAS_UID'] . ' Condition -> ' . $value['STEP_CONDITION']);
G::LoadClass('processMap');
$oProcessMap = new ProcessMap();
$oProcessMap->getStepsCriteria($value['TAS_UID']);
} catch (Exception $oException) {
die($oException->getMessage());
}
示例7: switch
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
try {
global $RBAC;
switch ($RBAC->userCanAccess('PM_FACTORY')) {
case -2:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
case -1:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
}
require_once 'classes/model/Step.php';
$oStep = new Step();
$sStepUID = $oStep->create(array('PRO_UID' => $_POST['sProcess'], 'TAS_UID' => $_POST['sTask']));
$oStep->update(array('STEP_UID' => $sStepUID, 'STEP_TYPE_OBJ' => $_POST['sType'], 'STEP_UID_OBJ' => $_POST['sUID'], 'STEP_POSITION' => $oStep->getNextPosition($_POST['sTask']) - 1, 'STEP_MODE' => isset($_POST['sMode']) ? $_POST['sMode'] : 'EDIT'));
G::auditlog("SaveNewStep", "Save New Step -> " . $_POST['sUID'] . ' In Task -> ' . $_POST['sTask'] . ' Type Step -> ' . $_POST['sType']);
G::LoadClass('processMap');
$oProcessMap = new ProcessMap();
$oProcessMap->getStepsCriteria($_POST['sTask']);
} catch (Exception $oException) {
die($oException->getMessage());
}