本文整理匯總了PHP中tree::change_child_order方法的典型用法代碼示例。如果您正苦於以下問題:PHP tree::change_child_order方法的具體用法?PHP tree::change_child_order怎麽用?PHP tree::change_child_order使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tree
的用法示例。
在下文中一共展示了tree::change_child_order方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: templateConfiguration
}
$gui->top_checked = 'checked=checked';
$gui->bottom_checked = '';
$gui->old_container = $the_tc_node['parent_id'];
// original container
$gui->array_container = $the_xx;
$gui->testcase_id = $args->tcase_id;
$gui->name = $tc_info[0]['name'];
$gui->tproject_id = $args->tproject_id;
$smarty->assign('gui', $gui);
$templateCfg = templateConfiguration('tcMove');
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
} else {
if ($args->do_move) {
$result = $tree_mgr->change_parent($args->tcase_id, $args->new_container_id);
$tree_mgr->change_child_order($args->new_container_id, $args->tcase_id, $args->target_position, $cfg->exclude_node_types);
$gui->refreshTree = $args->refreshTree;
$gui->modify_tc_rights = $_SESSION['currentUser']->hasRight($db, "mgt_modify_tc", $args->tproject_id);
// $tsuite_mgr->show($smarty,$args->tproject_id,$gui,$templateCfg->template_dir,$args->old_container_id);
$identity = new stdClass();
$identity->tproject_id = $args->tproject_id;
$identity->id = $args->old_container_id;
$tsuite_mgr->show($smarty, $gui, $identity);
} else {
if ($args->do_copy) {
$user_feedback = '';
$msg = '';
$options = array('check_duplicate_name' => config_get('check_names_for_duplicates'), 'action_on_duplicate_name' => config_get('action_on_duplicate_name'), 'copy_also' => $args->copy);
$result = $tcase_mgr->copy_to($args->tcase_id, $args->new_container_id, $args->user_id, $options);
$msg = $result['msg'];
if ($result['status_ok']) {