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


PHP Registry::is_value方法代码示例

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


在下文中一共展示了Registry::is_value方法的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


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