本文整理汇总了PHP中testplan::update方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::update方法的具体用法?PHP testplan::update怎么用?PHP testplan::update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testplan
的用法示例。
在下文中一共展示了testplan::update方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: logAuditEvent
}
//unset the session test plan if it is deleted
if (isset($_SESSION['testplanID']) && ($_SESSION['testplanID'] = $args->tplan_id)) {
$_SESSION['testplanID'] = 0;
$_SESSION['testplanName'] = null;
}
break;
case 'do_update':
$of->Value = $args->notes;
$gui->testplan_name = $args->testplan_name;
$gui->is_active = $args->active == 'on' ? 1 : 0;
$gui->is_public = $args->is_public == 'on' ? 1 : 0;
$template = 'planEdit.tpl';
$status_ok = false;
if (!$name_exists || $name_id_rel_ok) {
if (!$tplan_mgr->update($args->tplan_id, $args->testplan_name, $args->notes, $args->active, $args->is_public)) {
$gui->user_feedback = lang_get('update_tp_failed1') . $gui->testplan_name . lang_get('update_tp_failed2') . ": " . $db->error_msg() . "<br />";
} else {
logAuditEvent(TLS("audit_testplan_saved", $args->tproject_name, $args->testplan_name), "SAVE", $args->tplan_id, "testplans");
$cf_map = $tplan_mgr->get_linked_cfields_at_design($args->tplan_id);
$tplan_mgr->cfield_mgr->design_values_to_db($_REQUEST, $args->tplan_id, $cf_map);
if (isset($_SESSION['testplanID']) && $args->tplan_id == $_SESSION['testplanID']) {
$_SESSION['testplanName'] = $args->testplan_name;
}
$status_ok = true;
$template = null;
}
} else {
$gui->user_feedback = lang_get("warning_duplicate_tplan_name");
}
if (!$status_ok) {