CC-1724:phone-home-statistics

Rebase from devel into this branch
This commit is contained in:
james 2011-06-15 12:06:50 -04:00
parent 11b601308e
commit cf654f1a45
18 changed files with 656 additions and 193 deletions

View file

@ -88,6 +88,13 @@ class StoredFile {
}
}
public static function getFileCount()
{
global $CC_CONFIG, $CC_DBC;
$sql = "SELECT count(*) as cnt FROM ".$CC_CONFIG["filesTable"]." WHERE state='ready'";
return $CC_DBC->GetOne($sql);
}
/**
* Set multiple metadata values using database columns as indexes.
*