本文整理汇总了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);
}
示例2: removeServiceSettingGlobal
static function removeServiceSettingGlobal($name)
{
return Setting::removeServiceSetting($name, true);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}