You are here

function clients_connection_drupal_services::__construct in Web Service Clients 7

Same name and namespace in other branches
  1. 6.2 connections/clients_drupal/clients_drupal.inc \clients_connection_drupal_services::__construct()
  2. 7.3 connections/clients_drupal/clients_drupal.inc \clients_connection_drupal_services::__construct()
  3. 7.2 connections/clients_drupal/clients_drupal.inc \clients_connection_drupal_services::__construct()

Constructor method.

Parameters

$connection_data: An object containing connection data, as returned from clients_connection_load().

Overrides clients_connection_base::__construct

File

backends/clients_drupal/clients_drupal.inc, line 178
Defines methods and calls to Drupal services

Class

clients_connection_drupal_services
General Drupal client class.

Code

function __construct($connection_data) {

  // Call the base class to set the connection properties.
  parent::__construct($connection_data);

  // Decrypt the password.
  $this->configuration['password'] = clients_drupal_decrypt($this->configuration['password']);
}