You are here

function hostingService_http_pack::context_options in Hosting 7.4

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

Overrides hostingService::context_options

File

web_pack/hosting_web_pack.service.inc, line 108

Class

hostingService_http_pack

Code

function context_options($task_type, $ref_type, &$task) {
  parent::context_options($task_type, $ref_type, $task);
  $task->context_options['master_web_servers'] = implode(',', array_values(array_map('hosting_context_name', array_intersect_key($this->master_servers, hosting_get_servers('http')))));
  $task->context_options['slave_web_servers'] = implode(',', array_values(array_map('hosting_context_name', array_intersect_key($this->slave_servers, hosting_get_servers('http')))));
}