function clients_connection_base::__construct in Web Service Clients 6.2
Same name and namespace in other branches
- 7 clients.inc \clients_connection_base::__construct()
- 7.2 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 96 - 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 (!is_array($object->configuration)) {
$this->configuration = unserialize($object->configuration);
}
return $this;
}