$counts = array();
for ($d = $firstDate; $d <= $today; $d = self::incrementDay($d)) {
- common_debug("Date = '$d'");
$n = self::getCount($d);
self::insertCount($d, $n);
$counts[$d] = $n;
static function insertCount($d, $n)
{
- common_debug("Inserting count '$n' for '$d'");
-
$suc = new Sitemap_user_count();
$suc->registration_date = DB_DataObject_Cast::date($d);
{
$noticeCounts = Sitemap_notice_count::getAll();
- common_debug(sprintf("Got %d notice counts", count($noticeCounts)));
-
foreach ($noticeCounts as $dt => $cnt) {
if ($cnt == 0) {
continue;