You are here

function hostingService_http_pack::context_options in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 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 97

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')))));
}