public function WsConfigType::getDegraded in Web Service Data 7
File
- modules/
wsconfig/ wsconfig.entity.inc, line 492 - Entity classes
Class
- WsConfigType
- The class used for wsconfig type entities
Code
public function getDegraded() {
if (!isset($this->data['degraded_backoff'])) {
$this->data['degraded_backoff'] = WSCONFIG_DEFAULT_DEGRADED_BACKOFF;
}
if (isset($this->data['degraded'])) {
return $this->data['degraded'] - time() + $this->data['degraded_backoff'];
}
return 0;
}