You are here

public function WsConfigType::__construct in Web Service Data 7

Overrides Entity::__construct

File

modules/wsconfig/wsconfig.entity.inc, line 383
Entity classes

Class

WsConfigType
The class used for wsconfig type entities

Code

public function __construct($values = array()) {
  parent::__construct($values, 'wsconfig_type');
  if (is_array($this->data) and !isset($this->data['degraded_backoff'])) {
    $this->data['degraded_backoff'] = WSCONFIG_DEFAULT_DEGRADED_BACKOFF;
  }
}