SAAS-1229, SAAS-1230 - initial implementation of station suspend when over bandwidth limit

This commit is contained in:
Duncan Sommerville 2015-11-24 13:36:54 -05:00
parent 04167c103b
commit 82544f34d9
6 changed files with 64 additions and 0 deletions

View file

@ -1585,6 +1585,19 @@ class Application_Model_Preference
self::setValue("station_podcast_privacy", $value);
}
/**
* Accessors for station bandwidth limit.
*/
public static function getBandwidthLimit() {
$val = self::getValue("bandwidth_limit");
return empty($val) ? 0 : $val;
}
public static function setBandwidthLimit($value) {
self::setValue("bandwidth_limit", $value);
}
/**
* Accessors for bandwidth limit counter.
* Tracks bandwidth usage.