public function WsConfigType::isDisabled in Web Service Data 7
API function to check if this wsconfig type is disabled.
File
- modules/
wsconfig/ wsconfig.entity.inc, line 478 - Entity classes
Class
- WsConfigType
- The class used for wsconfig type entities
Code
public function isDisabled() {
if (!isset($this->data['degraded_backoff'])) {
$this->data['degraded_backoff'] = WSCONFIG_DEFAULT_DEGRADED_BACKOFF;
}
if (isset($this->data['degraded']) and $this->data['degraded'] < time() - $this->data['degraded_backoff']) {
$this
->enable(TRUE);
return FALSE;
}
return isset($this->data['disabled']) ? $this->data['disabled'] : FALSE;
}