function clients_connection_base::__construct in Web Service Clients 7.2
Same name and namespace in other branches
- 6.2 clients.inc \clients_connection_base::__construct()
- 7 clients.inc \clients_connection_base::__construct()
Constructor method.
Parameters
$object: An object of class stdClass returned from CTools.
2 calls to clients_connection_base::__construct()
- clients_connection_broken::__construct in ./
clients.inc - Constructor method for broken connections.
- clients_connection_drupal_services::__construct in connections/
clients_drupal/ clients_drupal.inc - Constructor method.
2 methods override clients_connection_base::__construct()
- clients_connection_broken::__construct in ./
clients.inc - Constructor method for broken connections.
- clients_connection_drupal_services::__construct in connections/
clients_drupal/ clients_drupal.inc - Constructor method.
File
- ./
clients.inc, line 98 - Contains basic classes for client connections.
Class
- clients_connection_base
- Base class for client connections.
Code
function __construct($object) {
// Lump all data unto the object...
foreach ((array) $object as $field => $value) {
$this->{$field} = $value;
}
// Connections defined in code are already unserialized.
if (isset($object->configuration) && !is_array($object->configuration)) {
$this->configuration = unserialize($object->configuration);
}
return $this;
}