SAAS-1229, SAAS-1230 - initial implementation of station suspend when over bandwidth limit
This commit is contained in:
parent
04167c103b
commit
82544f34d9
6 changed files with 64 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue