CC-1724:Phone home statistics
- Final commit for client side.
This commit is contained in:
parent
1fbaa7d5fb
commit
e762633405
13 changed files with 383 additions and 265 deletions
|
@ -1866,6 +1866,13 @@ class ShowInstance {
|
|||
return new ShowInstance($id);
|
||||
}
|
||||
}
|
||||
|
||||
// returns number of show instances that ends later than $day
|
||||
public static function GetShowInstanceCount($day){
|
||||
global $CC_CONFIG, $CC_DBC;
|
||||
$sql = "SELECT count(*) as cnt FROM $CC_CONFIG[showInstances] WHERE ends < '$day'";
|
||||
return $CC_DBC->GetOne($sql);
|
||||
}
|
||||
}
|
||||
|
||||
/* Show Data Access Layer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue