當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Folder::delete_type_by_include_id方法代碼示例

本文整理匯總了PHP中Folder::delete_type_by_include_id方法的典型用法代碼示例。如果您正苦於以下問題:PHP Folder::delete_type_by_include_id方法的具體用法?PHP Folder::delete_type_by_include_id怎麽用?PHP Folder::delete_type_by_include_id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Folder的用法示例。


在下文中一共展示了Folder::delete_type_by_include_id方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: register_project

/**
 * Registering Functions
 */
function register_project($include_id)
{
    if (Item::delete_holder_by_include_id($include_id)) {
        if (Item::register_holder("project", "Project", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (Folder::delete_type_by_include_id($include_id)) {
        if (Folder::register_type("project_folder", "ProjectFolder", $include_id) == false) {
            return false;
        }
        if (Folder::register_type("project_status_folder", "ProjectStatusFolder", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (ValueVar::delete_by_include_id($include_id)) {
        if (ValueVar::register_type("project", "ProjectValueVar", false, $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (!Registry::is_value("project_user_default_quota")) {
        $registry = new Registry(null);
        $registry->create("project_user_default_quota", $include_id, "1073741824");
    }
    if (!Registry::is_value("project_user_default_permission")) {
        $registry = new Registry(null);
        $registry->create("project_user_default_permission", $include_id, "15");
    }
    if (!Registry::is_value("project_leader_default_permission")) {
        $registry = new Registry(null);
        $registry->create("project_leader_default_permission", $include_id, "51");
    }
    if (!Registry::is_value("project_quality_manager_default_permission")) {
        $registry = new Registry(null);
        $registry->create("project_quality_manager_default_permission", $include_id, "1");
    }
    if (!Registry::is_value("project_group_default_permission")) {
        $registry = new Registry(null);
        $registry->create("project_group_default_permission", $include_id, "1");
    }
    if (!Registry::is_value("project_organisation_unit_default_permission")) {
        $registry = new Registry(null);
        $registry->create("project_organisation_unit_default_permission", $include_id, "1");
    }
    return true;
}
開發者ID:suxinde2009,項目名稱:www,代碼行數:55,代碼來源:register_execute.php

示例2: register_data

/**
 * Registering Functions
 */
function register_data($include_id)
{
    if (Item::delete_type_by_include_id($include_id)) {
        if (Item::register_type("file", "DataEntity", $include_id) == false or Item::register_type("value", "DataEntity", $include_id) == false or Item::register_type("parameter", "DataEntity", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (Folder::delete_type_by_include_id($include_id)) {
        if (Folder::register_type("system_folder", "SystemFolder", $include_id) == false) {
            return false;
        }
        if (Folder::register_type("user_folder", "UserFolder", $include_id) == false) {
            return false;
        }
        if (Folder::register_type("group_folder", "GroupFolder", $include_id) == false) {
            return false;
        }
        if (Folder::register_type("organisation_unit_folder", "OrganisationUnitFolder", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (ValueVar::delete_by_include_id($include_id)) {
        if (ValueVar::register_type("item", "ItemValueVar", true, $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (!Registry::is_value("data_user_default_quota")) {
        $registry = new Registry(null);
        $registry->create("data_user_default_quota", $include_id, "53687091200");
    }
    if (!Registry::is_value("data_quota_warning")) {
        $registry = new Registry(null);
        $registry->create("data_quota_warning", $include_id, "90");
    }
    if (!Registry::is_value("data_max_cached_images")) {
        $registry = new Registry(null);
        $registry->create("data_max_cached_images", $include_id, "100000");
    }
    if (!Registry::is_value("data_max_cache_period")) {
        $registry = new Registry(null);
        $registry->create("data_max_cache_period", $include_id, "30");
    }
    return true;
}
開發者ID:suxinde2009,項目名稱:www,代碼行數:53,代碼來源:register_execute.php

示例3: register_sample

/**
 * Registering Functions
 */
function register_sample($include_id)
{
    if (Item::delete_holder_by_include_id($include_id)) {
        if (Item::register_holder("sample", "Sample", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (Item::delete_type_by_include_id($include_id)) {
        if (Item::register_type("sample", "Sample", $include_id) == false) {
            return false;
        }
        if (Item::register_type("parentsample", "Sample", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (Folder::delete_type_by_include_id($include_id)) {
        if (Folder::register_type("sample_folder", "SampleFolder", $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (ValueVar::delete_by_include_id($include_id)) {
        if (ValueVar::register_type("sample", "SampleValueVar", false, $include_id) == false) {
            return false;
        }
    } else {
        return false;
    }
    if (!Registry::is_value("sample_default_expiry_warning")) {
        $registry = new Registry(null);
        $registry->create("sample_default_expiry_warning", $include_id, "7");
    }
    return true;
}
開發者ID:suxinde2009,項目名稱:www,代碼行數:42,代碼來源:register_execute.php


注:本文中的Folder::delete_type_by_include_id方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。