public function WsConfig::setEndpoint in Web Service Data 7
Method wsconfig->setEndpoint(). Overide's the wsconfig_type's default endpoint
File
- modules/
wsconfig/ wsconfig.entity.inc, line 47 - Entity classes
Class
- WsConfig
- The class used for wsconfig entities
Code
public function setEndpoint($endpoint) {
if (isset($this->wsconfig_type->data['connector']) and class_exists($this->wsconfig_type->data['connector'])) {
$this->wsconfig_type
->setEndpoint($endpoint);
$this->connector = new $this->wsconfig_type->data['connector']($endpoint);
return TRUE;
}
return FALSE;
}