You are here

function hostingService_http_pack::context_import in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 web_pack/hosting_web_pack.service.inc \hostingService_http_pack::context_import()

Overrides hostingService::context_import

File

web_pack/hosting_web_pack.service.inc, line 115

Class

hostingService_http_pack

Code

function context_import($context) {
  $master_servers = $slave_server = array();
  foreach ($context->master_web_servers as $master_server_context) {
    $nid = hosting_context_nid($master_server_context);
    $master_servers[$nid] = $nid;
  }
  $this->master_servers = $master_servers;
  foreach ($context->slave_web_servers as $slave_server_context) {
    $nid = hosting_context_nid($slave_server_context);
    $slave_servers[$nid] = $nid;
  }
  $this->slave_servers = $slave_servers;
}