本文整理汇总了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;
}
示例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;
}
示例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;
}