本文整理匯總了PHP中Alert::resetArrays方法的典型用法代碼示例。如果您正苦於以下問題:PHP Alert::resetArrays方法的具體用法?PHP Alert::resetArrays怎麽用?PHP Alert::resetArrays使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Alert
的用法示例。
在下文中一共展示了Alert::resetArrays方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: outputStatus
$twig = new Twig_Environment($loader);
if (SET_DEBUG) {
$twig->enableDebug();
} else {
$twig->disableDebug();
}
// ... load the template
outputStatus('Load html template ...');
$template = $twig->loadTemplate('send_recommended/send_all.html');
outputStatus('Region ' . $region);
foreach ($sections as $section => $secParams) {
outputStatus('Traverse section ' . $section);
$formatter_conf = array('section' => $section, 'region' => $region, 'months' => $values['months'], 'base_domain' => $values['base_domain']);
// var_dump($formatter_conf);die;
$spx_config = $region . '_sphinx_' . $section;
$alertHandler->resetArrays();
$liveDB = new DBAdapter2(array('host' => $conf->dbserver->host, 'username' => $conf->dbserver->username, 'password' => $conf->dbserver->password, 'schema' => $values['live_schema']));
// First drop all alerts older than specified!
$moreToFetch = TRUE;
$offset = 0;
$limit = 1000;
// initialize main results container
$finalResults = array();
$idsToUpdate = array();
outputStatus('Change status of older alerts to PENDING.');
// first delete all searches older than max_age_days
if (USE_TEST_MAIL_ARRAY == FALSE) {
deleteOldSearches($liveDB, $section, $secParams['max_age_days']);
}
// start the loop to itterate the database
// for the remaining search alerts