当前位置: 首页>>代码示例>>PHP>>正文


PHP testplan::getAttachmentTableName方法代码示例

本文整理汇总了PHP中testplan::getAttachmentTableName方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::getAttachmentTableName方法的具体用法?PHP testplan::getAttachmentTableName怎么用?PHP testplan::getAttachmentTableName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在testplan的用法示例。


在下文中一共展示了testplan::getAttachmentTableName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initializeGui

    exit;
}
$gui = initializeGui($db, $args, $editorCfg, $tproject_mgr);
$of = web_editor('notes', $_SESSION['basehref'], $editorCfg);
$of->Value = getItemTemplateContents('testplan_template', $of->InstanceName, $args->notes);
// Checks on testplan name, and testplan name<=>testplan id
if ($args->do_action == "do_create" || $args->do_action == "do_update") {
    $gui->testplan_name = $args->testplan_name;
    $name_exists = $tproject_mgr->check_tplan_name_existence($args->tproject_id, $args->testplan_name);
    $name_id_rel_ok = isset($gui->tplans[$args->tplan_id]) && $gui->tplans[$args->tplan_id]['name'] == $args->testplan_name;
}
// interface changes to be able to do not loose CF values if some problem arise on User Interface
$gui->cfields = $tplan_mgr->html_table_of_custom_field_inputs($args->tplan_id, $args->tproject_id, 'design', '', $_REQUEST);
switch ($args->do_action) {
    case 'fileUpload':
        fileUploadManagement($db, $args->tplan_id, $args->fileTitle, $tplan_mgr->getAttachmentTableName());
        getItemData($tplan_mgr, $gui, $of, $args->tplan_id, true);
        break;
    case 'deleteFile':
        deleteAttachment($db, $args->file_id);
        getItemData($tplan_mgr, $gui, $of, $args->tplan_id, true);
        break;
    case 'edit':
        getItemData($tplan_mgr, $gui, $of, $args->tplan_id);
        break;
    case 'do_delete':
        $tplanInfo = $tplan_mgr->get_by_id($args->tplan_id);
        if ($tplanInfo) {
            $tplan_mgr->delete($args->tplan_id);
            logAuditEvent(TLS("audit_testplan_deleted", $args->tproject_name, $tplanInfo['name']), "DELETE", $args->tplan_id, "testplan");
        }
开发者ID:CristianOspinaOspina,项目名称:testlinkpruebas,代码行数:31,代码来源:planEdit.php


注:本文中的testplan::getAttachmentTableName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。