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


PHP Setting::removeServiceSetting方法代码示例

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


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

示例1: removeServiceSetting

 function removeServiceSetting($name)
 {
     return Setting::removeServiceSetting($name, true);
 }
开发者ID:ragi79,项目名称:Textcube,代码行数:4,代码来源:Textcube.Function.Misc.php

示例2: removeServiceSettingGlobal

 static function removeServiceSettingGlobal($name)
 {
     return Setting::removeServiceSetting($name, true);
 }
开发者ID:Avantians,项目名称:Textcube,代码行数:4,代码来源:Textcube.Function.Setting.php

示例3: trashVan

function trashVan()
{
    if (Timestamp::getUNIXtime() - Setting::getServiceSetting('lastTrashSweep', 0, true) > 86400) {
        $pool = DBModel::getInstance();
        $pool->reset('Comments');
        $pool->setQualifier('isfiltered', 's', Timestamp::getUNIXtime() - 1296000);
        $pool->setQualifier('isfiltered', 'b', 0);
        $pool->delete();
        $pool->reset('RemoteResponses');
        $pool->setQualifier('isfiltered', 's', Timestamp::getUNIXtime() - 1296000);
        $pool->setQualifier('isfiltered', 'b', 0);
        $pool->delete();
        $pool->reset('RefererLogs');
        $pool->setQualifier('referred', 's', Timestamp::getUNIXtime() - 604800);
        $pool->delete();
        Setting::setServiceSetting('lastTrashSweep', Timestamp::getUNIXtime(), true);
    }
    if (Timestamp::getUNIXtime() - Setting::getServiceSetting('lastNoticeRead', 0, true) > 43200) {
        Setting::removeServiceSetting('TextcubeNotice', true);
        Setting::setServiceSetting('lastNoticeRead', Timestamp::getUNIXtime(), true);
    }
}
开发者ID:ragi79,项目名称:Textcube,代码行数:22,代码来源:blog.trash.php

示例4: trashVan

function trashVan()
{
    global $database;
    requireModel('common.setting');
    if (Timestamp::getUNIXtime() - Setting::getServiceSetting('lastTrashSweep', 0, true) > 86400) {
        //		var_dump(Timestamp::getUNIXtime());
        //		var_dump(Setting::getServiceSetting('lastTrashSweep',0, true));
        POD::execute("DELETE FROM {$database['prefix']}Comments where isfiltered < " . Timestamp::getUNIXtime() . " - 1296000 AND isfiltered > 0");
        POD::execute("DELETE FROM {$database['prefix']}RemoteResponses where isfiltered < " . Timestamp::getUNIXtime() . " - 1296000 AND isfiltered > 0");
        POD::execute("DELETE FROM {$database['prefix']}RefererLogs WHERE referred < " . Timestamp::getUNIXtime() . " - 604800");
        Setting::setServiceSetting('lastTrashSweep', Timestamp::getUNIXtime(), true);
    }
    if (Timestamp::getUNIXtime() - Setting::getServiceSetting('lastNoticeRead', 0, true) > 43200) {
        Setting::removeServiceSetting('TextcubeNotice', true);
        Setting::setServiceSetting('lastNoticeRead', Timestamp::getUNIXtime(), true);
    }
}
开发者ID:hinablue,项目名称:TextCube,代码行数:17,代码来源:blog.trash.php

示例5: trashVan

function trashVan()
{
    $context = Model_Context::getInstance();
    if (Timestamp::getUNIXtime() - Setting::getServiceSetting('lastTrashSweep', 0, true) > 43200) {
        $pool = DBModel::getInstance();
        $pool->reset('Comments');
        $pool->setQualifier('isfiltered', 's', Timestamp::getUNIXtime() - $context->getProperty('service.trashtimelimit', 302400));
        $pool->setQualifier('isfiltered', 'b', 0);
        $pool->delete();
        $pool->reset('RemoteResponses');
        $pool->setQualifier('isfiltered', 's', Timestamp::getUNIXtime() - $context->getProperty('service.trashtimelimit', 302400));
        $pool->setQualifier('isfiltered', 'b', 0);
        $pool->delete();
        $pool->reset('RefererLogs');
        $pool->setQualifier('referred', 's', Timestamp::getUNIXtime() - 604800);
        $pool->delete();
        Setting::setServiceSetting('lastTrashSweep', Timestamp::getUNIXtime(), true);
    }
    if (Timestamp::getUNIXtime() - Setting::getServiceSetting('lastNoticeRead', 0, true) > 43200) {
        Setting::removeServiceSetting('TextcubeNotice', true);
        Setting::setServiceSetting('lastNoticeRead', Timestamp::getUNIXtime(), true);
    }
}
开发者ID:webhacking,项目名称:Textcube,代码行数:23,代码来源:trash.php


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