本文整理汇总了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']) {