SAAS-1229 - initial work on bandwidth limit within Airtime; overhaul TaskFactory to get tasks reflectively
This commit is contained in:
parent
c328515f4b
commit
6c2d1f008b
4 changed files with 126 additions and 32 deletions
|
@ -1584,4 +1584,33 @@ class Application_Model_Preference
|
|||
public static function setStationPodcastPrivacy($value) {
|
||||
self::setValue("station_podcast_privacy", $value);
|
||||
}
|
||||
|
||||
public static function getBandwidthLimitCounter() {
|
||||
return self::getValue("bandwidth_limit_counter");
|
||||
}
|
||||
|
||||
public static function incrementBandwidthLimitCounter($value) {
|
||||
$counter = intval(self::getValue("bandwidth_limit_counter"));
|
||||
self::setValue("bandwidth_limit_counter", $counter + intval($value));
|
||||
}
|
||||
|
||||
public static function resetBandwidthLimitCounter() {
|
||||
self::setValue("bandwidth_limit_counter", 0);
|
||||
}
|
||||
|
||||
public static function getBandwidthLimitResetTimer() {
|
||||
return self::getValue("bandwidth_limit_reset_timer");
|
||||
}
|
||||
|
||||
public static function setBandwidthLimitResetTimer($value) {
|
||||
self::setValue("bandwidth_limit_reset_timer", $value);
|
||||
}
|
||||
|
||||
public static function getBandwidthLimitUpdateTimer() {
|
||||
return self::getValue("bandwidth_limit_reset_timer");
|
||||
}
|
||||
|
||||
public static function setBandwidthLimitUpdateTimer() {
|
||||
self::setValue("bandwidth_limit_reset_timer", microtime(true));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue